SG++-Doxygen-Documentation

Operation the tests the function that is applied the current Sparse sgpp::base::Grid at a given point. More...

#include <OperationTest.hpp>

## Public Member Functions

virtual void calculateROCcurve (sgpp::base::DataVector &alpha, sgpp::base::DataMatrix &data, sgpp::base::DataVector &classes, sgpp::base::DataVector &thresholds, sgpp::base::DataMatrix &ROC_curve)=0
Computes the classification accuracy on some test data. More...

OperationTest ()
Constructor. More...

virtual double test (sgpp::base::DataVector &alpha, sgpp::base::DataMatrix &data, sgpp::base::DataVector &classes)=0
Computes the classification accuracy on some test data. More...

virtual double testMSE (sgpp::base::DataVector &alpha, sgpp::base::DataMatrix &data, sgpp::base::DataVector &refValues)=0
Computes the regression accuracy on some test data. More...

virtual double testWithCharacteristicNumber (sgpp::base::DataVector &alpha, sgpp::base::DataMatrix &data, sgpp::base::DataVector &classes, sgpp::base::DataVector &charaNumbers)=0
Computes the classification accuracy on some test data. More...

virtual ~OperationTest ()
Destructor. More...

## Detailed Description

Operation the tests the function that is applied the current Sparse sgpp::base::Grid at a given point.

inline

Constructor.

inlinevirtual

Destructor.

## Member Function Documentation

 virtual void sgpp::datadriven::OperationTest::calculateROCcurve ( sgpp::base::DataVector & alpha, sgpp::base::DataMatrix & data, sgpp::base::DataVector & classes, sgpp::base::DataVector & thresholds, sgpp::base::DataMatrix & ROC_curve )
pure virtual

Computes the classification accuracy on some test data.

The function is evaluated at the given points. Tests on the classes {+1, -1}, cut-off variable at threshold

Also the number of the TP TN FP FN are determined

Parameters
 alpha the coefficients of the sparse grid's base functions data the coordinates of the evaluation points classes sgpp::base::DataVector the holds the class information thresholds the thresholds (between -1.0 and 1.0) for calculating the ROC curve ROC_curve DataMatrix into which the ROC curve is stored

Referenced by ~OperationTest().

 virtual double sgpp::datadriven::OperationTest::test ( sgpp::base::DataVector & alpha, sgpp::base::DataMatrix & data, sgpp::base::DataVector & classes )
pure virtual

Computes the classification accuracy on some test data.

The function is evaluated at the given points. Tests on the classes {+1, -1}, cut-off at 0.

Parameters
 alpha the coefficients of the sparse grid's base functions data the coordinates of the evaluation points classes sgpp::base::DataVector holding the class information

Referenced by ~OperationTest().

 virtual double sgpp::datadriven::OperationTest::testMSE ( sgpp::base::DataVector & alpha, sgpp::base::DataMatrix & data, sgpp::base::DataVector & refValues )
pure virtual

Computes the regression accuracy on some test data.

The function is evaluated at the given points. Calculates the MSE between between the given values and the values evaluated on the sparse grid.

Parameters
 alpha the coefficients of the sparse grid's base functions data the coordinates of the evaluation points refValues sgpp::base::DataVector holding the reference function values

Referenced by ~OperationTest().

 virtual double sgpp::datadriven::OperationTest::testWithCharacteristicNumber ( sgpp::base::DataVector & alpha, sgpp::base::DataMatrix & data, sgpp::base::DataVector & classes, sgpp::base::DataVector & charaNumbers )
pure virtual

Computes the classification accuracy on some test data.

The function is evaluated at the given points. Tests on the classes {+1, -1}, cut-off at 0.

Also the number of the TP TN FP FN are determined

Parameters
 alpha the coefficients of the sparse grid's base functions data the coordinates of the evaluation points classes sgpp::base::DataVector the holds the class information charaNumbers the number of true positives, true negatives, false positives, false negatives (Vector of length 4)

Referenced by ~OperationTest().

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