21
1 Machine Learning: Review Alexander G. Ororbia II Introduction to Machine Learning CSCI-736 1/14/2020 Special Thanks: Sargur N. Srihari

Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

1

Machine Learning: Review

Alexander G. Ororbia IIIntroduction to Machine Learning

CSCI-7361/14/2020

Special Thanks: Sargur N. Srihari

Page 2: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

http://www.asimovinstitute.org/neural-network-zoo/

Deep zoo!

Page 3: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

http://www.asimovinstitute.org/neural-network-zoo/

Page 4: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

• Representation / Modeling– Data format, organization– Model structure, “architecture”

• Evaluation– “Goodness” of model on data sample– Guides optimization / model fitting

• Optimization– “Model fitting” -- evolution/adjustment of parameters, error

correction

Key Ideas

Page 5: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

Types of Learning• Supervised (inductive) learning

– Training data includes desired outputs– Prediction / Classification (discrete labels), Regression (real values)

• Unsupervised learning– Training data does not include desired outputs– Clustering / probability distribution estimation– Finding association (in features)– Dimension reduction

• Semi-supervised learning– Training data includes a few desired outputs

• Reinforcement learning– Rewards from sequence of actions– Decision making (robot, chess machine)

Page 6: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

Inductive Learning

• Given examples of a function (X, F(X))• Predict function F(X) for new examples X

– Discrete F(X): Classification– Continuous F(X): Regression– F(X) = Probability(X) or P(X): Probability estimation

Page 7: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

7

Visualizing Types of Learning

Supervised learning

Unsupervised learning

Semi-supervised learning

Page 8: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

• Supervised learning

A Typical Supervised Learning Pipeline

Page 9: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

• Unsupervised learning

A Typical Unsupervised Learning Pipeline

Page 10: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

ML in Practice• Understanding domain, prior knowledge, and

goals• Data integration, selection, cleaning,

pre-processing, etc.• Learning models• Interpreting results• Consolidating and deploying discovered

knowledge• Loop

Page 11: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

• Face detection• Object detection and

recognition• Image segmentation• Multimedia event

detection• Web search / information

retrieval• Computational biology

Applications Abound• Finance• E-commerce• Space exploration• Robotics• Information extraction• Social networks• Debugging• [Your favorite area]

Page 12: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

Training Experience• Direct experience: Given sample input and output pairs for a

useful target function– Checker boards labeled with the correct move, e.g. extracted from record

of expert play• Indirect experience: Given feedback which is not direct I/O pairs

for a useful target function– Potentially arbitrary sequences of game moves and their final game

results• Credit/Blame Assignment Problem: How to assign credit blame to

individual moves given only indirect feedback?

Page 13: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

Training vs. Test Distribution• Generally assume that the training and test examples are

independently drawn from the same overall distribution of data.– IID: Independently and identically distributed

• If examples are not independent, requires collective classification

• If test distribution is different, requires transfer learning

Page 14: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

Training set (observed)

Universal set(unobserved)

Testing set(unobserved)

Data acquisition

Practical usage

• Training = the process of making the system able to learn• Testing = the process of seeing how well the system learned

– Simulates “real world” usage– Training set and testing set come from the same distribution– Need to make some assumptions or bias

• Deployment = actually using the learned system in practice

Page 15: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete
Page 16: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete
Page 17: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

Features (What Could be Inside of x)• Raw pixels

• Histograms

• GIST descriptors

• …Slide credit: L. Lazebnik

Page 18: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

The Functional Machine Learning Framework

y = f(x)

• Training: given a training set of labeled examples {(x1,y1), …, (xN,yN)}, estimate the prediction function f by minimizing the prediction error on the training set

• Testing: apply f to a never before seen test example x and output the predicted value y = f(x)

output prediction function

Image feature

Slide credit: L. Lazebnik

Page 19: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

• Apply a prediction function to a feature representation of the image to get the desired output:

f( ) = “apple”f( ) = “tomato”f( ) = “cow”

Slide credit: L. Lazebnik

Page 20: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

Prediction

Goal: Construct a PipelineTraining LabelsTraining

Images

Training

Training

Image Features

Image Features

Testing

Test Image

Learned model

Learned model

Slide credit: D. Hoiem and L. Lazebnik

Page 21: Machine Learning: Reviewago/courses/736/lec01-ml-review1.pdf•Supervised (inductive) learning – Training data includes desired outputs – Prediction / Classification (discrete

Questions?

Deep questions?!

Deep robots!