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

Solution: Import the 'LinearSVC' module

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

from sklearn.svm import LinearSVC

 

For more information:
Python sklearn LinearSVC