Difference between revisions of "Supervised Learning"

From Bitnami MediaWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
===Overview===
 
* Maps an input to an output based on previously seen input-output pairs
 
* Maps an input to an output based on previously seen input-output pairs
 
* An algorithm produces an inferred function (whose parameters may or may not be known)
 
* An algorithm produces an inferred function (whose parameters may or may not be known)
Line 7: Line 8:
 
* Lacking the joint probability distribution <math>\rho</math>, the '''empirical error''' is computed on sample data as:  
 
* Lacking the joint probability distribution <math>\rho</math>, the '''empirical error''' is computed on sample data as:  
 
:: <math>I_n[f] = \dfrac{1}{n}\displaystyle\sum^n_{i=1} V(f(\mathbf{x}_i, y_i)</math>
 
:: <math>I_n[f] = \dfrac{1}{n}\displaystyle\sum^n_{i=1} V(f(\mathbf{x}_i, y_i)</math>
 +
 +
===6 Steps to Supervised Learning===
 +
(according to wikipedia)
 +
#Determine the type (form) of the training examples
 +
# Collect a training set
 +
# Determine how to represent the input features to the learned function. How to construct a feature vector.
 +
# Determine structure of the learned function and corresponding algorithm, e.g., choose SVMs vs Decision Trees
 +
# Run the learning algorithm on the training set. Apply cross-validation if appropriate
 +
# Evaluate the accuracy of the learned function, measured on data separate from the training set
 +
 +
===Major Issues to Consider===
 +
# Bias-variance trade-off: A low bias algorithm must be sufficiently flexible, but too flexible and it will fit each training set differently, resulting in high variance. An inflexible model will have high bias (will be systematically wrong about certain observations) but low variance (will classify predictably)
 +
# Function complexity and amount of training data: high bias/low variance models will be able to learn from a small amount of data.

Latest revision as of 02:28, 1 March 2021

Overview[edit]

  • Maps an input to an output based on previously seen input-output pairs
  • An algorithm produces an inferred function (whose parameters may or may not be known)
  • Generalization error is the measure of how accurately an algorithm labels new data
  • The error (aka expected loss or risk) [math]\displaystyle{ I[f] }[/math] is given by
[math]\displaystyle{ I[f] = \displaystyle\int_{X\times Y} V(f(\mathbf{x}), y)\,\rho(\mathbf{x},y) d\mathbf{x}dy }[/math]

where [math]\displaystyle{ V }[/math] is a loss function and [math]\displaystyle{ \rho(\mathbf{x}, y) }[/math] is the unknown joint probability distribution for [math]\displaystyle{ \mathbf{x} }[/math] and [math]\displaystyle{ y }[/math]

  • Lacking the joint probability distribution [math]\displaystyle{ \rho }[/math], the empirical error is computed on sample data as:
[math]\displaystyle{ I_n[f] = \dfrac{1}{n}\displaystyle\sum^n_{i=1} V(f(\mathbf{x}_i, y_i) }[/math]

6 Steps to Supervised Learning[edit]

(according to wikipedia)

  1. Determine the type (form) of the training examples
  2. Collect a training set
  3. Determine how to represent the input features to the learned function. How to construct a feature vector.
  4. Determine structure of the learned function and corresponding algorithm, e.g., choose SVMs vs Decision Trees
  5. Run the learning algorithm on the training set. Apply cross-validation if appropriate
  6. Evaluate the accuracy of the learned function, measured on data separate from the training set

Major Issues to Consider[edit]

  1. Bias-variance trade-off: A low bias algorithm must be sufficiently flexible, but too flexible and it will fit each training set differently, resulting in high variance. An inflexible model will have high bias (will be systematically wrong about certain observations) but low variance (will classify predictably)
  2. Function complexity and amount of training data: high bias/low variance models will be able to learn from a small amount of data.