Skip to main content
Crowdfunding
Python + AI for Geeks
Practice

Purpose of Machine Learning Models

The purpose of machine learning models is to learn from data to solve certain problems.

For example, they can be utilized to distinguish spam emails or to predict housing prices.

The types of problems that machine learning models address generally fall into two categories:

  1. Predicting specific categories (classes) Classification

  2. Predicting continuous numerical values Regression


Differences Between Classification and Regression

The differences between classification and regression problems are as follows:

CategoryClassificationRegression
OutputSpecific class (e.g., Spam/Normal)Continuous numeric value (e.g., $100,000)
ExamplesCat vs. DogHeight prediction in inches
ObjectiveGrouping dataPredict numerical values

When creating a machine learning model, it's important first to determine whether you're dealing with a classification or regression problem.

In the next lesson, we will explore classification in more detail.

Want to learn more?

Join CodeFriends Plus membership or enroll in a course to start your journey.