Supervised Learning
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 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.