Comments (4)
@gugarosa . First of all, I'm fine. I hope you are too.
Thank you for this feature. It will be very useful, I hope not just for me, but everyone using opytimizer!
from opytimizer.
Actually, this package is not intended to be deployed in production-ready environments nor servers, as its construction was designed to fulfill experimentation and research-based tasks. Additionally, each iteration already dumps the agents, which is controlled by the store_best_only
argument on Opytimizer.start()
method. Though the history object is only available at the end of the optimization.
While the logs already provide an outline of the optimization procedure, even if the process is suddenly stopped, I do understand your concern.
We do belive that such an idea would be better implemented as an approach that enables a halting in the optimization process and its restarting at a future time. I guess this would be the apex of both worlds as users would be able to have a current snapshot of their process and re-use it whenever they want.
I have added such an issue to our roadmap and I will take a deeper look into it.
Best regards,
Gustavo.
from opytimizer.
Thanks for the comprehensive answer Gustavo.
Yes it would be better if we could resume the optimization process.
Or even if it finished, make it go some iterations more. Which I think would be even better because the user itself can persist the model from time to time if it is needed.
I actually didn't know about that option. But it actually serves me well right now. Thanks!
I think I should keep the issue open but feel free to close as you've added it to the roadmap
from opytimizer.
Hello Gabriel! I hope everything is all right with you.
With the upcoming version (3.0.0), you will be able to checkpoint the optimization and resume it as intended. Please take a look at:
- Optimization checkpoints: https://github.com/gugarosa/opytimizer/blob/dev/examples/applications/additional_features/create_optimization_checkpoints.py;
- Multiple runnings: https://github.com/gugarosa/opytimizer/blob/dev/examples/applications/additional_features/multiple_optimization_runnings.py;
- Resuming from file: https://github.com/gugarosa/opytimizer/blob/dev/examples/applications/additional_features/resume_optimization_from_file.py.
It is still under development, yet it is already working. It will take a few days/weeks to be merged into master and be released into PyPI.
Best regards,
Gustavo.
from opytimizer.
Related Issues (19)
- [NEW] Constrained optimization HOT 4
- GA roulette selection method [REG] HOT 1
- [NEW] Different number of step for each variable HOT 3
- [REG] How to get best agent values? HOT 2
- positions HOT 2
- [REG] How to supress DEBUG log message in opytimizer.core.space HOT 4
- [BUG] Gaussian multiplicative noise may lead to unexpected behaviours on GA HOT 2
- [REG]Is there a way to provide initial values before starting optimization? HOT 2
- [REG]How to plot convergence diagram? HOT 2
- [BUG] HOT 6
- [NEW] Define objective function for regression problem HOT 2
- [REG] HOT 3
- [REG] What is the difference between grid space, and discrete space example? HOT 3
- [REG] How to get a detailed print out during optimization? HOT 2
- [NEW] HOT 1
- [NEW] Using population data for population-based algorithms? HOT 3
- [REG] Strange testing pattern HOT 1
- [BUG] AttributeError: 'History' object has no attribute 'show' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opytimizer.