public class MultiEpochLearning extends Object implements MetaLearningAlgorithm
| Constructor and Description |
|---|
MultiEpochLearning() |
MultiEpochLearning(int epochs,
LearningAlgorithm baseAlgorithm) |
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.
|
void |
setPredictionFunction(PredictionFunction predictionFunction)
Sets the predictionFunction learned during the training process.
|
public MultiEpochLearning()
public MultiEpochLearning(int epochs,
LearningAlgorithm baseAlgorithm,
List<Label> labels)
public MultiEpochLearning(int epochs,
LearningAlgorithm baseAlgorithm)
public void setBaseAlgorithm(LearningAlgorithm baseAlgorithm)
setBaseAlgorithm in interface MetaLearningAlgorithmbaseAlgorithm - the baseAlgorithm to setpublic LearningAlgorithm getBaseAlgorithm()
MetaLearningAlgorithmgetBaseAlgorithm in interface MetaLearningAlgorithmpublic int getEpochs()
public void setEpochs(int epochs)
epochs - the number of epochs to setpublic void learn(Dataset dataset)
LearningAlgorithmdatasetlearn in interface LearningAlgorithmdataset - the training datapublic void setLabels(List<Label> labels)
LearningAlgorithmsetLabels in interface LearningAlgorithmlabels - the labels representing the concept to be learnedpublic List<Label> getLabels()
LearningAlgorithmgetLabels in interface LearningAlgorithmpublic MultiEpochLearning duplicate()
LearningAlgorithmduplicate in interface LearningAlgorithmpublic void reset()
LearningAlgorithmreset in interface LearningAlgorithmpublic PredictionFunction getPredictionFunction()
LearningAlgorithmgetPredictionFunction in interface LearningAlgorithmpublic void setPredictionFunction(PredictionFunction predictionFunction)
LearningAlgorithmsetPredictionFunction in interface LearningAlgorithmCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.