Open RazHoshia opened 3 years ago
Hi @RazHoshia, how did you install TPOT? When I install TPOT on a fresh conda environment (with python 3.7) using pip install tpot
, the dependencies resolve scikit-learn to 0.24.1:
❯ pip show scikit-learn
Name: scikit-learn
Version: 0.24.1
Summary: A set of python modules for machine learning and data mining
Home-page: http://scikit-learn.org
Author: None
Author-email: None
License: new BSD
Location: /Users/jdr2160/anaconda3/envs/tpot/lib/python3.7/site-packages
Requires: scipy, numpy, threadpoolctl, joblib
Required-by: TPOT
I agree that we probably need to bump scikit-learn to a newer version in requirements.txt
, but it's a good idea to first know how to reproduce this issue.
Please include the following info:
Hi, after importing I get
ImportError: cannot import name 'safe_indexing' from 'sklearn.utils'
I believe its a problem is with sklearn > 0.23 and when I manually installed scikit-learn==0.23.2 the problem was solved. I suggest changing the the scikit-learn version here https://github.com/EpistasisLab/tpot/blob/6448bdb71ba08b4a0447c640d2f05a05e1affc21/requirements.txt#L4 to scikit-learn==0.23.2