简体   繁体   中英

Error while import imblearn.undersampling

错误

I am getting "no module name sklearn.cluster" error while importing imblearn_undersampling module. I do not get error while importing SMOTE from imblearn as shown in the pic. Some of the solutions i have tried: -Uninstalled and reinstalled sklearn, scikit learn, scipy using conda and pip3 - Uninstalled and reinstalled imblearn

I did not get this error with below version so please try with below combination and try to import again.

scikit-learn (0.20.2) Python 2.7.14 imbalanced-learn (0.4.3)

Thanks, Rajeswari Ponnuru.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM