InputType - The type of the input to the algorithm, which is passed to the kernel
function for use in learning.@PublicationReference(author={"Nicolo Cesa-Bianchi","Claudio Gentile"}, title="Tracking the Best Hyperplane with a Simple Budget Perceptron", year=2006, type=Conference, publication="Conference on Learning Theory", pages={483,498}, url="http://www.springerlink.com/index/d65th427143p0532.pdf") public class OnlineKernelRandomizedBudgetPerceptron<InputType> extends AbstractOnlineBudgetedKernelBinaryCategorizerLearner<InputType> implements Randomized
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Random |
random
The random number generator.
|
budget, DEFAULT_BUDGETkernel| Constructor and Description |
|---|
OnlineKernelRandomizedBudgetPerceptron()
Creates a new
OnlineKernelRandomizedBudgetPerceptron with default
parameters and a null kernel. |
OnlineKernelRandomizedBudgetPerceptron(Kernel<? super InputType> kernel,
int budget,
java.util.Random random)
Creates a new
OnlineKernelRandomizedBudgetPerceptron with the
given parameters. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Random |
getRandom()
Gets the random number generator used by this object.
|
void |
setRandom(java.util.Random random)
Sets the random number generator used by this object.
|
void |
update(DefaultKernelBinaryCategorizer<InputType> target,
InputType input,
boolean output)
Updates the target categorizer based on the given input and its
associated output.
|
getBudget, setBudgetcreateInitialLearnedObject, getKernel, setKernel, updateupdateclone, learn, learn, updateequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonelearnlearnupdatepublic OnlineKernelRandomizedBudgetPerceptron()
OnlineKernelRandomizedBudgetPerceptron with default
parameters and a null kernel.public OnlineKernelRandomizedBudgetPerceptron(Kernel<? super InputType> kernel, int budget, java.util.Random random)
OnlineKernelRandomizedBudgetPerceptron with the
given parameters.kernel - The kernel function to use.budget - The budget for the algorithm. Must be positive.random - The random number generator.public void update(DefaultKernelBinaryCategorizer<InputType> target, InputType input, boolean output)
AbstractOnlineKernelBinaryCategorizerLearnerupdate in class AbstractOnlineKernelBinaryCategorizerLearner<InputType>target - The target categorizer to update.input - The input value to learn from.output - The output value associated with the input.public java.util.Random getRandom()
RandomizedgetRandom in interface Randomizedpublic void setRandom(java.util.Random random)
RandomizedsetRandom in interface Randomizedrandom - The random number generator for this object to use.