ML Key Concepts
ML Key Concepts
? ?
Machine Learning
Artificial Intelligence
Artificial Intelligence
Artificial Intelligence
Artificial Intelligence
Machine Learning
Machine Learning
Artificial Intelligence
Machine Learning
Artificial Intelligence
Machine Learning
Artificial Intelligence
Machine Learning
Artificial Intelligence
Machine Learning
Artificial Intelligence
Machine Learning
Key ML Theory
Machine
Learning
Concepts
Machine Learning
Machine
Pandas
Learning
Scikit-Learn
Concepts
Machine Learning
Machine TensorFlow
Pandas
Learning and
Scikit-Learn
Concepts Keras
Machine Learning
Key ML Theory Data Tools ANN and CNN Key RL Theory RL and DL
Real
World
Question
to
Answer
ML Pathway
Problem
to Solve
Real
World
Question
to
Answer
Real
World
Question
to
Answer
Real
World
Data
Analysis
ML Pathway
Real
World
ML Pathway
● Simple Example:
○ Predict the price a house should sell at
given its current features
(Area,Bedrooms,Bathrooms,etc…)
Machine Learning
● Supervised Learning
○ Using historical and labeled data, the
machine learning model predicts a
value.
● Unsupervised Learning
○ Applied to unlabeled data, the
machine learning model discovers
possible patterns in the data.
Machine Learning
● Supervised Learning
○ Requires historical labeled data:
■ Historical
● Known results and data from the
past.
■ Labeled
● The desired output is known.
Machine Learning
● Supervised Learning
○ Two main label types
■ Categorical Value to Predict
● Classification Task
■ Continuous Value to Predict
● Regression Task
Machine Learning
● Supervised Learning
○ Classification Tasks
■ Predict an assigned category
● Cancerous vs. Benign Tumor
● Fulfillment vs. Credit Default
● Assigning Image Category
○ Handwriting Recognition
Machine Learning
● Supervised Learning
○ Regression Tasks
■ Predict a continuous value
● Future prices
● Electricity loads
● Test scores
Machine Learning
● Unsupervised Learning
○ Group and interpret data without a
historical label.
○ Example:
■ Clustering customers into separate
groups based off their behaviour
features.
Machine Learning
● Unsupervised Learning
○ Major downside is because there was
no historical “correct” label, it is much
harder to evaluate performance of an
unsupervised learning algorithm.
Machine Learning
● Reinforcement Learning
Machine Learning
Real
World
Machine Learning
Real
World
Machine Learning
Real
World
Machine Learning
Scikit-learn or TensorFlow
Machine Learning
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Machine Learning
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Machine Learning
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Machine Learning
● Data Product:
○ Input house features
○ Output predicted selling price
Area m2 Bedrooms Bathrooms Price
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Machine Learning
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Machine Learning
Supervised Learning:
Predict an Outcome
Machine Learning
Supervised Learning:
Predict an Outcome
Machine Learning
Supervised Learning:
Predict an Outcome
Data
Machine Learning
Data
Machine Learning
X: Features
Data
y: Label
Machine Learning
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Machine Learning
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Machine Learning
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Machine Learning
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Machine Learning
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Machine Learning
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
X: Features
Data
Y: Label
Test
Data Set
Supervised Machine Learning Process
X: Features
Data
Y: Label
Test
Data Set
Supervised Machine Learning Process
X: Features
Data
Y: Label
Test
Data Set
Supervised Machine Learning Process
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
TRAIN 190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
TRAIN 190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
TEST
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
X TRAIN 190 2 1 $450,000
Y TRAIN
230 3 3 $650,000
X TEST
180 1 1 $400,000 Y TEST
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
TRAIN 190 2 1 $450,000
230 3 3 $650,000
180 1 1 $400,000
TEST
210 2 2 $550,000
Supervised Machine Learning Process
200 3 2 $500,000
TRAIN 190 2 1 $450,000
230 3 3 $650,000
Supervised Machine Learning Process
180 1 1
TEST
210 2 2
Supervised Machine Learning Process
180 1 1
TEST
210 2 2
Supervised Machine Learning Process
180 1 1
TEST
210 2 2
Supervised Machine Learning Process
$410,000 180 1 1
TEST
$540,000 210 2 2
Supervised Machine Learning Process
$410,000 $400,000
$540,000 $550,000
Supervised Machine Learning Process
$410,000 $400,000
$540,000 $550,000
Supervised Machine Learning Process
$410,000 $400,000
$540,000 $550,000
Supervised Machine Learning Process
● Split Data
Training
Data Set
X: Features
Data
Y: Label
Test
Data Set
Supervised Machine Learning Process
X: Features Fit/Train
Data Model
Y: Label
Test
Data Set
Supervised Machine Learning Process
X: Features Fit/Train
Data Model
Y: Label
Test
Data Set Evaluate
Performance
Supervised Machine Learning Process
X: Features Fit/Train
Data Model
Y: Label
Test
Data Set Evaluate
Performance
Supervised Machine Learning Process
X: Features Fit/Train
Data Model
Y: Label
Test
Data Set Evaluate
Performance
Supervised Machine Learning Process
X: Features Fit/Train
Data Model
Y: Label
Test
Data Set Evaluate
Performance
Supervised Machine Learning Process
Test
Data Set
Supervised Machine Learning Process
Test Evaluate
Data Set Performance
Supervised Machine Learning Process
Test Evaluate
Data Set Performance
Supervised Machine Learning Process
Test
Data Set
Evaluate
Performance
Supervised Machine Learning Process
X and y
Data
Supervised Machine Learning Process
Test
Data Set
Supervised Machine Learning Process
Test
Data Set
Supervised Machine Learning Process
Test
Data Set
Evaluate
Performance
Supervised Machine Learning Process
Test
Data Set
Evaluate
Performance
Supervised Machine Learning Process
Test
Data Set
Evaluate
Performance
Machine Learning
Real
World
Service
Data Dashboard
Product
Application