INDEPENDANT - DEPENDANT - public abstract class KernelPerceptron<INDEPENDANT,DEPENDANT> extends Object implements OnlineLearner<INDEPENDANT,DEPENDANT>
| Modifier and Type | Field and Description |
|---|---|
protected int |
errors |
| Constructor and Description |
|---|
KernelPerceptron() |
KernelPerceptron(Kernel<INDEPENDANT> kernel) |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getBias() |
int |
getErrors() |
abstract List<INDEPENDANT> |
getSupports() |
abstract List<Double> |
getWeights() |
void |
process(INDEPENDANT xt,
DEPENDANT yt) |
abstract void |
update(INDEPENDANT xt,
DEPENDANT yt,
DEPENDANT yt_prime)
When there is an error in prediction, update somehow
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpredictprotected int errors
public KernelPerceptron()
public KernelPerceptron(Kernel<INDEPENDANT> kernel)
kernel - public void process(INDEPENDANT xt, DEPENDANT yt)
process in interface OnlineLearner<INDEPENDANT,DEPENDANT>public abstract void update(INDEPENDANT xt, DEPENDANT yt, DEPENDANT yt_prime)
xt - yt - yt_prime - public abstract List<INDEPENDANT> getSupports()
public abstract List<Double> getWeights()
public abstract double getBias()
public int getErrors()