Search⌘ K
AI Features

Linear Regression Limitation

Discover why linear regression fails when applied to categorical data by examining its assumptions and sensitivity to outliers. Learn the importance of using binary classification for categorical labels and how this approach lays the foundation for advanced image recognition tasks.

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 is a program that assigns data to one of a limited number of classes. Instead of numerical labels, classifiers work with categorical labels. For example, consider ...