Difference between revisions of "Supervised Learning"

From Bitnami MediaWiki
Jump to navigation Jump to search
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 Step Program===
 +
(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

Revision as of 02:20, 1 March 2021

Overview

  • 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 Step Program

(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