public class Classification extends Object
During classification, an example is compared to each classifier which in turn generates a value indicating how confident it thinks that the example belongs in the class. This value is called the confidence value. A classification contains a list of classifiers along with their corresponding confidence values for the example.
Constructor and Description |
---|
Classification(String[] types,
double[] confidences)
Construct a classification with no types.
|
Modifier and Type | Method and Description |
---|---|
double |
getConfidence(int i)
Return the i'th confidence.
|
double |
getHighestConfidence() |
String |
getHighestConfidenceType() |
String |
getType(int i)
Return the i'th type.
|
int |
getTypeCount()
Return the number of types in this classification.
|
String |
toString()
Return a string representation of this classification
consisting of type and confidence pairs.
|
public Classification(String[] types, double[] confidences)
public double getHighestConfidence()
public String getHighestConfidenceType()
public int getTypeCount()
public String getType(int i)
public double getConfidence(int i)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.