EpistasisLab / tpot

A Python Automated Machine Learning tool that optimizes machine learning pipelines using genetic programming.
http://epistasislab.github.io/tpot/
GNU Lesser General Public License v3.0
9.66k stars 1.56k forks source link

sklearn's Imputer has been renamed & moved #889

Open rhiever opened 5 years ago

rhiever commented 5 years ago

As of sklearn v0.21.2 (possibly earlier), the Imputer has moved to the impute module and is now called the SimpleImputer: https://scikit-learn.org/stable/modules/generated/sklearn.impute.SimpleImputer.html

TPOT likely needs a quick update to update this reference when we perform imputation at the beginning of every TPOT run.

Also worth noting that the impute module offers several different imputation methods now, so perhaps it's worthwhile to move the imputation step into the configuration dictionary.

We can probably address #836 while making this change.

weixuanfu commented 5 years ago

I agree with this update. Also, for addressing this and also supporting future version of sklearn (> 0.22), TPOT should not support Python 2 any more.

rhiever commented 5 years ago

Agreed. It is time for future updates of TPOT to drop support for Python 2.