public class MultiLabelClassifier extends Object implements Classifier
Constructor and Description |
---|
MultiLabelClassifier() |
Modifier and Type | Method and Description |
---|---|
Classifier[] |
getBinaryClassifiers() |
List<Label> |
getLabels()
Returns the labels representing the concept to be predicted.
|
MulticlassModel |
getModel()
Returns the model
|
MultiLabelClassificationOutput |
predict(Example example) |
void |
reset()
Resets all the predictor parameters to the default state.
|
void |
setBinaryClassifiers(Classifier[] binaryClassifiers) |
void |
setLabels(List<Label> labels)
Sets the labels representing the concept to be predicted.
|
void |
setModel(Model model)
Sets the model
|
public Classifier[] getBinaryClassifiers()
public void setBinaryClassifiers(Classifier[] binaryClassifiers)
binaryClassifiers
- the binaryClassifiers to setpublic MultiLabelClassificationOutput predict(Example example)
predict
in interface Classifier
predict
in interface PredictionFunction
public void reset()
PredictionFunction
reset
in interface PredictionFunction
public void setLabels(List<Label> labels)
PredictionFunction
setLabels
in interface PredictionFunction
labels
- the labels representing the concept to be predictedpublic List<Label> getLabels()
PredictionFunction
getLabels
in interface PredictionFunction
public MulticlassModel getModel()
PredictionFunction
getModel
in interface PredictionFunction
public void setModel(Model model)
PredictionFunction
setModel
in interface PredictionFunction
model
- the model to setCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.