InputType - The input type to learn over, which is passed to the kernel function.public class RemoveOldestKernelPerceptron<InputType> extends AbstractOnlineBudgetedKernelBinaryCategorizerLearner<InputType>
budget, DEFAULT_BUDGETkernel| 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, setBudgetgetKernel, setKernel, updateupdateclone, learn, learn, updateequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonelearnlearnupdatepublic RemoveOldestKernelPerceptron()
RemoveOldestKernelPerceptron with a null kernel
and default budget.public DefaultKernelBinaryCategorizer<InputType> createInitialLearnedObject()
IncrementalLearnercreateInitialLearnedObject 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)
AbstractOnlineKernelBinaryCategorizerLearnerupdate 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.