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... | |
Operation the tests the function that is applied the current Sparse sgpp::base::Grid at a given point.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
References alpha, calculateROCcurve(), python.statsfileInfo::data, test(), testMSE(), and testWithCharacteristicNumber().
|
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
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 |
Implemented in sgpp::datadriven::OperationTestModPoly, sgpp::datadriven::OperationTestPoly, sgpp::datadriven::OperationTestModBspline, sgpp::datadriven::OperationTestLinearStretchedBoundary, sgpp::datadriven::OperationTestLinearBoundary, sgpp::datadriven::OperationTestModLinear, sgpp::datadriven::OperationTestLinear, sgpp::datadriven::OperationTestLinearStretched, sgpp::datadriven::OperationTestModWavelet, and sgpp::datadriven::OperationTestPrewavelet.
Referenced by ~OperationTest().
|
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.
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 |
Implemented in sgpp::datadriven::OperationTestModPoly, sgpp::datadriven::OperationTestPoly, sgpp::datadriven::OperationTestModBspline, sgpp::datadriven::OperationTestLinearStretchedBoundary, sgpp::datadriven::OperationTestLinearBoundary, sgpp::datadriven::OperationTestModLinear, sgpp::datadriven::OperationTestLinear, sgpp::datadriven::OperationTestLinearStretched, sgpp::datadriven::OperationTestModWavelet, and sgpp::datadriven::OperationTestPrewavelet.
Referenced by ~OperationTest().
|
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.
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 |
Implemented in sgpp::datadriven::OperationTestModPoly, sgpp::datadriven::OperationTestPoly, sgpp::datadriven::OperationTestModBspline, sgpp::datadriven::OperationTestLinearStretchedBoundary, sgpp::datadriven::OperationTestLinearBoundary, sgpp::datadriven::OperationTestModLinear, sgpp::datadriven::OperationTestLinear, sgpp::datadriven::OperationTestLinearStretched, sgpp::datadriven::OperationTestModWavelet, and sgpp::datadriven::OperationTestPrewavelet.
Referenced by ~OperationTest().
|
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
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) |
Implemented in sgpp::datadriven::OperationTestModPoly, sgpp::datadriven::OperationTestPoly, sgpp::datadriven::OperationTestModBspline, sgpp::datadriven::OperationTestLinearStretchedBoundary, sgpp::datadriven::OperationTestLinearBoundary, sgpp::datadriven::OperationTestModLinear, sgpp::datadriven::OperationTestLinear, sgpp::datadriven::OperationTestLinearStretched, sgpp::datadriven::OperationTestModWavelet, and sgpp::datadriven::OperationTestPrewavelet.
Referenced by ~OperationTest().