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

Solution: Import the 'LogisticRegression' module

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

from sklearn.linear_model import LogisticRegression

 

For more information:
Python LogisticRegression sklearn