I installed https://github.com/glemaitre/imbalanced-learn on windows powershell using pip install
, conda
and github
. But when I'm on iPython notebook and I tried to import the package using:
from unbalanced_dataset import UnderSampler, OverSampler, SMOTE
I get the error:
ImportError Traceback (most recent call last) <ipython-input-9-ad6fd7440a05> in <module>()
----> 1 from imbalanced_learn import UnderSampler, OverSampler, SMOTE
ImportError: No module named imbalanced_learn
New to using windows for Python, do I have to install the package in some folder?
If it don't work, maybe you need to install "imblearn" package.
Try to install:
pip install -U imbalanced-learn
conda install -c glemaitre imbalanced-learn
Then try to import library in your file:
from imblearn.over_sampling import SMOTE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With