How to Solve NameError: name 'RandomOverSampler' is not defined -- imblearn
Solution: Import the 'RandomOverSampler' module
To Solve the error, add the following line to the top of your code.
from imblearn.over_sampling import RandomOverSampler
For more information:
Python imblearn RandomOverSampler