01-ml-overview__slides
01-ml-overview__slides
4. Notation
Part 1: Introduction
4. Notation
“The 1 field
Arthur L Samuel.of“Some
machine learning
studies in machine learning using theis
gameconcerned
of checkers”. In: IBM with
Journal of the question of how to
research and development 3.3 (1959), pp. 210–229.
construct computer programs that automatically improve with experience”
Sebastian Raschka STAT 451: Intro to ML Lecture 1: Introduction 10
The Traditional Programming Paradigm
Inputs (observations)
!2
Inputs
Computer Program
Outputs
!3
Sebastian Raschka STAT 451: Intro to ML Lecture 1: Introduction 12
We will not only use the machines for their
intelligence, we will also collaborate with them in
ways that we cannot even imagine.
-- Fei Fei Li, Director of Stanford's artificial intelligence lab
detection
Sebastian
hell et al.Raschka
“Machine learning. STAT 451: Intro
1997”. In: to ML Ridge, IL: McGraw
Burr Hill 45.37 (1997), 14
Lecture 1: Introduction
A “A
bitcomputer
more concrete, Tom
program is said Mitchell’s
to learn quoteE with
from experience fromrespect
his Machin
to
some class of tasks T and performance measure P , if its performance at tasks
in T , as measured by P , improves with experience E.”
— Tom “AMitchell,
computer program
Professor is said
at Carnegie to University
Mellon learn from
some class of tasks T and performance mea
Handwriting Recognition Example:
in T , aslearning
consider a handwriting recognition measured by (from
problem P , improves
Mitchell’s with
book):exp
— Tom Mitchell, Profe
cognizing and classifying handwritten words within images
ce measure P : percent of words correctly classified
As an example, consider a handwriting recognition learning
xperience E: a database of handwritten words with given classifications
?
• Task T : recognizing
ations of Machine Learning
and classifying handwritten word
• Performance measure P : ?percent of words correctly c
etection
• Training experience E: ?a database of handwritten wo
ll et al. “Machine learning. 1997”. In: Burr Ridge, IL: McGraw Hill 45.37 (1997),
•
•
•
•
•
Sebastian Raschka STAT 451: Intro to ML Lecture 1: Introduction 16
Lecture 1 Overview
4. Notation
Labeled data
Supervised Learning Direct feedback
Predict outcome/future
No labels/targets
Unsupervised Learning No feedback
Find hidden structure in data
x2
x1
Sebastian Raschka STAT 451: Intro to ML Lecture 1: Introduction 19
Supervised Learning: Regression
x
Sebastian Raschka STAT 451: Intro to ML Lecture 1: Introduction 20
Categories of Machine Learning
Labeled data
Supervised Learning Direct feedback
Predict outcome/future
No labels/targets
Unsupervised Learning No feedback
Find hidden structure in data
Decision process
Reinforcement Learning
Sebastian Raschka STAT 451: Intro to ML Reward system
Lecture 1: Introduction 21
Unsupervised Learning -- Clustering
x2
x1
Sebastian Raschka STAT 451: Intro to ML Lecture 1: Introduction 22
Unsupervised Learning
-- Dimensionality Reduction
Labeled data
Supervised Learning Direct feedback
Predict outcome/future
No labels/targets
Unsupervised Learning No feedback
Find hidden structure in data
Decision process
Reinforcement Learning Reward system
Learn series of actions
Environment
Reward
State
Action
Agent
4. Notation
Machine Learning
Algorithm
Classification Regression
m m
h:ℝ → ___ h:ℝ → ___
x1
x2
x=
⋮
xm
Feature vector
xT1
x1
x2 xT2
x= X=
⋮ ⋮
xm xTn
Feature vector
_________________ ______________________ ______________________
m= _____
n= _____
x1 y [1]
x2 y [2]
x= y=
⋮ ⋮
xm y [n]
Input features
______________ ______________
Hypothesis space
a particular learning
algorithm category
has access to
Hypothesis space
a particular learning
algorithm can sample
Particular hypothesis
(i.e., a model/classifier)
Sebastian Raschka STAT 451: Intro to ML Lecture 1: Introduction 37
Classes of Machine Learning Algorithms
• Ensembles (e.g.,
4. Notation
Machine Learning
Algorithm
Labels
Training Dataset
Learning
Final Model New Data
Labels Algorithm
Model Selection
Cross-Validation
Performance Metrics
Hyperparameter Optimization
{1 if ŷ ≠ y
0 if ŷ = y
L(y,̂ y) =
n
1
L(ŷ , y )
[i] [i]
test n ∑
ERR𝒟 =
i=1
4. Notation
• Neuroscientists:
Machine Learning
Deep Learning
AI
https://en.wikipedia.org/wiki/Spam_(food)
"It has become the subject of a number of appearances in pop culture, notably
a Monty Python sketch which repeated the name many times, leading to its
name being borrowed for unsolicited electronic messages, especially email."
https://en.wikipedia.org/wiki/Spam_(food)
https://en.wikipedia.org/wiki/Monty_Python
https://en.wikipedia.org/wiki/Spam_(food)
https://en.wikipedia.org/wiki/Monty_Python
"Python's name is derived from the British comedy group Monty Python, whom Python creator Guido van
Rossum enjoyed while developing the language. "
https://en.wikipedia.org/wiki/Python_(programming_language)
▪ Model: In the machine learning field, the terms hypothesis and model are
often used interchangeably. In other sciences, they can have different
meanings.
Part 1: Introduction
- Week 04: L05 - Data preprocessing and machine learning with scikit-learn