InputType - The type of input to learn over. Passed to the kernel function.@PublicationReference(author={"Francesco Orabona","Joseph Keshet","Barbara Caputo"}, title="Bounded Kernel-Based Online Learning", year=2009, type=Journal, publication="Journal of Machine Learning Research", pages={2643,2666}, url="http://portal.acm.org/citation.cfm?id=1755875", notes="This is the Projectron++.") public static class Projectron.LinearSoftMargin<InputType> extends Projectron<InputType>
LinearSoftMargin, like the PA-I implementation.Projectron.LinearSoftMargin<InputType>DEFAULT_ETA, etakernel| Constructor and Description |
|---|
LinearSoftMargin()
Creates a new
Projectron.LinearSoftMargin with a null kernel
and default parameters. |
LinearSoftMargin(Kernel<? super InputType> kernel)
Creates a new
Projectron.LinearSoftMargin with the given
kernel and default parameters. |
LinearSoftMargin(Kernel<? super InputType> kernel,
double eta)
Creates a new
Projectron.LinearSoftMargin with the given
parameters. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyUpdate(DefaultKernelBinaryCategorizer<InputType> target,
InputType input,
double actual,
double margin,
double kernelInputInput,
double delta,
Vector d)
Apply the update for the Projectron.
|
protected boolean |
shouldUpdate(double margin)
Determine if an update should be made.
|
getEta, setEta, updatecreateInitialLearnedObject, getKernel, setKernel, updateupdateclone, learn, learn, updateequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonelearnlearnupdatepublic LinearSoftMargin()
Projectron.LinearSoftMargin with a null kernel
and default parameters.public LinearSoftMargin(Kernel<? super InputType> kernel)
Projectron.LinearSoftMargin with the given
kernel and default parameters.kernel - The kernel to use.protected boolean shouldUpdate(double margin)
ProjectronshouldUpdate in class Projectron<InputType>margin - The margin.protected void applyUpdate(DefaultKernelBinaryCategorizer<InputType> target, InputType input, double actual, double margin, double kernelInputInput, double delta, Vector d)
ProjectronapplyUpdate in class Projectron<InputType>target - The target to update.input - The input value.actual - The actual label.margin - The margin on the input.kernelInputInput - The kernel function k(input, input).delta - The value delta computed by the Projectron.d - The vector d that represents the coefficients for the projection.