Machine learning algorithms in C++
Static Public Member Functions | Static Private Member Functions
ClassifierUtils Class Reference

#include <ClassifierUtils.hpp>

Collaboration diagram for ClassifierUtils:

Static Public Member Functions

static void checkLabels (const MatrixD yTrue, const MatrixD yPred)
 
static void checkBinaryLabels (const MatrixD yTrue, const MatrixD yPred)
 
static MatrixI binarize (MatrixD m, double trueLabel)
 
static MatrixI confusionMatrix (MatrixD yTrue, MatrixD yPred)
 
static double accuracy (MatrixD yTrue, MatrixD yPred)
 
static double precision (MatrixD yTrue, MatrixD yPred)
 
static double recall (MatrixD yTrue, MatrixD yPred)
 
static double f_score (MatrixD yTrue, MatrixD yPred)
 

Static Private Member Functions

static size_t findLabel (MatrixD y, double label)
 
static MatrixD getAllClasses (const MatrixD yTrue, const MatrixD yPred)
 

Detailed Description

Author
Douglas De Rizzo Meneghetti (dougl.nosp@m.asri.nosp@m.zzom@.nosp@m.gmai.nosp@m.l.com)
Date
2017-11-23

Definition at line 10 of file ClassifierUtils.hpp.

Member Function Documentation

◆ accuracy()

static double ClassifierUtils::accuracy ( MatrixD  yTrue,
MatrixD  yPred 
)
inlinestatic

Definition at line 65 of file ClassifierUtils.hpp.

Here is the call graph for this function:

◆ binarize()

static MatrixI ClassifierUtils::binarize ( MatrixD  m,
double  trueLabel 
)
inlinestatic

Definition at line 44 of file ClassifierUtils.hpp.

◆ checkBinaryLabels()

static void ClassifierUtils::checkBinaryLabels ( const MatrixD  yTrue,
const MatrixD  yPred 
)
inlinestatic

Definition at line 36 of file ClassifierUtils.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkLabels()

static void ClassifierUtils::checkLabels ( const MatrixD  yTrue,
const MatrixD  yPred 
)
inlinestatic

Definition at line 29 of file ClassifierUtils.hpp.

Here is the caller graph for this function:

◆ confusionMatrix()

static MatrixI ClassifierUtils::confusionMatrix ( MatrixD  yTrue,
MatrixD  yPred 
)
inlinestatic

Definition at line 48 of file ClassifierUtils.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_score()

static double ClassifierUtils::f_score ( MatrixD  yTrue,
MatrixD  yPred 
)
inlinestatic

Definition at line 86 of file ClassifierUtils.hpp.

Here is the call graph for this function:

◆ findLabel()

static size_t ClassifierUtils::findLabel ( MatrixD  y,
double  label 
)
inlinestaticprivate

Definition at line 12 of file ClassifierUtils.hpp.

Here is the caller graph for this function:

◆ getAllClasses()

static MatrixD ClassifierUtils::getAllClasses ( const MatrixD  yTrue,
const MatrixD  yPred 
)
inlinestaticprivate

Definition at line 20 of file ClassifierUtils.hpp.

Here is the caller graph for this function:

◆ precision()

static double ClassifierUtils::precision ( MatrixD  yTrue,
MatrixD  yPred 
)
inlinestatic

Definition at line 74 of file ClassifierUtils.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ recall()

static double ClassifierUtils::recall ( MatrixD  yTrue,
MatrixD  yPred 
)
inlinestatic

Definition at line 80 of file ClassifierUtils.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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