![]() |
OpenMS
|
ROCCurves show the trade-off in sensitivity and specificity for binary classifiers using different cutoff values. More...
#include <OpenMS/ML/ROCCURVE/ROCCurve.h>
Classes | |
| class | simsortdec |
| predicate for sort() More... | |
Public Member Functions | |
| ROCCurve () | |
| default constructor More... | |
| ROCCurve (const std::vector< std::pair< double, bool >> &pairs) | |
| constructor with value, class pairs More... | |
| virtual | ~ROCCurve ()=default |
| destructor More... | |
| ROCCurve (const ROCCurve &source) | |
| copy constructor More... | |
| ROCCurve & | operator= (const ROCCurve &source) |
| assignment operator More... | |
| void | insertPair (double score, bool clas) |
| insert score, type pair More... | |
| double | AUC () |
| returns Area Under Curve More... | |
| double | rocN (Size N) |
| returns ROC-N score (e.g. ROC-50). Returns -1 if not enough false positives were found More... | |
| std::vector< std::pair< double, double > > | curve (UInt resolution=10) |
| some points in the ROC Curve More... | |
| double | cutoffPos (double fraction=0.95) |
| double | cutoffNeg (double fraction=0.95) |
Private Member Functions | |
| void | sort () |
| sorts data and caches if sorted More... | |
| void | count () |
| counts global pos and neg More... | |
| double | trapezoidal_area (double x1, double x2, double y1, double y2) |
Private Attributes | |
| std::vector< std::pair< double, bool > > | score_clas_pairs_ |
| UInt | pos_ {} |
| UInt | neg_ {} |
| bool | sorted_ {} |
ROCCurves show the trade-off in sensitivity and specificity for binary classifiers using different cutoff values.
[This class is buggy and usage is discouraged!]
| ROCCurve | ( | ) |
default constructor
|
explicit |
constructor with value, class pairs
|
virtualdefault |
destructor
| double AUC | ( | ) |
returns Area Under Curve
|
inlineprivate |
counts global pos and neg
| std::vector<std::pair<double, double> > curve | ( | UInt | resolution = 10 | ) |
some points in the ROC Curve
| double cutoffNeg | ( | double | fraction = 0.95 | ) |
returns the score at which you would need to set a cutoff to have fraction positives returns -1 if there are not enough positives
| double cutoffPos | ( | double | fraction = 0.95 | ) |
returns the score at which you would need to set a cutoff to have fraction positives returns -1 if there are not enough positives
| void insertPair | ( | double | score, |
| bool | clas | ||
| ) |
insert score, type pair
| double rocN | ( | Size | N | ) |
returns ROC-N score (e.g. ROC-50). Returns -1 if not enough false positives were found
|
inlineprivate |
sorts data and caches if sorted
|
inlineprivate |
calculates area with trapezoidal rule
| x1,x2,y1,y2 |
|
private |
|
private |
|
private |
|
private |