![]() |
SG++-Doxygen-Documentation
|
This class implements OperationTest for a grids with linearstretched basis ansatzfunctions without boundaries. More...
#include <OperationTestLinearStretched.hpp>
Protected Attributes | |
sgpp::base::GridStorage * | storage |
Pointer to the grid's GridStorage object. | |
This class implements OperationTest for a grids with linearstretched basis ansatzfunctions without boundaries.
|
inlineexplicit |
Constructor of OperationTestLinearStretched.
storage | Pointer to the grid's gridstorage obejct |
|
inlinevirtual |
Destructor.
|
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 |
Implements sgpp::datadriven::OperationTest.
References alpha, storage, and sgpp::datadriven::test_calculateROCcurve().
|
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 |
Implements sgpp::datadriven::OperationTest.
References alpha, storage, and sgpp::datadriven::test_dataset().
|
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 |
Implements sgpp::datadriven::OperationTest.
References alpha, storage, and sgpp::datadriven::test_dataset_mse().
Referenced by python.uq.manager.ASGCStatistics.ASGCStatistics::updateResults().
|
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) |
Implements sgpp::datadriven::OperationTest.
References alpha, storage, and sgpp::datadriven::test_datasetWithCharacteristicNumber().
|
protected |
Pointer to the grid's GridStorage object.
Referenced by calculateROCcurve(), test(), testMSE(), and testWithCharacteristicNumber().