public abstract class AbstractKernelizableBinaryCategorizerOnlineLearner extends AbstractOnlineLinearBinaryCategorizerLearner implements KernelizableBinaryCategorizerOnlineLearner
KernelizableBinaryCategorizerOnlineLearner
interface. It handles a lot of the convenience methods to string them
together, making it necessary for sub-classes to only implement one
update method.vectorFactory| Constructor and Description |
|---|
AbstractKernelizableBinaryCategorizerOnlineLearner()
Creates a new
AbstractKernelizableBinaryCategorizerOnlineLearner. |
AbstractKernelizableBinaryCategorizerOnlineLearner(VectorFactory<?> vectorFactory)
Creates a new
AbstractKernelizableBinaryCategorizerOnlineLearner
with the given vector factory. |
| Modifier and Type | Method and Description |
|---|---|
<InputType> |
createInitialLearnedObject(Kernel<? super InputType> kernel)
Creates the initial learned object with a given kernel.
|
<InputType> |
createKernelLearner(Kernel<? super InputType> kernel)
Creates a new kernel-based learner using the standard learning interfaces
based on this learner and its parameters.
|
<InputType> |
learn(Kernel<? super InputType> kernel,
java.lang.Iterable<? extends InputOutputPair<? extends InputType,java.lang.Boolean>> data)
Run this algorithm on a batch of data using the given kernel function.
|
<InputType> |
update(DefaultKernelBinaryCategorizer<InputType> target,
InputOutputPair<? extends InputType,java.lang.Boolean> data)
Performs a kernel-based incremental update step on the given object
using the given supervised data.
|
<InputType> |
update(DefaultKernelBinaryCategorizer<InputType> target,
InputType input,
java.lang.Boolean output)
Performs a kernel-based incremental update step on the given object
using the given supervised data.
|
<InputType> |
update(DefaultKernelBinaryCategorizer<InputType> target,
java.lang.Iterable<? extends InputOutputPair<? extends InputType,java.lang.Boolean>> data)
Performs a kernel-based incremental update step on the given object
using the given supervised data.
|
createInitialLearnedObject, getVectorFactory, setVectorFactory, update, updateupdateclone, learn, learn, updateequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateupdatelearnlearncreateInitialLearnedObject, update, updateclonepublic AbstractKernelizableBinaryCategorizerOnlineLearner()
AbstractKernelizableBinaryCategorizerOnlineLearner.public AbstractKernelizableBinaryCategorizerOnlineLearner(VectorFactory<?> vectorFactory)
AbstractKernelizableBinaryCategorizerOnlineLearner
with the given vector factory.vectorFactory - The vector factory to use.public <InputType> DefaultKernelBinaryCategorizer<InputType> createInitialLearnedObject(Kernel<? super InputType> kernel)
KernelizableBinaryCategorizerOnlineLearnercreateInitialLearnedObject in interface KernelizableBinaryCategorizerOnlineLearnerInputType - The input type for supervised learning. Will be passed to the
kernel function.kernel - The kernel function to use.public <InputType> void update(DefaultKernelBinaryCategorizer<InputType> target, java.lang.Iterable<? extends InputOutputPair<? extends InputType,java.lang.Boolean>> data)
KernelizableBinaryCategorizerOnlineLearnerupdate in interface KernelizableBinaryCategorizerOnlineLearnerInputType - The input type for supervised learning. Will be passed to the
kernel function.target - The target object to update.data - The supervised training data.public <InputType> void update(DefaultKernelBinaryCategorizer<InputType> target, InputOutputPair<? extends InputType,java.lang.Boolean> data)
KernelizableBinaryCategorizerOnlineLearnerupdate in interface KernelizableBinaryCategorizerOnlineLearnerInputType - The input type for supervised learning. Will be passed to the
kernel function.target - The target object to update.data - The supervised training data.public <InputType> void update(DefaultKernelBinaryCategorizer<InputType> target, InputType input, java.lang.Boolean output)
KernelizableBinaryCategorizerOnlineLearnerupdate in interface KernelizableBinaryCategorizerOnlineLearnerInputType - The input type for supervised learning. Will be passed to the
kernel function.target - The target object to update.input - The supervised input value.output - The supervised output value (label).public <InputType> DefaultKernelBinaryCategorizer<InputType> learn(Kernel<? super InputType> kernel, java.lang.Iterable<? extends InputOutputPair<? extends InputType,java.lang.Boolean>> data)
KernelizableBinaryCategorizerOnlineLearnerlearn in interface KernelizableBinaryCategorizerOnlineLearnerInputType - The input type for supervised learning. Will be passed to the
kernel function.kernel - The kernel function to use.data - The supervised training data.public <InputType> SupervisedBatchAndIncrementalLearner<InputType,java.lang.Boolean,DefaultKernelBinaryCategorizer<InputType>> createKernelLearner(Kernel<? super InputType> kernel)
KernelizableBinaryCategorizerOnlineLearnercreateKernelLearner in interface KernelizableBinaryCategorizerOnlineLearnerInputType - The input type for supervised learning. Will be passed to the
kernel function.kernel - The kernel function to use.