Merge pull request #21 from klingliu/master

Changed starting-args output to print functions as strings
This commit is contained in:
Lee Spector 2021-07-06 18:05:14 -04:00 committed by GitHub
commit 0c53436b94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@
max-initial-plushy-size]
:as argmap}]
;;
(println {:starting-args argmap})
(prn {:starting-args (update (update argmap :error-function str) :instructions str)})
(println)
;;
(loop [generation 0
@ -52,8 +52,8 @@
(cond
;; Success on training cases is verified on testing cases
(zero? (:total-error best-individual))
(do (println {:success-generation generation})
(println {:total-test-error (:total-error (error-function argmap best-individual :test))})
(do (prn {:success-generation generation})
(prn {:total-test-error (:total-error (error-function argmap best-individual :test))})
(#?(:clj shutdown-agents))
)
;;