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