Skip to content

Commit c7a4fc2

Browse files
committed
Update sampler.py
1 parent 2701f08 commit c7a4fc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openevolve/prompt/sampler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,12 @@ def _format_evolution_history(
260260

261261
# Only compare if both values are numeric
262262
if isinstance(prog_value, (int, float)) and isinstance(parent_value, (int, float)):
263-
if prog_value >= parent_value:
263+
if prog_value > parent_value:
264264
numeric_comparisons_improved.append(True)
265265
else:
266266
numeric_comparisons_improved.append(False)
267267

268-
if prog_value <= parent_value:
268+
if prog_value < parent_value:
269269
numeric_comparisons_regressed.append(True)
270270
else:
271271
numeric_comparisons_regressed.append(False)

0 commit comments

Comments
 (0)