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

Running Search with n_jobs>1 throws Deap Attribute Error. Official sklearn example #52

Open
luded opened this issue Jun 7, 2018 · 2 comments

Comments

@luded
Copy link

luded commented Jun 7, 2018

code downloaded from sklearn for GridSearchCV
replaced by EvolutionaryAlgorithmSearchCV. Works only for n_jobs=1. Else throws a Deap exception.

python code attached for reproduction.

grid_search_text_feature_extraction.txt

@luded
Copy link
Author

luded commented Jun 7, 2018

I have now seen your improvement with pmap. However passing n_jobs=pool.map yields exactly the same error. I could not find anywhere a single working example of how to use multi-thread in window. would be grateful if you could point me to one.
Thanks

@luded
Copy link
Author

luded commented Jun 8, 2018

Tested on Linux. The error is gone, but there is no sign of genetic search running on multiple threads. Actually the sklearn GridSearchCV finishes faster than EvolutionaryAlgorithmSearchCV.

Also I consistently get (in Win and Linux) sligthly better results (fitness) on sklearn-deap than on sklearn, and that's impossible because sklearn performs an exhaustive search.

is this project still alive? is there anyone actually using it that can prove it works as it should?

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

1 participant