![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
Performance is the class that evaluates prediction performance.
#include <perf.h>
Public Member Functions | |
virtual GurlsOptionsList * | execute (const gMat2D< T > &X, const gMat2D< T > &Y, const GurlsOptionsList &opt)=0 |
Evaluates prediction performance. | |
Static Public Member Functions | |
static Performance< T > * | factory (const std::string &id) throw (BadPerformanceCreation) |
Factory function returning a pointer to the newly created object. |
virtual GurlsOptionsList* gurls::Performance< T >::execute | ( | const gMat2D< T > & | X, |
const gMat2D< T > & | Y, | ||
const GurlsOptionsList & | opt | ||
) | [pure virtual] |
X | input data matrix |
Y | labels matrix |
opt | options with the different required fields based on the sub-class |
Implemented in gurls::PerfMacroAvg< T >, gurls::PerfRmse< T >, and gurls::PerfPrecRec< T >.
static Performance<T>* gurls::Performance< T >::factory | ( | const std::string & | id | ) | throw (BadPerformanceCreation) [inline, static] |
Definition at line 111 of file perf.h.
{ if(id == "precrec") return new PerfPrecRec<T>; if(id == "macroavg") return new PerfMacroAvg<T>; if(id == "rmse") return new PerfRmse<T>; throw BadPerformanceCreation(id); }