rsteca / sklearn-deap

Use evolutionary algorithms instead of gridsearch in scikit-learn
MIT License
770 stars 130 forks source link

Getting it to work with Python3 #1

Closed kootenpv closed 9 years ago

kootenpv commented 9 years ago

Is copy_reg really necessary? It is not available on Python 3. Do you think it could be made in a compatible way?

rsteca commented 9 years ago

In python 3 the library has been renamed to copyreg instead of copy_reg. I used it in order to be able to use multiprocessing, it's like a little hack. I'm not sure if it's necessary in python 3. If you want to adapt the code to python 3 and make a pull request, you are welcome to do it :)

kootenpv commented 9 years ago

It runs according to your suggestion :) https://github.com/kootenpv/sklearn-deap/commit/ae094c56b83fbcb261f5b0420a1809222a25448a

rsteca commented 9 years ago

Looks great, I already merged the pull request, thanks @kootenpv