ClassificationError Class Reference

The ClassificationError class returns the number of classification errors. More...

#include <ClassificationError.h>

Inheritance diagram for ClassificationError:
ErrorFunction

List of all members.

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

Detailed Description

The ClassificationError class returns the number of classification errors.

This measure is not differentiable.

Definition at line 76 of file ClassificationError.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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().


The documentation for this class was generated from the following files: