|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ReceiverOperatingCharacteristics is
a common interface to retrieve the result of
receiver operating characteristic computation.
Originally used in signal detection theory to gauge the true hit versus false alarm ratio when sending signals over a noisy channel, the receiver operating characteristics (ROC) of a classifier measures its performance as a trade-off between selectivity and sensitivity. Like lift charts, ROC curves provide a means to compare individual models and determine threshold that result in a high ratio of positive hits.
Typically, an ROC is a curve of false alarm rate (false positives, on X-axis) versus hit rate (true positives, on Y-axis) is plotted with a varying sensitivity or threshold parameter. The curve connects two points (0,0) and (1,1). The point (0,0) is where the classifier always gets the negatives cases right but all positive cases wrong. The point (1,1) is where the classifier gets all positive cases right but all negative cases wrong.
The elements of ROC are the following:
| Method Summary | |
double |
getAreaUnderCurve()
Returns the area under the ROC curve. |
double |
getFalseAlarmRate(int index)
Returns the false alarm rate of the area represented by the specified index. |
double |
getHitRate(int index)
Returns the hit rate of the area represented by the specified index. |
long |
getNegatives(int index,
boolean trueFalse)
Returns true/false negatives of the area represented by the specified index. |
int |
getNumberOfThresholdCandidates()
Returns the number of threshold candidates. |
long |
getPositives(int index,
boolean trueFalse)
Returns true/false positives of the area represented by the specified index. |
double |
getProbabilityThreshold(int index)
Returns the probability threshold of the area represented by the specified index. |
| Method Detail |
public double getAreaUnderCurve()
public double getFalseAlarmRate(int index)
throws JDMException
index -
JDMException
public double getHitRate(int index)
throws JDMException
index -
JDMException
public long getNegatives(int index,
boolean trueFalse)
throws JDMException
index - trueFalse -
JDMExceptionpublic int getNumberOfThresholdCandidates()
public long getPositives(int index,
boolean trueFalse)
throws JDMException
index - trueFalse -
JDMException
public double getProbabilityThreshold(int index)
throws JDMException
index -
JDMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||