28 #ifndef _CONFUSIONMATRIXHH_
29 #define _CONFUSIONMATRIXHH_
40 #define CONF_MATRIX_DEFAULT_THRESHOLD 0.5
92 void setLowestTrainingThreshold(
const Model& model,
const SamplerPtr& sampler);
121 int getValue(
Scalar predictionValue,
Scalar actualValue)
const;
128 double getAccuracy()
const;
136 double getOmissionError()
const;
144 double getCommissionError()
const;
154 bool ready()
const {
return _ready; }
174 int _confMatrix[2][2];
ReferenceCountedPointer< OccurrencesImpl > OccurrencesPtr
double Scalar
Type of map values.
Scalar _predictionThreshold
double getThreshold() const
#define CONF_MATRIX_DEFAULT_THRESHOLD