From d47bfc4aaf15f662952efca6bbc5a124e963682a Mon Sep 17 00:00:00 2001 From: klingliu Date: Tue, 6 Jul 2021 17:56:50 -0400 Subject: [PATCH] Change instructions output to string format for analysis scripts --- src/propeller/gp.cljc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/propeller/gp.cljc b/src/propeller/gp.cljc index a849a93..11da7f9 100755 --- a/src/propeller/gp.cljc +++ b/src/propeller/gp.cljc @@ -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)) ) ;;