public class MultiLabelClassificationLearning extends Object implements ClassificationLearningAlgorithm, MetaLearningAlgorithm
NOTE: the base learning algorithm must provide a duplicate method which properly works
Constructor and Description |
---|
MultiLabelClassificationLearning() |
Modifier and Type | Method and Description |
---|---|
MultiLabelClassificationLearning |
duplicate()
This method will duplicate the current Learning algorithm
|
LearningAlgorithm |
getBaseAlgorithm()
This method will return the base algorithm.
|
List<Label> |
getLabels()
Returns the labels to be learned
|
MultiLabelClassifier |
getPredictionFunction()
This method returns the learned PredictionFunction.
|
void |
learn(Dataset dataset)
This method will cause the meta-learning algorithm to learn
N classifiers, where N is the number of classes in the dataset.
|
void |
reset()
This method will cause the reset of all the base algorithms
|
void |
setBaseAlgorithm(LearningAlgorithm baseAlgorithm)
This method will set the type of the base algorithms to be learned.
|
void |
setLabels(List<Label> labels)
Set the labels associated to this multi-classifier.
|
public void setLabels(List<Label> labels)
setLabels
in interface LearningAlgorithm
labels
- the labels representing the concept to be learnedpublic List<Label> getLabels()
getLabels
in interface LearningAlgorithm
public void learn(Dataset dataset)
learn
in interface LearningAlgorithm
dataset
- the training datapublic void reset()
reset
in interface LearningAlgorithm
public MultiLabelClassifier getPredictionFunction()
getPredictionFunction
in interface ClassificationLearningAlgorithm
getPredictionFunction
in interface LearningAlgorithm
public void setBaseAlgorithm(LearningAlgorithm baseAlgorithm)
setBaseAlgorithm
in interface MetaLearningAlgorithm
baseAlgorithm
- the baseAlgorithm to setpublic LearningAlgorithm getBaseAlgorithm()
getBaseAlgorithm
in interface MetaLearningAlgorithm
public MultiLabelClassificationLearning duplicate()
duplicate
in interface LearningAlgorithm
Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.