Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not import IterativeImputer from sklearn.impute

I have a dataset with a column contains missing values which has relatively high correlation with another columns. I want to use IterativeImputer from sklearn.impute but I receive this error:

ImportError: cannot import name 'IterativeImputer'

I upgraded my conda, my scikitlearn package and it is not resolved yet!

like image 784
NiloOo Avatar asked Apr 25 '19 10:04

NiloOo


1 Answers

I had the same problem even with the 0.21 version of sklearn. You need to add an other import

from sklearn.experimental import enable_iterative_imputer
from sklearn.impute import IterativeImputer
like image 190
Nacer Djabali Avatar answered Sep 28 '22 20:09

Nacer Djabali