Skip to content

Automatic stopping when a certain metric reaches a certain value? #109

Closed

Description

@AriKorpus

First, thank you so much for making this awesome project!

Second, is there currently a way to have OpenEvolve stop when a metric reaches a certain value, for example, when the combined score reaches 1? If not, do you plan on adding it? Thanks!

Best,
Ari

Activity

  1. codelion commented on Jun 26, 2025

    @codelion
    Member

    Good idea, we can add a config for early stopping on combined_score reaching a particular value.

  2. AriKorpus commented on Jun 26, 2025

    @AriKorpus
    Author

    Great! Would also be nice if you could set if for individual scores too, for example if you are optimizing several things and want to start a separate phase of running at a certain point.

  3. codelion commented on Jun 26, 2025

    @codelion
    Member

    you can always implement specific things like that in the evalutor.py itself. OpenEvolve implementation doesn't know about the individual metrics a particular problem is optimizing for. It is left to the user to define them it only basis itself on the combined_score. e.g. If you want a particular score to trigger early stopping you can set combined_score to 1 when that individual metric is reached to do early stopping.

  4. AriKorpus commented on Jun 26, 2025

    @AriKorpus
    Author

    Oh smart. Good point

  5. codelion commented on Nov 2, 2026

    @codelion
    Member

    This is available now: pass --target-score on the command line, or target_score to run_evolution, and the run stops once combined_score reaches that value. To trigger on an individual metric, set combined_score accordingly in your evaluator, as described above. Please reopen if this doesn't cover your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions