public class MultiEpochLearning extends Object implements MetaLearningAlgorithm
Constructor and Description |
---|
MultiEpochLearning() |
MultiEpochLearning(int epochs,
LearningAlgorithm baseAlgorithm,
List<Label> labels) |
Modifier and Type | Method and Description |
---|---|
MultiEpochLearning |
duplicate()
Creates a new instance of the LearningAlgorithm initialized with the same parameters
of the learningAlgorithm to be duplicated.
|
LearningAlgorithm |
getBaseAlgorithm()
Returns the base algorithm this meta algorithm is based on
|
int |
getEpochs() |
List<Label> |
getLabels()
Returns the labels representing the concept to be learned.
|
PredictionFunction |
getPredictionFunction()
Returns the predictionFunction learned during the training process
|
void |
learn(Dataset dataset)
It starts the training process exploiting the provided
dataset |
void |
reset()
Resets all the learning process, returning to the default state.
|
void |
setBaseAlgorithm(LearningAlgorithm baseAlgorithm) |
void |
setEpochs(int epochs) |
void |
setLabels(List<Label> labels)
Sets the labels representing the concept to be learned.
|
public MultiEpochLearning()
public MultiEpochLearning(int epochs, LearningAlgorithm baseAlgorithm, List<Label> labels)
public void setBaseAlgorithm(LearningAlgorithm baseAlgorithm)
setBaseAlgorithm
in interface MetaLearningAlgorithm
baseAlgorithm
- the baseAlgorithm to setpublic LearningAlgorithm getBaseAlgorithm()
MetaLearningAlgorithm
getBaseAlgorithm
in interface MetaLearningAlgorithm
public int getEpochs()
public void setEpochs(int epochs)
epochs
- the number of epochs to setpublic void learn(Dataset dataset)
LearningAlgorithm
dataset
learn
in interface LearningAlgorithm
dataset
- the training datapublic void setLabels(List<Label> labels)
LearningAlgorithm
setLabels
in interface LearningAlgorithm
labels
- the labels representing the concept to be learnedpublic List<Label> getLabels()
LearningAlgorithm
getLabels
in interface LearningAlgorithm
public MultiEpochLearning duplicate()
LearningAlgorithm
duplicate
in interface LearningAlgorithm
public void reset()
LearningAlgorithm
reset
in interface LearningAlgorithm
public PredictionFunction getPredictionFunction()
LearningAlgorithm
getPredictionFunction
in interface LearningAlgorithm
Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.