removed maximum errors for solutions that output values from the PSB2 problems
This commit is contained in:
parent
fa785f9719
commit
18baba1e80
@ -51,7 +51,7 @@
|
|||||||
errors (map (fn [correct-output output]
|
errors (map (fn [correct-output output]
|
||||||
(if (= output :no-stack-item)
|
(if (= output :no-stack-item)
|
||||||
1000000
|
1000000
|
||||||
(min 1000.0 (math/abs (- correct-output output)))))
|
(math/abs (- correct-output output))))
|
||||||
correct-outputs
|
correct-outputs
|
||||||
outputs)]
|
outputs)]
|
||||||
(assoc individual
|
(assoc individual
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
errors (map (fn [correct-output output]
|
errors (map (fn [correct-output output]
|
||||||
(if (= output :no-stack-item)
|
(if (= output :no-stack-item)
|
||||||
1000000.0
|
1000000.0
|
||||||
(min 1000.0 (math/abs (- correct-output output)))))
|
(math/abs (- correct-output output))))
|
||||||
correct-outputs
|
correct-outputs
|
||||||
outputs)]
|
outputs)]
|
||||||
(assoc individual
|
(assoc individual
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
errors (map (fn [correct-output output]
|
errors (map (fn [correct-output output]
|
||||||
(if (= output :no-stack-item)
|
(if (= output :no-stack-item)
|
||||||
1000000
|
1000000
|
||||||
(min 1000.0 (math/abs (- correct-output output)))))
|
(math/abs (- correct-output output))))
|
||||||
correct-outputs
|
correct-outputs
|
||||||
outputs)]
|
outputs)]
|
||||||
(assoc individual
|
(assoc individual
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
errors (map (fn [correct-output output]
|
errors (map (fn [correct-output output]
|
||||||
(if (= output :no-stack-item)
|
(if (= output :no-stack-item)
|
||||||
1000000.0
|
1000000.0
|
||||||
(min 1000.0 (math/abs (- correct-output output)))))
|
(math/abs (- correct-output output))))
|
||||||
correct-outputs
|
correct-outputs
|
||||||
outputs)]
|
outputs)]
|
||||||
(assoc individual
|
(assoc individual
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
errors (map (fn [correct-output output]
|
errors (map (fn [correct-output output]
|
||||||
(if (= output :no-stack-item)
|
(if (= output :no-stack-item)
|
||||||
1000000
|
1000000
|
||||||
(min 1000.0 (math/abs (- correct-output output)))))
|
(math/abs (- correct-output output))))
|
||||||
correct-outputs
|
correct-outputs
|
||||||
outputs)]
|
outputs)]
|
||||||
(assoc individual
|
(assoc individual
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
errors (map (fn [correct-output output]
|
errors (map (fn [correct-output output]
|
||||||
(if (= output :no-stack-item)
|
(if (= output :no-stack-item)
|
||||||
1000000.0
|
1000000.0
|
||||||
(min 1000.0 (math/abs (- correct-output output)))))
|
(math/abs (- correct-output output))))
|
||||||
correct-outputs
|
correct-outputs
|
||||||
outputs)]
|
outputs)]
|
||||||
(assoc individual
|
(assoc individual
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
errors (map (fn [correct-output output]
|
errors (map (fn [correct-output output]
|
||||||
(if (= output :no-stack-item)
|
(if (= output :no-stack-item)
|
||||||
1000000
|
1000000
|
||||||
(min 1000.0 (math/abs (- correct-output output)))))
|
(math/abs (- correct-output output))))
|
||||||
correct-outputs
|
correct-outputs
|
||||||
outputs)]
|
outputs)]
|
||||||
(assoc individual
|
(assoc individual
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
errors (map (fn [correct-output output]
|
errors (map (fn [correct-output output]
|
||||||
(if (= output :no-stack-item)
|
(if (= output :no-stack-item)
|
||||||
1000000
|
1000000
|
||||||
(min 1000.0 (math/abs (- correct-output output)))))
|
(math/abs (- correct-output output))))
|
||||||
correct-outputs
|
correct-outputs
|
||||||
outputs)]
|
outputs)]
|
||||||
(assoc individual
|
(assoc individual
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
errors (map (fn [correct-output output]
|
errors (map (fn [correct-output output]
|
||||||
(if (= output :no-stack-item)
|
(if (= output :no-stack-item)
|
||||||
1000000.0
|
1000000.0
|
||||||
(min 1000.0 (math/abs (- correct-output output)))))
|
(math/abs (- correct-output output))))
|
||||||
correct-outputs
|
correct-outputs
|
||||||
outputs)]
|
outputs)]
|
||||||
(assoc individual
|
(assoc individual
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
errors (map (fn [correct-output output]
|
errors (map (fn [correct-output output]
|
||||||
(if (= output :no-stack-item)
|
(if (= output :no-stack-item)
|
||||||
1000000.0
|
1000000.0
|
||||||
(min 1000.0 (math/abs (- correct-output output)))))
|
(math/abs (- correct-output output))))
|
||||||
correct-outputs
|
correct-outputs
|
||||||
outputs)]
|
outputs)]
|
||||||
(assoc individual
|
(assoc individual
|
||||||
|
Loading…
x
Reference in New Issue
Block a user