Lesson 2 - Introduction to ML
Lesson 2 - Introduction to ML
Beginner Level
What is ML?
Machine
Learning
Types
Machine Learning Key Info #1
Supervised
Learning
vs
Unsupervised
Learning
vs
Reinforcement Learning
Supervised vs Unsupervised
Supervised
Learning MAIN DIFFERENCE :
vs Presence of
Labels
Unsupervised
Learning
What is label?
Dog
Types of ML Problems
Etc…
WE FOCUS ON CLASSIFICATION AND REGRESSION
TODAY!
Machine Learning Pipeline
Deployment
05
Machine Learning Pipeline
Model Evaluation
05
Intuition/Guess based
on Domain
Knowledge!
Preprocessing Key Takeaway #2: Feature
Selection
Correlation Matrix
Preprocessing Key Takeaway #2: Feature
Selection
Chi-Square Test
(For Categorical
Variables) - Test for
independence of each
feature against
target(what we wanna
predict)
Preprocessing Key Takeaway #2: Feature
Selection
Scikit-Learn https://scikit-learn.org/stable/
Model Training Key Takeaway #2: Linear
Regression Model
A simple model that
learns a best-fit line
from training data. This
line is used to predict
target values for unseen
data.
Model Training Key Takeaway #3: Many
more models!
Variance - How
consistent the
model is?
Evaluation Key Takeaway #2: Classification
Evaluation - Confusion Matrix
Evaluation Key Takeaway #2: Classification
Evaluation - Accuracy
Accuracy - (TP
+ TN) / (TP +
TN + FP + FN)
Essentially how
many correct
predictions a
model made!
Evaluation Key Takeaway #3: Regression
Evaluation - Mean Square Error
Evaluation Key Takeaway #3: Regression
Evaluation - Mean Absolute Error
Exercise