public class OneVsOneClassifier extends Object implements Classifier
Constructor and Description |
---|
OneVsOneClassifier() |
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
|
Label[] |
getNegativeLabelsForClassifier()
Return the negative labels associated to each classifier
|
OneVsOneClassificationOutput |
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
|
void |
setNegativeLabelsForClassifier(Label[] negativeLabelsForClassifier)
Set the negative label classifier array
|
public Label[] getNegativeLabelsForClassifier()
public void setNegativeLabelsForClassifier(Label[] negativeLabelsForClassifier)
negativeLabelsForClassifier
- public Classifier[] getBinaryClassifiers()
public void setBinaryClassifiers(Classifier[] binaryClassifiers)
binaryClassifiers
- the binaryClassifiers to setpublic OneVsOneClassificationOutput 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.