Problems importing imblearn python package on ipython notebook

前端 未结 6 655
渐次进展
渐次进展 2021-01-12 19:05

I installed https://github.com/glemaitre/imbalanced-learn on windows powershell using pip install, conda and github. But when I\'m on

6条回答
  •  醉梦人生
    2021-01-12 19:35

    Try this:

    from imblearn import under_sampling, over_sampling
    

    In order to import SMOTE:

    from imblearn.over_sampling import SMOTE
    

    Or datasets:

    from imblearn.datasets import ...
    

提交回复
热议问题