Change instructions output to string format for analysis scripts

This commit is contained in:
klingliu 2021-07-06 17:56:50 -04:00
parent d92507b062
commit d47bfc4aaf

View File

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