How to Solve NameError: name 'SMOTE' is not defined -- imblearn

Solution: Import the 'SMOTE' module

To Solve the error, add the following line to the top of your code.

from imblearn.over_sampling import SMOTE

 

For more information:
Python SMOTE imblearn