handson-ml2
handson-ml2 copied to clipboard
sgd regressor
NameError Traceback (most recent call last)
NameError: name 'SGDRegressor' is not defined
Hi @saranyapuvvada , The error message indicates that the name 'SGDRegressor' is not defined. This is probably because it was not imported. Please run:
from sklearn.linear_model import SGDRegressor
When you run into an issue, please try running the official notebook, and see if you still get the error. If the error disappears, then it must be because the code you ran was different or missing something.
Hope this helps.