rasbt / python-machine-learning-book

The "Python Machine Learning (1st edition)" book code repository and info resource
MIT License
12.18k stars 4.39k forks source link

AttributeError: 'SGDClassifier' object has no attribute 'max_iter' #77

Closed dfiorino closed 5 years ago

dfiorino commented 5 years ago

Hello! Thank you for this amazing gift to everyone!

My issue is with Chapter 9's movie_classifier_with_update via python app.py. I am able to enter my sample review and get predicted class label and probability. The issue arises when I click "Correct"/"Incorrect" for the classification.

It is almost assuredly due to the issue of versions of Python (3.5 needed) and Sklearn (0.19 needed) as indicated here: https://www.pythonanywhere.com/forums/topic/11716/

It'd be nice to keep this current though and I will send a PR if I ever figure out how to update it for Python 3.6 and Sklearn 0.20!

image

dfiorino commented 5 years ago

I see now that this issue is addressed explicitly in Chapter 8 of the text! Closing this issue. Sorry for the noise.