How to Solve NameError: name 'StratifiedShuffleSplit' is not defined -- sklearn

Solution: Import the 'StratifiedShuffleSplit' module

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

from sklearn.model_selection import StratifiedShuffleSplit

 

For more information:
Python sklearn StratifiedShuffleSplit