InputType
- The input type to learn over, which is passed to the kernel function.public class RemoveOldestKernelPerceptron<InputType> extends AbstractOnlineBudgetedKernelBinaryCategorizerLearner<InputType>
budget, DEFAULT_BUDGET
kernel
Constructor and Description |
---|
RemoveOldestKernelPerceptron()
Creates a new
RemoveOldestKernelPerceptron with a null kernel
and default budget. |
RemoveOldestKernelPerceptron(Kernel<? super InputType> kernel,
int budget)
Creates a new
RemoveOldestKernelPerceptron with the given
parameters. |
Modifier and Type | Method and Description |
---|---|
DefaultKernelBinaryCategorizer<InputType> |
createInitialLearnedObject()
Creates a new initial learned object, before any data is given.
|
void |
update(DefaultKernelBinaryCategorizer<InputType> target,
InputType input,
boolean label)
Updates the target categorizer based on the given input and its
associated output.
|
getBudget, setBudget
getKernel, setKernel, update
update
clone, learn, learn, update
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
learn
learn
update
public RemoveOldestKernelPerceptron()
RemoveOldestKernelPerceptron
with a null kernel
and default budget.public DefaultKernelBinaryCategorizer<InputType> createInitialLearnedObject()
IncrementalLearner
createInitialLearnedObject
in interface IncrementalLearner<InputOutputPair<? extends InputType,java.lang.Boolean>,DefaultKernelBinaryCategorizer<InputType>>
createInitialLearnedObject
in class AbstractOnlineKernelBinaryCategorizerLearner<InputType>
public void update(DefaultKernelBinaryCategorizer<InputType> target, InputType input, boolean label)
AbstractOnlineKernelBinaryCategorizerLearner
update
in class AbstractOnlineKernelBinaryCategorizerLearner<InputType>
target
- The target categorizer to update.input
- The input value to learn from.label
- The output value associated with the input.