GestureRecognitionToolkit  Version: 0.2.5
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
Metrics Class Reference

Public Member Functions

 Metrics ()
 
 ~Metrics ()
 

Static Public Member Functions

static bool computeAccuracy (Classifier &model, const ClassificationData &data, Float &accuracy)
 

Detailed Description

Definition at line 19 of file Metrics.h.

Constructor & Destructor Documentation

GRT_BEGIN_NAMESPACE Metrics::Metrics ( )

Default constructor.

Definition at line 28 of file Metrics.cpp.

Metrics::~Metrics ( )

Default destructor.

Definition at line 30 of file Metrics.cpp.

Member Function Documentation

bool Metrics::computeAccuracy ( Classifier model,
const ClassificationData data,
Float &  accuracy 
)
static

Computes the accuracy of the model given the input dataset. The accuracy results will be stored in the accuracy parameter and will be in the range of [0., 100.0].

Parameters
modelthe trained model you want to test the accuracy using the input dataset
datathe dataset that will be used to test the model
accuracythe variable to which the accuracy of the model will be stored
Returns
returns true if the accuracy was computed, false otherwise

Definition at line 32 of file Metrics.cpp.


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