SG++-Doxygen-Documentation
|
This class implements OperationTest for a grids with modified bspline basis functions with a certain degree. More...
#include <OperationTestModBspline.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) |
Computes the classification accuracy on some test data. More... | |
OperationTestModBspline (base::GridStorage *storage, size_t degree) | |
Constructor. More... | |
virtual double | test (base::DataVector &alpha, base::DataMatrix &data, base::DataVector &classes) |
Computes the classification accuracy on some test data. More... | |
virtual double | testMSE (base::DataVector &alpha, base::DataMatrix &data, base::DataVector &refValues) |
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) |
Computes the classification accuracy on some test data. More... | |
virtual | ~OperationTestModBspline () |
Destructor. More... | |
Public Member Functions inherited from sgpp::datadriven::OperationTest | |
OperationTest () | |
Constructor. More... | |
virtual | ~OperationTest () |
Destructor. More... | |
Protected Attributes | |
base::SBsplineModifiedBase | base |
Mod Bspline Basis object. More... | |
base::GridStorage * | storage |
Pointer to base::GridStorage object. More... | |
This class implements OperationTest for a grids with modified bspline basis functions with a certain degree.
|
inlineexplicit |
Constructor.
storage | the grid's base::GridStorage object |
degree | the bspline's degree |
|
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 base, storage, and sgpp::datadriven::test_calculateROCcurve().
Referenced by ~OperationTestModBspline().
|
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 base, storage, and sgpp::datadriven::test_dataset().
Referenced by ~OperationTestModBspline().
|
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 base, storage, and sgpp::datadriven::test_dataset_mse().
Referenced by ~OperationTestModBspline().
|
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 base, storage, and sgpp::datadriven::test_datasetWithCharacteristicNumber().
Referenced by ~OperationTestModBspline().
|
protected |
Mod Bspline Basis object.
Referenced by calculateROCcurve(), test(), testMSE(), and testWithCharacteristicNumber().
|
protected |
Pointer to base::GridStorage object.
Referenced by calculateROCcurve(), test(), testMSE(), and testWithCharacteristicNumber().