We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64214d3 + 0b8ca98 commit 8b46f0eCopy full SHA for 8b46f0e
examples/function_minimization/evaluator.py
@@ -178,8 +178,10 @@ def evaluate(program_path):
178
speed_score = float(1.0 / avg_time) if avg_time > 0 else 0.0
179
180
# calculate standard deviation scores
181
+ # get x_std_score
182
x_std_score = float(1.0 / (1.0 + np.std(x_values)))
- y_std_score = float(1.0 / (1.0 + np.std(x_values)))
183
+ # get y_std_score
184
+ y_std_score = float(1.0 / (1.0 + np.std(y_values)))
185
standard_deviation_score = (x_std_score + y_std_score) / 2.0
186
187
# Normalize speed score (so it doesn't dominate)
0 commit comments