Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openevolve/prompt/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ def _format_evolution_history(

# Only compare if both values are numeric
if isinstance(prog_value, (int, float)) and isinstance(parent_value, (int, float)):
if prog_value >= parent_value:
if prog_value > parent_value:
numeric_comparisons_improved.append(True)
else:
numeric_comparisons_improved.append(False)

if prog_value <= parent_value:
if prog_value < parent_value:
numeric_comparisons_regressed.append(True)
else:
numeric_comparisons_regressed.append(False)
Expand Down