![]() |
SG++-Doxygen-Documentation
|
Class that implements the virtual class OperationMatrix for the application of classification for the Systemmatrix by using a density function. More...
#include <DensitySystemMatrix.hpp>
Public Member Functions | |
| DensitySystemMatrix (sgpp::base::OperationMatrix *A, sgpp::base::OperationMultipleEval *B, sgpp::base::OperationMatrix *C, double lambda, size_t numSamples) | |
| Std-Constructor. More... | |
| DensitySystemMatrix (base::Grid &grid, base::DataMatrix &trainData, base::OperationMatrix *C, double lambda) | |
| Std-Constructor. More... | |
| void | generateb (base::DataVector &b) |
| Generates the right hand side of the classification equation. More... | |
| void | mult (base::DataVector &alpha, base::DataVector &result) |
| Generates the left hand side of the classification equation. More... | |
| virtual | ~DensitySystemMatrix () |
| Std-Destructor. More... | |
Public Member Functions inherited from sgpp::base::OperationMatrix | |
| OperationMatrix () | |
| Constructor. More... | |
| virtual | ~OperationMatrix () |
| Destructor. More... | |
Class that implements the virtual class OperationMatrix for the application of classification for the Systemmatrix by using a density function.
| sgpp::datadriven::DensitySystemMatrix::DensitySystemMatrix | ( | sgpp::base::OperationMatrix * | A, |
| sgpp::base::OperationMultipleEval * | B, | ||
| sgpp::base::OperationMatrix * | C, | ||
| double | lambda, | ||
| size_t | numSamples | ||
| ) |
Std-Constructor.
| A | L^2 dot product matrix of some grid |
| B | MultipleEval matrix of grid and data points |
| C | the regression functional |
| lambda | the regression parameter |
| numSamples | number of data samples |
| sgpp::datadriven::DensitySystemMatrix::DensitySystemMatrix | ( | base::Grid & | grid, |
| base::DataMatrix & | trainData, | ||
| base::OperationMatrix * | C, | ||
| double | lambda | ||
| ) |
Std-Constructor.
| grid | reference to the sparse grid |
| trainData | reference to DataVector that contains the training data |
| C | the regression functional |
| lambda | the regression parameter |
References sgpp::op_factory::createOperationLTwoDotProduct(), and sgpp::op_factory::createOperationMultipleEval().
|
virtual |
Std-Destructor.
| void sgpp::datadriven::DensitySystemMatrix::generateb | ( | base::DataVector & | b | ) |
Generates the right hand side of the classification equation.
| b | reference to the vector which will contain the result of the matrix vector multiplication on the rhs |
References sgpp::base::DataVector::mult(), and sgpp::base::DataVector::setAll().
Referenced by sgpp::datadriven::LearnerSGDE::train(), and sgpp::datadriven::LearnerSGDE::trainOnline().
|
virtual |
Generates the left hand side of the classification equation.
| alpha | parameters for the sparse grid functions |
| result | reference to the vector which will contain the result |
Implements sgpp::base::OperationMatrix.
References sgpp::base::DataVector::axpy(), sgpp::base::DataVector::getSize(), sgpp::base::DataVector::setAll(), and analyse_erg::tmp.