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

Solution: Import the 'make_classification' module

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

from sklearn.datasets import make_classification

 

For more information:
Python sklearn make_classification