curfil  ..
 All Classes Functions Variables Typedefs Friends Groups Pages
Public Member Functions | List of all members
curfil::Result Class Reference

Class that stores the results of a hyperopt run. More...

#include <hyperopt.h>

Public Member Functions

 Result (const ConfusionMatrix &confusionMatrix, double pixelAccuracy, double pixelAccuracyWithoutVoid, const LossFunctionType lossFunctionType)
 create an instance of prediction result, including the confusion matrix and the different losses
mongo::BSONObj toBSON () const
const ConfusionMatrixgetConfusionMatrix () const
void setLossFunctionType (const LossFunctionType &lossFunctionType)
 set the loss type, can be pixel or class accuracy, with or without void
double getLoss () const
double getClassAccuracy () const
double getClassAccuracyWithoutVoid () const
double getPixelAccuracy () const
double getPixelAccuracyWithoutVoid () const
void setRandomSeed (int randomSeed)
 save the random seed thatt was used in training
int getRandomSeed () const

Detailed Description

Class that stores the results of a hyperopt run.

Definition at line 29 of file hyperopt.h.

Member Function Documentation

double curfil::Result::getClassAccuracy ( ) const
inline
Returns
the average class accuracy including void

Definition at line 78 of file hyperopt.h.

double curfil::Result::getClassAccuracyWithoutVoid ( ) const
inline
Returns
the average class accuracy excluding void and ignored colors

Definition at line 85 of file hyperopt.h.

const ConfusionMatrix& curfil::Result::getConfusionMatrix ( ) const
inline
Returns
the computed confusion matrix

Definition at line 59 of file hyperopt.h.

double curfil::Result::getLoss ( ) const
Returns
loss value (1 - accuracy), the value depends on the loss function type
double curfil::Result::getPixelAccuracy ( ) const
inline
Returns
the overall pixel accuracy including void

Definition at line 92 of file hyperopt.h.

double curfil::Result::getPixelAccuracyWithoutVoid ( ) const
inline
Returns
the overall pixel accuracy excluding void and ignored colors

Definition at line 99 of file hyperopt.h.

int curfil::Result::getRandomSeed ( ) const
inline
Returns
the random seed stored

Definition at line 113 of file hyperopt.h.

mongo::BSONObj curfil::Result::toBSON ( ) const
Returns
the BSON representation of the Result object

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