InputType
- The type of input passed to the kernel to do learning over.public abstract class AbstractOnlineBudgetedKernelBinaryCategorizerLearner<InputType> extends AbstractOnlineKernelBinaryCategorizerLearner<InputType>
BudgetedKernelBinaryCategorizerLearner
for online learners.Modifier and Type | Field and Description |
---|---|
protected int |
budget
The budget of the number of examples to keep.
|
static int |
DEFAULT_BUDGET
The default budget is 100.
|
kernel
Constructor and Description |
---|
AbstractOnlineBudgetedKernelBinaryCategorizerLearner()
Creates a new
AbstractOnlineBudgetedKernelBinaryCategorizerLearner
with a null kernel and default budget. |
AbstractOnlineBudgetedKernelBinaryCategorizerLearner(Kernel<? super InputType> kernel,
int budget)
Creates a new
AbstractOnlineBudgetedKernelBinaryCategorizerLearner
with the given parameters. |
Modifier and Type | Method and Description |
---|---|
int |
getBudget()
Gets the budget.
|
void |
setBudget(int budget)
Sets the budget.
|
createInitialLearnedObject, getKernel, setKernel, update, update
update
clone, learn, learn, update
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
learn
learn
update
public static final int DEFAULT_BUDGET
protected int budget
public AbstractOnlineBudgetedKernelBinaryCategorizerLearner()
AbstractOnlineBudgetedKernelBinaryCategorizerLearner
with a null kernel and default budget.public AbstractOnlineBudgetedKernelBinaryCategorizerLearner(Kernel<? super InputType> kernel, int budget)
AbstractOnlineBudgetedKernelBinaryCategorizerLearner
with the given parameters.kernel
- The kernel function to use.budget
- The budget of examples. Must be positive.public int getBudget()
public void setBudget(int budget)
budget
- The budget. Must be positive.