Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

termination_checker: added best_fitness_stagnation_termination_checker #73

Merged
merged 2 commits into from
May 19, 2024

Conversation

ZvikaZ
Copy link
Contributor

@ZvikaZ ZvikaZ commented Jun 25, 2023

Note that this uses math.isclose which was introduced at Python 3.5.
I assume that it's OK, but if not - it can be replaced with some other code.
Anyway, is there a definition of minimal supported Python version?

@ZvikaZ ZvikaZ changed the base branch from main to develop June 27, 2023 09:55
note that previous commit assumed that `best_individual` is best of
*generation*. however, it's the best of the *run* (see PR EC-KitY#82).

this commit fixes this mistake, and also checks for stagnation over all
sub-populations
@ZvikaZ
Copy link
Contributor Author

ZvikaZ commented Jun 27, 2023

Note that the code has been changed since the review.

Copying new commit's comment:

Note that previous commit assumed that best_individual is best of generation. however, it's the best of the run (see PR #82).

This commit fixes this mistake, and also checks for stagnation over all sub-populations

@itaitzruia4
Copy link
Collaborator

The minimal Python version is 3.6, so this function should be OK.

@achiyae
Copy link
Contributor

achiyae commented May 8, 2024

@itaitzruia4 can we merge this one?

@itaitzruia4 itaitzruia4 merged commit 7628423 into EC-KitY:develop May 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants