The two graphs represent the two sub-types of Supervised Learning models: Classification and Regression.
Figure 1 – Classification Model:
In this model, data is classified into discrete categories/labels. The straight dashed line acts as a decision boundary separating two groups. It works on discrete (non-continuous) data.
Example: Classifying emails as "spam" or "not spam" based on labeled training data.
Figure 2 – Regression Model:
In this model, a continuous curved/straight line is fitted through the data points to predict continuous output values. It works on continuous data.
Example: Predicting the price of a house based on features like number of bedrooms, carpet size, and garage area.
Both models learn from labeled data, which is the defining feature of Supervised Learning.
Source: Chapter 2, Section 2.2 – Sub-categories of Supervised Learning Model
---