Docsity

What is Machine Learning - Fall 2005 | CS 5350, Study notes of Computer Science

Toggle sidebar
bg1
Machine Learning (CS 5350/CS 6350) 09 Jan 2006
What is machine learning?
Trichotemy:
1. ML = statistics
2. ML = optimization
3. ML = modeling
Three components to any machine learning problem:
1. Task โˆ’โ†’ model
2. Experience โˆ’โ†’ data
3. Reward โˆ’โ†’ loss
Together, these are fed into a learning algorithm which produces a solution to the task.
Examples of machine learning problems:
1. Chess โ†โˆ’ reinforcement learning
2. Medical diagnosis โ†โˆ’ classification
3. Real-estate pricing โ†โˆ’ regression
4. Machine translation โ†โˆ’ structured prediction
5. Document clustering โ†โˆ’ unsupervised learning
Important realization: how to map your problem into a known machine learning paradigm.
1. Reinforcement Learning
(a) Agent, world, reward
(b) Finite horizon: PT
t=1 R(t)
(c) Infinite horizon: Pโˆž
t=1 ฮณtR(t), where ฮณ < 1
(d) Examples: block world, chess, robotic manipulation, taxi driving, elevator control, etc.
2. Classification (supervised learning)
(a) Input / discrete output
(b) Input is typically RD
(c) Output is either 2 = {0,1},K={0,1,...,K โˆ’1}or {โˆ’1,+1}(for convenience)
1
pf3
pf4

Partial preview of the text

Download What is Machine Learning - Fall 2005 | CS 5350 and more Study notes Computer Science in PDF only on Docsity!

Machine Learning (CS 5350/CS 6350) 09 Jan 2006

What is machine learning?

Trichotemy:

  1. ML = statistics
  2. ML = optimization
  3. ML = modeling

Three components to any machine learning problem:

  1. Task โˆ’โ†’ model
  2. Experience โˆ’โ†’ data
  3. Reward โˆ’โ†’ loss

Together, these are fed into a learning algorithm which produces a solution to the task.

Examples of machine learning problems:

  1. Chess โ†โˆ’ reinforcement learning
  2. Medical diagnosis โ†โˆ’ classification
  3. Real-estate pricing โ†โˆ’ regression
  4. Machine translation โ†โˆ’ structured prediction
  5. Document clustering โ†โˆ’ unsupervised learning

Important realization: how to map your problem into a known machine learning paradigm.

  1. Reinforcement Learning

(a) Agent, world, reward (b) Finite horizon:

โˆ‘T

t=1 R(t) (c) Infinite horizon:

t=1 ฮณ

tR(t), where ฮณ < 1

(d) Examples: block world, chess, robotic manipulation, taxi driving, elevator control, etc.

  1. Classification (supervised learning)

(a) Input / discrete output (b) Input is typically RD (c) Output is either 2 = { 0 , 1 }, K = { 0 , 1 ,... , K โˆ’ 1 } or {โˆ’ 1 , +1} (for convenience)

(d) Loss is usually 1[ห†y 6 = y] = ฮดyห† 6 =y = ฮดyห†โˆ’y , where ห†y is predicted and y is truth (e) Examples: cancer prediction, document classification, image recognition, etc.

  1. Regression (also supervised learning)

(a) Input / continuous output (b) Input is typically RD (c) Output is either R (d) Loss is usually half-squared loss: 12 (y โˆ’ yห†)^2 (e) Examples: Real-estate pricing, time prediction, weather prediction, stock prediction, etc.

  1. Structured Prediction (also supervised learning)

(a) Input / โ€œlarge complexโ€ output (b) Input is typically multiple RD^ s (can be considered just one) (c) Output is a (discrete) data structure (d) Loss is task specific (sometimes approximated by Hamming loss:

i 1[ห†yi^6 =^ y], with^ i^ ranging over โ€œpartsโ€ of the structure (e) Examples: sequence labeling, syntactic parsing, protein secondary-structure prediction, machine translation, etc.

  1. Unsupervised Learning

(a) Input is a data set (usually (RD^ )N^ ) (b) Output is a different representation of the input (c) Loss is task-specific (d) No training data! (e) Examples: document clustering, dimensionality reduction, feature selection (sort of), data visu- alization, language modeling, etc.

A simple classification example:

Length Type 179cm Ski 176cm Ski 174cm Ski 169cm Ski 162cm Ski 160cm Ski 156cm Ski 152cm Ski 158cm Snowboard 155cm Snowboard 151cm Snowboard 150cm Snowboard 148cm Snowboard 142cm Snowboard 142cm Snowboard 140cm Snowboard

What K is preferable?

  1. Too low K โ†โˆ’ underfitting
  2. Too high K โ†โˆ’ overfitting

Regularization! Often tuned with cross-validation, development data, etc.

Learning theory: Can I guarantee how well I will do in prediction?

Learning algorithm A takes training data (x 1 , y 1 ),... , (xN , yN ) and makes a prediction ห†y about ห†x.

Can we make any guarantees about how well A will do at this task?

Analyses are statistical: what is the probability A will err? Or, what is its expected error?

Is there a โ€œbestโ€ A?

What is this course all about?

  1. How to identify learning problems...
  2. How to specify a model...
  3. How to find good values for parameters in the model...
  4. How to select good features to enable learning...
  5. How to evaluate the performance of learned systems...
  6. How to transform learning problems...
  7. How to evaluate the performance of learning algorithms...