Search⌘ K
AI Features

Linear Regression Limitation

Explore the limitations of linear regression in solving classification problems with categorical labels. Understand why linear regression fails with non-aligned data points and outliers, and learn the shift toward binary classification to handle these challenges. This lesson prepares you to develop classifiers that predict categorical outcomes rather than numeric values.

Towards the goal

We started our journey in machine learning by way of linear regression. Now we’ll use that knowledge (and that code) to branch off toward our goal, which is a program that recognizes images.

This chapter covers the first step toward image recognition. We’ll build a classifier, which isa program that assigns data to one of a limited number of classes. Instead of numerical labels, classifiers work with categorical labels. For example, consider ...