1. Learn
  2. /
  3. Courses
  4. /
  5. Linear Classifiers in Python

Exercise

Using SGDClassifier

In this final coding exercise, you'll do a hyperparameter search over the regularization strength and the loss (logistic regression vs. linear SVM) using SGDClassifier().

Instructions

100 XP
  • Instantiate an SGDClassifier instance with random_state=0.
  • Search over the regularization strength and the hinge vs. log_loss losses.