Machine Learning, Regression, Classification, Scikit Learn, Artificial Intelligence.
class 1. Or, more concisely, 5 points have been misclassified. What if we move the line a bit? Sure, let’s try that: Drawn by author. Not bad. Now we’re down to 3 misclassified points. So it would seem that linear regression can handle classification in addition to regression. Let’s code this