|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.classify.evaluate.AccuracyCoverage
public class AccuracyCoverage
Methods for calculating and displaying the accuracy v. coverage data for a Trial
Nested Class Summary | |
---|---|
class |
AccuracyCoverage.ClassificationComparator
|
Constructor Summary | |
---|---|
AccuracyCoverage(Classifier C,
InstanceList ilist,
int numBuckets,
java.lang.String title)
|
|
AccuracyCoverage(Classifier C,
InstanceList ilist,
java.lang.String title)
|
|
AccuracyCoverage(Trial t,
int numBuckets,
java.lang.String title,
java.lang.String dataName)
Constructs object, sorts classifications, and creates accuracyValues array |
|
AccuracyCoverage(Trial t,
java.lang.String title)
|
|
AccuracyCoverage(Trial t,
java.lang.String title,
java.lang.String name)
|
Method Summary | |
---|---|
double |
accuracyAtCoverage(double cov)
accuracy at a given coverage percentage |
double[] |
accuracyValues()
|
void |
actionPerformed(java.awt.event.ActionEvent event)
|
void |
addDataToGraph(double[] accValues,
int nBuckets,
java.lang.String name)
|
void |
addTrial(Trial t,
int nBuckets,
java.lang.String name)
|
void |
addTrial(Trial t,
java.lang.String name)
|
void |
createAccuracyArray()
Creates array of accuracy values for coverage at each step as defined by numBuckets. |
double |
cumulativeAccuracy()
Finds the "area under the acc/cov curve" steps by one percentage point and calcs area of trapezoid |
void |
displayGraph()
Displays the accuracy v. |
void |
sortClassifications()
Sort classifications ArrayList by winner's value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccuracyCoverage(Trial t, int numBuckets, java.lang.String title, java.lang.String dataName)
t
- trial to get data fromnumBuckets
- number of x-axis measurements to find accuracypublic AccuracyCoverage(Trial t, java.lang.String title, java.lang.String name)
public AccuracyCoverage(Trial t, java.lang.String title)
public AccuracyCoverage(Classifier C, InstanceList ilist, java.lang.String title)
public AccuracyCoverage(Classifier C, InstanceList ilist, int numBuckets, java.lang.String title)
Method Detail |
---|
public double cumulativeAccuracy()
public void createAccuracyArray()
public double accuracyAtCoverage(double cov)
cov
- coverage percentage
public void sortClassifications()
public void addDataToGraph(double[] accValues, int nBuckets, java.lang.String name)
public void displayGraph()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void addTrial(Trial t, java.lang.String name)
public void addTrial(Trial t, int nBuckets, java.lang.String name)
public double[] accuracyValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |