1
 pip install -U imbalanced-learn
 from imblearn import under_sampling, over_sampling
 from sklearn.datasets import make_classification
 from sklearn.decomposition import PCA
 from imblearn.oversampling import SMOTE

I am trying to use the above code but its throwing the error ModuleNotFoundError: No module named 'imblearn.oversampling'

Can anyone help me on this.

  • 1
    Possible duplicate of [Jupyter: No module named 'imblearn" after installation](https://stackoverflow.com/questions/47606873/jupyter-no-module-named-imblearn-after-installation) – Kate Orlova Aug 02 '19 at 19:53

0 Answers0