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

Feature request. Early stopping #175

Closed
FiksII opened this issue Nov 13, 2023 · 5 comments
Closed

Feature request. Early stopping #175

FiksII opened this issue Nov 13, 2023 · 5 comments

Comments

@FiksII
Copy link

FiksII commented Nov 13, 2023

Good day. If it possible to add 'early_stopping' feature? Sometimes I want to stop the process if it's stuck.
I can add it.

@Evolutionary-Intelligence
Copy link
Owner

This is a good idea to add the interesting 'early_stopping' feature. Welcome to contribute this feature. Thanks very much for your kindly support again.

@FiksII
Copy link
Author

FiksII commented Nov 13, 2023

This is a good idea to add the interesting 'early_stopping' feature. Welcome to contribute this feature. Thanks very much for your kindly support again.

How should I test it? It seems you have a lot of "personal" tests for algorithms, but no one general tests.

@Evolutionary-Intelligence
Copy link
Owner

You can write a simple test case. We (at least two core developers of this libary) will check and test it. After passing our test, we will add it in the new version (0.0.76).

@Evolutionary-Intelligence
Copy link
Owner

@FiksII We have upgraded your testing code as follows: https://github.com/Evolutionary-Intelligence/pypop/blob/main/pypop7/optimizers/core/_test_optimizer.py. In your initial version, only one test case is run, though for is used.

@Evolutionary-Intelligence
Copy link
Owner

@FiksII We also upgraded your Python code for class optimizer: https://github.com/Evolutionary-Intelligence/pypop/blob/main/pypop7/optimizers/core/optimizer.py. For two private members, we use _ as the prefix (a standard Python practice).

@FiksII FiksII closed this as completed Nov 14, 2023
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

No branches or pull requests

2 participants