public class MultiLabelClassificationOutput extends Object implements ClassificationOutput
| Constructor and Description |
|---|
MultiLabelClassificationOutput() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinaryPrediction(Label label,
float prediction)
Sets the score associated to a given class
|
List<Label> |
getAllClasses()
Returns all the classes involved in the classification process (both predicted and not)
|
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 addBinaryPrediction(Label label, float prediction)
label - the classprediction - the scorepublic Float getScore(Label label)
PredictiongetScore in interface Predictionlabel - the label whose associated score is requiredpublic boolean isClassPredicted(Label label)
ClassificationOutputisClassPredicted in interface ClassificationOutputlabel - the class whose membership is requiredpublic List<Label> getPredictedClasses()
ClassificationOutputgetPredictedClasses in interface ClassificationOutputpublic List<Label> getAllClasses()
ClassificationOutputgetAllClasses in interface ClassificationOutputCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.