Merge pull request #21 from klingliu/master
Changed starting-args output to print functions as strings
This commit is contained in:
commit
0c53436b94
@ -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))
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user