yat
0.14.5pre
|
#include <yat/statistics/AUC.h>
Public Member Functions | |
AUC (bool absolute=true) | |
Default Constructor. More... | |
double | score (const classifier::Target &target, const utility::VectorBase &value) const |
double | score (const classifier::Target &target, const classifier::DataLookupWeighted1D &value) const |
double | score (const classifier::Target &target, const utility::VectorBase &value, const utility::VectorBase &weight) const |
void | absolute (bool absolute) |
Function changing mode of Score. | |
virtual double | score (const classifier::Target &target, const classifier::DataLookup1D &value) const |
double | score (const classifier::Target &target, const classifier::DataLookup1D &value, const classifier::DataLookup1D &weight) const |
Protected Attributes | |
bool | absolute_ |
Friends | |
class | ROC |
Area Under ROC Curve.
Class calculates area under curve from values, Target, and possibly weights. If weights are left out, unity weights are assumed. The area under curve is defined as
where
Complexity of calculating the AUC is .
theplu::yat::statistics::AUC::AUC | ( | bool | absolute = true | ) |
Default Constructor.
absolute | if true max(AUC, 1-AUC) is used |
|
virtual |
Implements theplu::yat::statistics::Score.
|
virtual |
Reimplemented from theplu::yat::statistics::Score.
|
virtualinherited |
Function calculating the score. In absolute mode, also the score using negated class labels is calculated, and the largest of the two scores are calculated.
value is copied to a utility::vector and that operator is called. If speed is important this operator should be implemented in inherited class to avoid copying.
|
virtual |
Implements theplu::yat::statistics::Score.
|
inherited |
Function calculating the weighted version of score. In absolute mode, also the score using negated class labels is calculated, and the largest of the two scores are calculated. Absolute mode should be used when two-tailed test is wanted.
value and weight are copied to utility::vector and the corresponding operator is called. If speed is important this operator should be implemented in inherited class to avoid copying.
|
protectedinherited |
true if method is absolute, which means if score is below expected value (by chance) E, score returns E-score+E instead.