The solution of cannot import name mlpclassifier when using sklearn

 1 scikit-learn v0.17 has only BernoulliRBM, no MLPClassifier.
 2 
 3 Just upgrade scikit-learn to v0.18.
 4 
 5 Just enter any of the following commands in the console.
 6 
 7 conda update scikit-learn
 8 
 9 pip install --upgrade scikit-learn
10 
11 pip install scikit-learn==0.18.rc2
12 
13 pip install git+https://github.com/scikit-learn/scikit-learn.git

Similar Posts: