Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion openevolve/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version information for openevolve package."""

__version__ = "0.2.22"
__version__ = "0.2.23"
22 changes: 0 additions & 22 deletions openevolve/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,28 +357,6 @@ def force_exit_handler(signum, frame):
best_program = self.database.get_best_program()
logger.info("Using calculated best program (tracked program not found)")

# Check if there's a better program by combined_score that wasn't tracked
if best_program and "combined_score" in best_program.metrics:
best_by_combined = self.database.get_best_program(metric="combined_score")
if (
best_by_combined
and best_by_combined.id != best_program.id
and "combined_score" in best_by_combined.metrics
):
# If the combined_score of this program is significantly better, use it instead
if (
best_by_combined.metrics["combined_score"]
> best_program.metrics["combined_score"] + 0.02
):
logger.warning(
f"Found program with better combined_score: {best_by_combined.id}"
)
logger.warning(
f"Score difference: {best_program.metrics['combined_score']:.4f} vs "
f"{best_by_combined.metrics['combined_score']:.4f}"
)
best_program = best_by_combined

if best_program:
if (
hasattr(self, "parallel_controller")
Expand Down