1

I have been trying to install imblearn to use SMOTE, and I thought it was successful, but when I type in this in my Jupyter Notebook from imblearn.over_sampling import SMOTE, I get the error ImportError: cannot import name 'SMOTE'. Do you know why this might be the case? I used the following command to download imblearn conda install -c conda-forge imbalanced-learn and got the download confirmation once it finished.

Smote Installation

sophros
  • 14,672
  • 11
  • 46
  • 75
Jane Sully
  • 3,137
  • 10
  • 48
  • 87
  • Please add the full import error message as text. Images of code and output are less helpful. – Klaus D. Oct 15 '18 at 02:01
  • Here is the import statement I wrote: from imblearn.over_sampling import SMOTE and here is the error ImportError: cannot import name 'SMOTE'. I guess I included the screenshot to show the imbalanced-learn package was downloaded using Conda. – Jane Sully Oct 15 '18 at 02:03
  • Please add all relevant stuff to the question itself. – Klaus D. Oct 15 '18 at 02:13
  • In other words: don't put information important to answer the question into the comments only. – Klaus D. Oct 15 '18 at 02:23
  • Okay, my apologies. I added the ImportError part to the question now. Do you have any suggestions about how to deal with this? Thanks! – Jane Sully Oct 15 '18 at 02:27

0 Answers0