Averaged Perceptron
Overview
Averaged perceptron is a optimization algorithm which only has one hyperparameter: , the # of iterations.
It will keep updating towards seperating the labels based on the inputs for as long as you specify, hence it's prone to overfit.
Notation
- - a single input vector, of dimensions
- - a single label,
- - the dth component of some input vector
- - weight for the dth component of the inputs
- - bias
Algorithm
Training
- for do
- for all do
- if then
- end if
- if then
- end for
- for all do
- end for
- return
Test
- return