Skip to main content

Introduction to Supervised Machine Learning

An overview of supervised learning, covering labeled datasets, regression, classification, and the typical workflow for building and evaluating models.

Save this reading to your study set

Sign up free

At its core, machine learning is about teaching computers to recognize patterns. Among the various paradigms of machine learning, Supervised Learning is perhaps the most widely used and intuitive. It operates on a simple premise: we provide the algorithm with a dataset where the "correct answers" are already known. By analyzing these examples, the model learns a mathematical function that maps input data to the correct output, allowing it to make accurate predictions on new, unseen data.

The Core Mechanism: Labeled Datasets

The defining characteristic of supervised learning is the use of labeled datasets. In this context, a "label" is the target output or the ground truth that we want the model to predict. Each training example consists of an input (often called a feature vector, denoted as xx) and a corresponding label (denoted as yy).

The goal of the learning process is to find a function ff such that:

f(x)≈yf(x) \approx y

During the training phase, the model makes a prediction, compares it to the actual label, and calculates the error (often called the "loss"). The model then adjusts its internal parameters to minimize this error. Through many iterations of this process, the model "learns" the underlying relationship between the features and the labels.

Exam Tip: If a question asks you to distinguish supervised learning from unsupervised learning, look for the presence of "labels" or "ground truth." If the data has known outcomes, it is supervised.

Two Primary Tasks: Regression and Classification

Supervised learning problems are generally categorized into two distinct types based on the nature of the output variable yy: Regression and Classification.

Keep reading for free.

Create an account to finish this reading and make it part of your study routine.

Continue reading free

Already have an account? Log in

Updated

Study it your way.

Import this reading into your study set to get started with another study mode.

Make it your own.

Keep this reading in a new study set, or add it to one you already use.