|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.classification.Classification
public class Classification
Data structure for storing a list of classifer type and confidence value pairs in the order of descending confidence values.
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 Summary | |
---|---|
Classification(String[] types,
double[] confidences)
Construct a classification with no types. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Classification(String[] types, double[] confidences)
Method Detail |
---|
public double getHighestConfidence()
public String getHighestConfidenceType()
public int getTypeCount()
public String getType(int i)
public double getConfidence(int i)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |