Unified Online-learning Library
Documentation
algorithms/icl_learn_PA
ILS = icl_learn_PA(ILS, x, y, yp, mode)
PA learning algorithm.

PA - Passive-Aggressive (with variants PA, PA-I and PA-II)
Reference: Crammer, K., Dekel, O., Keshet, J., Shalev-Shwartz, S., Singer, Y.: Online passive-aggressive algorithms. The Journal of Machine Learning Research 7, 551-585 (2006), http://webee.technion.ac.il/people/koby/publications/crammer06a.pdf


Inputs:
ILSstructure describing the learning system
xdouble input vector in [-10,10]
ytrue label, i.e. target value of the example, in [-1, 1] for regression or [-1; 1] for classification
yppredicted label, i.e. current output of the approximation, in [-1, 1] for regression or [-1; 1] for classification
modeoperating mode (regression=1, classification=2)

Outputs:
ILSupdated matlab structure describing the learning system

Calls:

Called by:

Authors:

Last change: 2013-07-13 - Version 1.5