SG++-Doxygen-Documentation
|
This class implements OperationTest for a grids with linear basis ansatzfunctions with boundaries. More...
#include <OperationTestLinearStretchedBoundary.hpp>
Protected Attributes | |
base::GridStorage * | storage |
Pointer to base::GridStorage object. More... | |
This class implements OperationTest for a grids with linear basis ansatzfunctions with boundaries.
|
inlineexplicit |
Constructor.
storage | the grid's base::GridStorage object |
|
inlinevirtual |
Destructor.
References alpha, calculateROCcurve(), python.statsfileInfo::data, test(), testMSE(), and testWithCharacteristicNumber().
|
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 storage, and sgpp::datadriven::test_calculateROCcurve().
Referenced by ~OperationTestLinearStretchedBoundary().
|
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 storage, and sgpp::datadriven::test_dataset().
Referenced by ~OperationTestLinearStretchedBoundary().
|
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 storage, and sgpp::datadriven::test_dataset_mse().
Referenced by ~OperationTestLinearStretchedBoundary().
|
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 storage, and sgpp::datadriven::test_datasetWithCharacteristicNumber().
Referenced by ~OperationTestLinearStretchedBoundary().
|
protected |
Pointer to base::GridStorage object.
Referenced by calculateROCcurve(), test(), testMSE(), and testWithCharacteristicNumber().