From 4eb5e9311206963668aa5ad4321b82a3b2078063 Mon Sep 17 00:00:00 2001 From: Lee Spector Date: Tue, 7 Mar 2023 18:30:06 -0500 Subject: [PATCH] Update float_regression.cljc Use float constants, no exec or boolean instructions, and epsilon lexicase selection --- src/propeller/problems/float_regression.cljc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/propeller/problems/float_regression.cljc b/src/propeller/problems/float_regression.cljc index 516e682..f37a896 100644 --- a/src/propeller/problems/float_regression.cljc +++ b/src/propeller/problems/float_regression.cljc @@ -23,12 +23,8 @@ :float_subtract :float_mult :float_quot - :float_eq - :exec_dup - :exec_if - 'close - 0 - 1)) + 0.0 + 1.0)) (defn error-function "Finds the behaviors and errors of an individual. The error is the absolute @@ -72,7 +68,7 @@ :population-size 1000 :max-initial-plushy-size 100 :step-limit 200 - :parent-selection :lexicase + :parent-selection :epsilon-lexicase :tournament-size 5 :umad-rate 0.1 :solution-error-threshold 0.5