InputType - The input value type passed to the kernel function to perform learning
over.public abstract class AbstractOnlineKernelBinaryCategorizerLearner<InputType> extends AbstractSupervisedBatchAndIncrementalLearner<InputType,java.lang.Boolean,DefaultKernelBinaryCategorizer<InputType>> implements KernelContainer<InputType>
| Modifier and Type | Field and Description |
|---|---|
protected Kernel<? super InputType> |
kernel
The kernel to use.
|
| Constructor and Description |
|---|
AbstractOnlineKernelBinaryCategorizerLearner()
Creates a new
AbstractOnlineKernelBinaryCategorizerLearner with
a null kernel. |
AbstractOnlineKernelBinaryCategorizerLearner(Kernel<? super InputType> kernel)
Creates a new
AbstractOnlineKernelBinaryCategorizerLearner with
the given kernel. |
| Modifier and Type | Method and Description |
|---|---|
DefaultKernelBinaryCategorizer<InputType> |
createInitialLearnedObject()
Creates a new initial learned object, before any data is given.
|
Kernel<? super InputType> |
getKernel()
Gets the kernel.
|
void |
setKernel(Kernel<? super InputType> kernel)
Sets the kernel used by this learner.
|
abstract void |
update(DefaultKernelBinaryCategorizer<InputType> target,
InputType input,
boolean output)
Updates the target categorizer based on the given input and its
associated output.
|
void |
update(DefaultKernelBinaryCategorizer<InputType> target,
InputType input,
java.lang.Boolean output)
The
update method updates an object of ResultType using
the given a new supervised input-output pair, using some form of
"learning" algorithm. |
updateclone, learn, learn, updateequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonelearnlearnupdatepublic AbstractOnlineKernelBinaryCategorizerLearner()
AbstractOnlineKernelBinaryCategorizerLearner with
a null kernel.public DefaultKernelBinaryCategorizer<InputType> createInitialLearnedObject()
IncrementalLearnercreateInitialLearnedObject in interface IncrementalLearner<InputOutputPair<? extends InputType,java.lang.Boolean>,DefaultKernelBinaryCategorizer<InputType>>public void update(DefaultKernelBinaryCategorizer<InputType> target, InputType input, java.lang.Boolean output)
SupervisedIncrementalLearnerupdate method updates an object of ResultType using
the given a new supervised input-output pair, using some form of
"learning" algorithm.update in interface SupervisedIncrementalLearner<InputType,java.lang.Boolean,DefaultKernelBinaryCategorizer<InputType>>target - The object to update.input - The supervised input to learn from.output - The supervised output to learn from.public abstract void update(DefaultKernelBinaryCategorizer<InputType> target, InputType input, boolean output)
target - The target categorizer to update.input - The input value to learn from.output - The output value associated with the input.public Kernel<? super InputType> getKernel()
KernelContainergetKernel in interface KernelContainer<InputType>