Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot import name 'StackingClassifier' from 'sklearn.ensemble'

I was trying to use stacking by using Scikit-learn, but it throws this import error,I tried other imports from ensenble like RandomForest etc. they work fine.

like image 530
MbeforeL Avatar asked Jun 06 '26 17:06

MbeforeL


1 Answers

Just run the following command in Anaconda or cmd ,because it was not there in the previous versions.

pip install --upgrade scikit-learn
like image 184
MbeforeL Avatar answered Jun 10 '26 04:06

MbeforeL