SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
CMeanAbsoluteError Class Reference

Detailed Description

Class MeanAbsoluteError used to compute an error of regression model.

Formally, for real labels $ L,R, |L|=|R|$ mean absolute error (MAE) is estimated as

\[ \frac{1}{|L|} \sum_{i=1}^{|L|} |L_i - R_i| \]

Definition at line 32 of file MeanAbsoluteError.h.

Inheritance diagram for CMeanAbsoluteError:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CMeanAbsoluteError ()
virtual ~CMeanAbsoluteError ()
virtual float64_t evaluate (CLabels *predicted, CLabels *ground_truth)
EEvaluationDirection get_evaluation_direction ()
virtual const char * get_name () const

Constructor & Destructor Documentation

constructor

Definition at line 36 of file MeanAbsoluteError.h.

virtual ~CMeanAbsoluteError ( ) [virtual]

destructor

Definition at line 39 of file MeanAbsoluteError.h.


Member Function Documentation

float64_t evaluate ( CLabels predicted,
CLabels ground_truth 
) [virtual]

evaluate mean absolute error

Parameters:
predictedlabels for evaluating
ground_truthlabels assumed to be correct
Returns:
mean absolute error

Implements CEvaluation.

Definition at line 16 of file MeanAbsoluteError.cpp.

Returns:
whether criterium has to be maximized or minimized

Implements CEvaluation.

Definition at line 48 of file MeanAbsoluteError.h.

virtual const char* get_name ( ) const [virtual]

get name

Implements CSGObject.

Definition at line 54 of file MeanAbsoluteError.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation