Supervised learning

Understanding Machine Learning

Hadrien Lacroix

Content Developer at DataCamp

Modeling

image of a model, the human kind

Understanding Machine Learning

Types

supervised learning and unsupervised learning are subgroups of machine learning

Understanding Machine Learning

What is supervised learning?

supervised learning is highlighted

Understanding Machine Learning

Classification and regression

classification and regression are subgroups of supervised learning

Understanding Machine Learning

Classification

classification is highlighted

Understanding Machine Learning

Classification

  • Classification = assigning a category
    • Will this customer stop its subscription?
      • Yes, No
    • Is this mole cancerous?
      • Yes, No
    • What kind of wine is that?
      • Red, White, Rosé
    • What flower is that?
      • Rose, Tulip, Carnation, Lily
Understanding Machine Learning

Observations

college observations

Understanding Machine Learning

Features

features

Understanding Machine Learning

Target

target

Understanding Machine Learning

Graphing our data

full_data

Understanding Machine Learning

Splitting data

training data

Understanding Machine Learning

Manual classifier

manual classifier

Understanding Machine Learning

Support vector machine - linear classifier

linear clasification

Understanding Machine Learning

Support vector machine - polynomial classifier

polynomial classifier

Understanding Machine Learning

Regression

regression is highlighted

Understanding Machine Learning

Regression

  • Regression = assigning a continuous variable
    • How much will this stock be worth?
    • What is this exoplanet's mass?
    • How tall will this child be as an adult?
Understanding Machine Learning

Predicting temperature

weather table

Understanding Machine Learning

Training data

weather training data

Understanding Machine Learning

Linear regression

regression line on data

Understanding Machine Learning

Model

model

Understanding Machine Learning

Given humidity...

use line to find temperature based on humidity vertical arrow

Understanding Machine Learning

...find temperature

use line to find temperature based on humidity horizontal arrow

Understanding Machine Learning

Testing data

testing data

Understanding Machine Learning

Classification vs regression

  • Regression = continuous
    • Any value within a finite (height) or infinite (time) interval
      • 20°F, 20.1°F, 20.01°F...
  • Classification = category
    • One of few specific values
      • Cold, Mild, Hot
Understanding Machine Learning

Let's practice!

Understanding Machine Learning

Preparing Video For Download...