CVB++ 14.0
PredictionResult Class Reference

The information contained in each cell of the confusion matrix. More...

#include <cvb/foundation/confusion_matrix.hpp>

Public Member Functions

int ExampleIndex () const noexcept
 The index of the example (with refers to the index in the sample image list from which the test result from which the ConfusionMatrix derives was generated). More...
 
double Confidence () const noexcept
 Confidence value of the (best) classification result. More...
 
std::vector< double > ConfidenceDistribution () const
 Distribution of confidences among the other known classes. More...
 

Detailed Description

The information contained in each cell of the confusion matrix.

Member Function Documentation

◆ Confidence()

double Confidence ( ) const
inlinenoexcept

Confidence value of the (best) classification result.

Returns
Confidence value.
Exceptions
Doesnot throw any exception.

◆ ConfidenceDistribution()

std::vector< double > ConfidenceDistribution ( ) const
inline

Distribution of confidences among the other known classes.

Returns
Confidence distribution.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ ExampleIndex()

int ExampleIndex ( ) const
inlinenoexcept

The index of the example (with refers to the index in the sample image list from which the test result from which the ConfusionMatrix derives was generated).

Returns
Example index.
Exceptions
Doesnot throw any exception.