Merge pull request #67 from thelmuth/fix/solve-boolean

Fixed Solve Boolean problem so that it works.
This commit is contained in:
Lee Spector 2023-11-10 13:19:20 -05:00 committed by GitHub
commit 8931f3d372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,11 +49,6 @@ Source: https://arxiv.org/pdf/2106.06086.pdf"
(:step-limit argmap))
:boolean))
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]
(if (= output :no-stack-item)
10000
@ -61,9 +56,9 @@ Source: https://arxiv.org/pdf/2106.06086.pdf"
0
1)))
correct-outputs
parsed-outputs)]
outputs)]
(assoc individual
:behaviors parsed-outputs
:behaviors outputs
:errors errors
:total-error #?(:clj (apply +' errors)
:cljs (apply + errors)))))