impute
error code
from sklearn.preprocessing import Imputer
错误:ImportError: cannot import name 'Imputer' from 'sklearn.preprocessing'
reason:
0.20新版功能:SimpleImputer取代了以前的sklearn.preprocessing.Imputer
Solution
from sklearn.impute import SimpleImputer
imputer = SimpleImputer()
joblib
Reason investigation:
After consulting the data, this function or package has been removed scikit_learn
from the version after version 0.22 . joblib
You need to download and install joblib
this .
Solution:
- install joblib
pip install joblib
- or
conda install joblib
Import method replacement:
import joblib