Closed RNarayan73 closed 1 year ago
Hi @RNarayan73 Unfortunately, this bug is related to DEAP and how it handles some objects when using multiprocessing, it creates some objects that can't be created again in another thread/process. I've been aware of this since a time ago and I already made the changes suggested by DEAP to handle it, but it doesn't work 100% of the time. A suggestion made by other users is to reinstall DEAP
Check these threads: DEAP bug 117 Stackoverflow
@rodrigo-arenas thanks for the links The threads above refer to the use of scoop, which I don't have installed. I am using standard joblib for the multi-processing. Will installing scoop help? Or is it for those developing on deap? Regards Narayan
I don't think that installing scoop would help since all the cross-validation and multiprocessing that are done inside scikit-learn uses joblib
Thanks for your help @rodrigo-arenas You've been one of the most responsive and committed developers I've had the pleasure of working with! Keep up the good work! Regards Narayan
I'm happy to help, let me know if something else raises
System information OS Platform and Distribution: Windows 11 Home Sklearn-genetic-opt version: 0.10.1 deap version: 1.3.3 Scikit-learn version: 1.2.1 Python version: 3.10.10
Describe the bug When including GAFeatureSelectionCV as a transformer within a pipeline to carry out feature selection and then running GASearchCV on the pipeline to optimise hyperparameters, it initially throws up this warning message:
It seems to then run through various generations successfully, with logs like this printed out (truncated for brevity):
before finally throwing up the following error:
To Reproduce Steps to reproduce the behavior:
Expected behavior The pipeline should be fitted without any errors.