-
Notifications
You must be signed in to change notification settings - Fork 58
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] save&load (e.g., pickle) population snapshot easily based on certain criteria #91
Comments
@oni73 apologies for the delay in the reply. As long as you are using directly the algorithm API (as you show in your example), manually pickling after every evolve based on whatever criterion you like should "just work". Are you asking about a higher-level API? I am not sure about the added value of a higher-level facility with respect to your code snippet, but I am open to suggestions. |
Hi @bluescarni , many thanks for your reply. Indeed, i can confirm that the proposed approach works and this way we have quite fine-grained control over the evolution process.... what i ended up using is the following:
where save_population and load_population are defined as:
IMO, it would be beneficial to provide library support for such functionality. |
Hi :) |
Hi,
i couldnt find any example to be able to save&load the population during evolving.
For example, something like this would be really useful:
pseudo code:
I wonder how / if this wold be easily possible with pygmo. Any example would be highly appreciated!
P.S: Would this way of evolving break any adaptive DE variants ?
Many Thanks
The text was updated successfully, but these errors were encountered: