CE880_lecture5_slides
CE880_lecture5_slides
Haider Raza
Tuesday, 14th February 2023
1
About Myself
2
What is Machine Learning?
3
What is Machine Learning?
Machine learning is a branch of artificial intelligence (AI) and computer science which
focuses on the use of data and algorithms to imitate the way that humans learn,
gradually improving its accuracy.
0
https://christophm.github.io/
4
Example: Spam Filtering
Input: an email
Output: “SPAM” or “NOT SPAM”
A binary classification problem, because only 2 possible outputs.
5
Example: Medical Diagnosis
6
Example: Machine Learning: Predicting a Stock Price
7
The Prediction Function
8
Rule-based System
9
Issues with Rule-based Systems:
10
Modern AI: Machine Learning
11
Key concepts of ML
12
Types of Machine Learning
I Supervised learning
I Unsupervised learning
I Reinforcement learning
There are other types as well
I Semi-supervised learning
I Transductive learning
13
14
Supervised Learning
Supervised learning is a type of ML where the model is provided with labeled training
data.
I In supervised machine learning, you feed the features and their corresponding
labels into an algorithm in a process called training. During training, the
algorithm gradually determines the relationship between features and their
corresponding labels. This relationship is called the model. Often times in
machine learning, the model is very complex.
15
Unsupervised Learning
Supervised learning is a type of ML where the model is provided only with unlabeled
data.
16
Reinforcement Learning
17
Types of ML Problems
There are several sub-classes of ML problems based on what the prediction task looks
like. In the table below, you can see examples of common supervised and unsupervised
ML problems.
18
Feeding Inputs to ML Algorithms
I Text documents
I Variable-length time series
I Images
I Sounds recordings
But most ML prediction functions like their input as:
19
Feature Extraction
20
Feature Extraction
21
Supervised Learning: Regression and Classification
22
Supervised Learning: Regression and Classification..
23
Popular Classification Algorithms
I Logistic Regression
I Naive Bayes
I K-Nearest Neighbors
I Decision Tree
I Support Vector Machines
24
Popular Regression Algorithms
I Logistic Regression
I Linear Regression
I Ridge Regression
I Neural Network Regression
I Lasso Regression
I Decision Tree Regression
25
Evaluating a Prediction Function
26
Evaluating a Single Prediction: The Loss Function
A loss function scores how far off a prediction is from the desired “target” output
27
Classic Loss Function
28
Partitioning Dataset
29
Bias–variance tradeoff
30
Bias–variance tradeoff