...

/

Supervised Learning

Supervised Learning

What is supervised learning?

We humans learn from our past experiences. However, machines (or computers) don’t have experiences. They learn from data, which represents past experiences in an application domain. In supervised learning, our focus is to learn a target function that can be used to predict the values (labels) of discrete class attributes. The task is usually known as supervised learning.

At its core, supervised learning is a type of machine learning where the algorithm learns from labeled training data to make predictions or decisions. In this paradigm, the algorithm is trained on a dataset that contains input data as well as corresponding desired outputs. The goal is to learn a mapping function from the input to the output, allowing the algorithm to make predictions on unseen data. Essentially, the algorithm is supervised by the provided dataset, guiding it to learn the patterns and relationships within the data.

Supervised learning is a two-step process:

  1. Learning or training: Learn a model using the training data (with labels).

  2. Testing: Test the model using unseen test data (without labels) to assess the model’s accuracy.

Press + to interact
Steps in supervised learning
Steps in supervised learning

Supervised learning can be broadly categorized into two main types: regression and classification.

Press + to interact
Regression vs. classification
Regression vs. classification

In regression, the algorithm predicts continuous output values. This concept has been taken from inferential statistics. Some typical use cases that use regression algorithms include:

  • Predicting stock prices

  • Sales forecasting (by companies like Amazon and Walmart)

  • Route optimization (by airlines and ride-sharing companies like Uber)

Classification, on the other hand, involves predicting discrete or categorical outputs. The result can fall into two categories (binary classification), multiple categories (multiclass classification), or even involve the prediction of multiple categories for a single instance (multilabel classification). Some examples include:

  • Predicting the sentiment of a post or text (sentiment analysis)

  • Predicting the tumor of cancer as benign or ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy