public abstract class BudgetedLearningAlgorithm extends Object implements OnlineLearningAlgorithm, BinaryLearningAlgorithm, KernelMethod
| Modifier and Type | Field and Description |
|---|---|
protected int |
budget |
protected Label |
label |
| Constructor and Description |
|---|
BudgetedLearningAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBudget()
Returns the budget, i.e.
|
Label |
getLabel() |
List<Label> |
getLabels()
Returns the labels representing the concept to be learned.
|
void |
learn(Dataset dataset)
It starts the training process exploiting the provided
dataset |
Prediction |
learn(Example example)
Applies the learning process on a single example, updating its current model
|
protected abstract Prediction |
predictAndLearnWithAvailableBudget(Example example) |
protected abstract Prediction |
predictAndLearnWithFullBudget(Example example)
Learns from a single example applying a specific policy that must be adopted when the budget is reached
|
void |
setBudget(int budget)
Sets the budget, i.e.
|
void |
setLabel(Label label) |
void |
setLabels(List<Label> labels)
Sets the labels representing the concept to be learned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitduplicate, getPredictionFunction, resetgetKernel, setKernelprotected int budget
protected Label label
public int getBudget()
public void setBudget(int budget)
budget - the budget to setpublic void learn(Dataset dataset)
LearningAlgorithmdatasetlearn in interface LearningAlgorithmdataset - the training datapublic Prediction learn(Example example)
OnlineLearningAlgorithmlearn in interface OnlineLearningAlgorithmexample - the instance to be exploited in the learning processexample before the updating stepprotected abstract Prediction predictAndLearnWithAvailableBudget(Example example)
protected abstract Prediction predictAndLearnWithFullBudget(Example example)
example - the example to be exploited in the learning processpublic void setLabels(List<Label> labels)
LearningAlgorithmsetLabels in interface BinaryLearningAlgorithmsetLabels in interface LearningAlgorithmlabels - the labels representing the concept to be learnedpublic List<Label> getLabels()
LearningAlgorithmgetLabels in interface BinaryLearningAlgorithmgetLabels in interface LearningAlgorithmpublic Label getLabel()
getLabel in interface BinaryLearningAlgorithmpublic void setLabel(Label label)
setLabel in interface BinaryLearningAlgorithmCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.