public class OneVsOneClassificationOutput extends Object implements ClassificationOutput
Constructor and Description |
---|
OneVsOneClassificationOutput() |
Modifier and Type | Method and Description |
---|---|
void |
addVotedPrediction(Label l,
float score) |
List<Label> |
getAllClasses()
Returns all the classes involved in the classification process (both predicted and not)
|
HashMap<Label,Integer> |
getCounter() |
HashMap<Label,Float> |
getMaxMarginForLabel() |
List<Label> |
getPredictedClasses()
Returns all the classes that the classifier has predicted
|
Float |
getScore(Label label)
Return the prediction score associated to a given label
|
boolean |
isClassPredicted(Label label)
Returns a boolean identifying the predicted membership to a specified class
|
public void addVotedPrediction(Label l, float score)
public Float getScore(Label label)
Prediction
getScore
in interface Prediction
label
- the label whose associated score is requiredpublic boolean isClassPredicted(Label label)
ClassificationOutput
isClassPredicted
in interface ClassificationOutput
label
- the class whose membership is requiredpublic List<Label> getPredictedClasses()
ClassificationOutput
getPredictedClasses
in interface ClassificationOutput
public List<Label> getAllClasses()
ClassificationOutput
getAllClasses
in interface ClassificationOutput
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.