public class Stoptron extends BudgetedLearningAlgorithm
[OrabonaICML2008] Francesco Orabona, Joseph Keshet, and Barbara Caputo. The projectron: a bounded kernel-based perceptron. In Int. Conf. on Machine Learning (2008)
Until the budget is not reached the online learning updating policy is the one of the baseAlgorithm that this meta-algorithm is exploiting. When the budget is full, the learning process ends
baseAlgorithm, budget, label
Constructor and Description |
---|
Stoptron() |
Stoptron(int budget,
OnlineLearningAlgorithm baseAlgorithm,
List<Label> labels) |
Modifier and Type | Method and Description |
---|---|
Stoptron |
duplicate()
Creates a new instance of the LearningAlgorithm initialized with the same parameters
of the learningAlgorithm to be duplicated.
|
Prediction |
predictAndLearnWithFullBudget(Example example)
Learns from a single example applying a specific policy that must be adopted when the budget is reached
|
void |
reset()
Resets all the learning process, returning to the default state.
|
getBaseAlgorithm, getBudget, getLabel, getLabels, getPredictionFunction, learn, learn, setBaseAlgorithm, setBudget, setLabel, setLabels
public Stoptron()
public Stoptron(int budget, OnlineLearningAlgorithm baseAlgorithm, List<Label> labels)
public Stoptron duplicate()
LearningAlgorithm
public void reset()
LearningAlgorithm
public Prediction predictAndLearnWithFullBudget(Example example)
BudgetedLearningAlgorithm
predictAndLearnWithFullBudget
in class BudgetedLearningAlgorithm
example
- the example to be exploited in the learning processCopyright © 2014 Semantic Analytics Group @ Uniroma2. All rights reserved.