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, eta
kernel
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, update
createInitialLearnedObject, getKernel, setKernel, update
update
clone, learn, learn, update
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
learn
learn
update
public 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)
Projectron
shouldUpdate
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)
Projectron
applyUpdate
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.