Comments (5)
- https://medium.com/@yasufumy/python-multiprocessing-c6d54107dd55
- https://joblib.readthedocs.io/en/latest/
- https://github.com/cloudpipe/cloudpickle
from modestga.
Simple implementation with no communication between processes (returns best final result): 951d996
Supports pickling by cloudpickle
.
from modestga.
from modestga.
Fully parallel implementation added: 18dc736
Finally I decided to use pipes to send data between processes. Each process owns its own subpopulation that undergoes standard operations from modestga.operators
. At each generation, all subpopulations are sent to and aggregated in the main process.
Few minor bugs persist:
- incorect
nfev
counter - broken elitism
- ugly error and message when population is too small (see below)
AssertionError: Tournament size (20) has to be lower than population (28) // 2
AssertionError: Tournament size (20) has to be lower than population (28) // 2
BrokenPipeError: [WinError 109] Potok został zakończony
During handling of the above exception, another exception occurred:
from modestga.
Merged to master: 8fe54fb
from modestga.
Related Issues (20)
- Add cloudpickle to setup.py requirements
- Minimization does not return on Linux HOT 2
- Automatic adjustment of tournament size to population size and number of workers
- args not passed to the cost function? HOT 2
- Dill support HOT 2
- Rastrigin funcion example doesn't work HOT 1
- Argument passing fails with workers > 1 HOT 1
- Algorithm stops when fx <= 0 HOT 1
- Add documentation
- Serialization of exotic functions fails on Windows
- Examples fail on Windows
- Exception handling in function evaluation HOT 3
- Exception handling or time out needed in the parallel mode
- Remove jupyter notebooks
- Rewrite benchmark framework HOT 1
- Switch to pytest instead of unittest HOT 2
- Function evaluation counter in GA seems to be broken HOT 1
- [Multiprocessing] Avoid population evaluation before sending subpopulations to subprocesses HOT 2
- Release v0.4
- Add soft constraints HOT 2
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 modestga.