From 8c1d7bc391f35eaa9b5af53e7dc552e5854bf742 Mon Sep 17 00:00:00 2001 From: Yixuan Date: Tue, 29 Jul 2025 12:44:34 -0700 Subject: [PATCH 1/2] Update the evaluator.py in function_minimization the old version of code is: y_std_score = float(1.0 / (1.0 + np.std(x_values))) is not correct I changed to the y_std_score = float(1.0 / (1.0 + np.std(y_values))) --- examples/function_minimization/evaluator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/function_minimization/evaluator.py b/examples/function_minimization/evaluator.py index e48d54136..7aeb4037b 100644 --- a/examples/function_minimization/evaluator.py +++ b/examples/function_minimization/evaluator.py @@ -178,8 +178,10 @@ def evaluate(program_path): speed_score = float(1.0 / avg_time) if avg_time > 0 else 0.0 # calculate standard deviation scores + # get x_std_score x_std_score = float(1.0 / (1.0 + np.std(x_values))) - y_std_score = float(1.0 / (1.0 + np.std(x_values))) + # get y_std_score + y_std_score = float(1.0 / (1.0 + np.std(y_values))) standard_deviation_score = (x_std_score + y_std_score) / 2.0 # Normalize speed score (so it doesn't dominate) @@ -341,4 +343,4 @@ def evaluate_stage1(program_path): def evaluate_stage2(program_path): """Second stage evaluation with more thorough testing""" # Full evaluation as in the main evaluate function - return evaluate(program_path) + return evaluate(program_path) \ No newline at end of file From 0b8ca98924042410d720d38e4f94c3be810eca3e Mon Sep 17 00:00:00 2001 From: Ethan-han921 Date: Tue, 29 Jul 2025 12:45:57 -0700 Subject: [PATCH 2/2] Update evaluator.py --- examples/function_minimization/evaluator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/function_minimization/evaluator.py b/examples/function_minimization/evaluator.py index 7aeb4037b..806c97c85 100644 --- a/examples/function_minimization/evaluator.py +++ b/examples/function_minimization/evaluator.py @@ -343,4 +343,4 @@ def evaluate_stage1(program_path): def evaluate_stage2(program_path): """Second stage evaluation with more thorough testing""" # Full evaluation as in the main evaluate function - return evaluate(program_path) \ No newline at end of file + return evaluate(program_path)