Public Member Functions

CMeanSquaredError Class Reference


Detailed Description

the class MeanSquaredError used to compute error of regression model.

Formally, for labels $ L,R, |L|=|R|$ mean squared error is estimated as

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

Definition at line 32 of file MeanSquaredError.h.

Inheritance diagram for CMeanSquaredError:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CMeanSquaredError ()
virtual ~CMeanSquaredError ()
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 MeanSquaredError.h.

virtual ~CMeanSquaredError (  )  [virtual]

destructor

Definition at line 39 of file MeanSquaredError.h.


Member Function Documentation

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

evaluate mean squared error

Parameters:
predicted labels for evaluating
ground_truth labels assumed to be correct
Returns:
mean squared error

Implements CEvaluation.

Definition at line 17 of file MeanSquaredError.cpp.

EEvaluationDirection get_evaluation_direction (  )  [virtual]
Returns:
whether criterium has to be maximised or minimised

Implements CEvaluation.

Definition at line 48 of file MeanSquaredError.h.

virtual const char* get_name ( void   )  const [virtual]

get name

Implements CSGObject.

Definition at line 54 of file MeanSquaredError.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