iRoCS Toolbox  1.1.0
Public Member Functions
svt::ClassificationStatistics Class Reference

#include <ClassificationStatistics.hh>

Collaboration diagram for svt::ClassificationStatistics:

Public Member Functions

void calcStatistics (const std::vector< double > &trueLabels, const std::vector< double > &predictedLabels, std::vector< SingleClassResult > &resultTable)
 calculate per class statistics (truePositives and falsePositives) for given classifcation results More...
 
void prettyPrintConfusionTable (const std::vector< double > &trueLabels, const std::vector< double > &predictedLabels, std::ostream &os)
 
void prettyPrintStatistics (const std::vector< SingleClassResult > &resultTable, std::ostream &os)
 

Detailed Description

Definition at line 74 of file ClassificationStatistics.hh.

Member Function Documentation

◆ calcStatistics()

void svt::ClassificationStatistics::calcStatistics ( const std::vector< double > &  trueLabels,
const std::vector< double > &  predictedLabels,
std::vector< SingleClassResult > &  resultTable 
)

calculate per class statistics (truePositives and falsePositives) for given classifcation results

Parameters
trueLabelstrue labels
predictedLabelspredicted labels
resultTableper class results. vector will be resized properly

◆ prettyPrintStatistics()

void svt::ClassificationStatistics::prettyPrintStatistics ( const std::vector< SingleClassResult > &  resultTable,
std::ostream &  os 
)

◆ prettyPrintConfusionTable()

void svt::ClassificationStatistics::prettyPrintConfusionTable ( const std::vector< double > &  trueLabels,
const std::vector< double > &  predictedLabels,
std::ostream &  os 
)

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