The ClassificationError class returns the number of classification errors. More...
#include <ClassificationError.h>
Public Member Functions | |
| ClassificationError (double threshold=0.0) | |
| Constructor. | |
| ~ClassificationError () | |
| Destructor. | |
| double | error (Model &model, const Array< double > &input, const Array< double > &target) |
| Computation of the fraction of wrongly classified examples. | |
| double | falsePositiveRate () |
| return the false positive rate of the last error evaluation | |
| double | falseNegativeRate () |
| return the false negative rate of the last error evaluation | |
Protected Attributes | |
| double | threshold |
| double | fpr |
| double | fnr |
The ClassificationError class returns the number of classification errors.
This measure is not differentiable.
Definition at line 76 of file ClassificationError.h.
| ClassificationError::ClassificationError | ( | double | threshold = 0.0 |
) |
Constructor.
Definition at line 71 of file ClassificationError.cpp.
| ClassificationError::~ClassificationError | ( | ) |
Destructor.
Definition at line 76 of file ClassificationError.cpp.
| double ClassificationError::error | ( | Model & | model, | |
| const Array< double > & | input, | |||
| const Array< double > & | target | |||
| ) | [virtual] |
Computation of the fraction of wrongly classified examples.
Implements ErrorFunction.
Definition at line 81 of file ClassificationError.cpp.
References fnr, fpr, i, Model::model(), and threshold.
| double ClassificationError::falseNegativeRate | ( | ) | [inline] |
return the false negative rate of the last error evaluation
Definition at line 98 of file ClassificationError.h.
References fnr.
| double ClassificationError::falsePositiveRate | ( | ) | [inline] |
return the false positive rate of the last error evaluation
Definition at line 91 of file ClassificationError.h.
References fpr.
double ClassificationError::fnr [protected] |
Definition at line 106 of file ClassificationError.h.
Referenced by error(), and falseNegativeRate().
double ClassificationError::fpr [protected] |
Definition at line 105 of file ClassificationError.h.
Referenced by error(), and falsePositiveRate().
double ClassificationError::threshold [protected] |
Definition at line 104 of file ClassificationError.h.
Referenced by error().