Supervised learning

Capire il Machine Learning

Hadrien Lacroix

Content Developer at DataCamp

Modeling

image of a model, the human kind

Capire il Machine Learning

Types

supervised learning and unsupervised learning are subgroups of machine learning

Capire il Machine Learning

What is supervised learning?

supervised learning is highlighted

Capire il Machine Learning

Classification and regression

classification and regression are subgroups of supervised learning

Capire il Machine Learning

Classification

classification is highlighted

Capire il 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
Capire il Machine Learning

Observations

college observations

Capire il Machine Learning

Features

features

Capire il Machine Learning

Target

target

Capire il Machine Learning

Graphing our data

full_data

Capire il Machine Learning

Splitting data

training data

Capire il Machine Learning

Manual classifier

manual classifier

Capire il Machine Learning

Support vector machine - linear classifier

linear clasification

Capire il Machine Learning

Support vector machine - polynomial classifier

polynomial classifier

Capire il Machine Learning

Regression

regression is highlighted

Capire il 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?
Capire il Machine Learning

Predicting temperature

weather table

Capire il Machine Learning

Training data

weather training data

Capire il Machine Learning

Linear regression

regression line on data

Capire il Machine Learning

Model

model

Capire il Machine Learning

Given humidity...

use line to find temperature based on humidity vertical arrow

Capire il Machine Learning

...find temperature

use line to find temperature based on humidity horizontal arrow

Capire il Machine Learning

Testing data

testing data

Capire il 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
Capire il Machine Learning

Let's practice!

Capire il Machine Learning

Preparing Video For Download...