Fixed Solve Boolean problem so that it works.

This commit is contained in:
Tom Helmuth 2023-11-10 13:09:08 -05:00
parent 98d7126dee
commit bf1128ad4b

View File

@ -49,11 +49,6 @@ Source: https://arxiv.org/pdf/2106.06086.pdf"
(:step-limit argmap)) (:step-limit argmap))
:boolean)) :boolean))
inputs) inputs)
parsed-outputs (map (fn [output]
(try (read-string output)
#?(:clj (catch Exception e 1000.0)
:cljs (catch js/Error. e 1000.0))))
outputs)
errors (map (fn [correct-output output] errors (map (fn [correct-output output]
(if (= output :no-stack-item) (if (= output :no-stack-item)
10000 10000
@ -61,9 +56,9 @@ Source: https://arxiv.org/pdf/2106.06086.pdf"
0 0
1))) 1)))
correct-outputs correct-outputs
parsed-outputs)] outputs)]
(assoc individual (assoc individual
:behaviors parsed-outputs :behaviors outputs
:errors errors :errors errors
:total-error #?(:clj (apply +' errors) :total-error #?(:clj (apply +' errors)
:cljs (apply + errors))))) :cljs (apply + errors)))))