SG++-Doxygen-Documentation
|
Class that implements the virtual class OperationMatrix for the application of classification for the Systemmatrix with weight. More...
#include <DMWeightMatrix.hpp>
Public Member Functions | |
DMWeightMatrix (sgpp::base::Grid &SparseGrid, sgpp::base::DataMatrix &trainData, sgpp::base::OperationMatrix &C, double lambda, sgpp::base::DataVector &w) | |
Std-Constructor. More... | |
void | generateb (sgpp::base::DataVector &classes, sgpp::base::DataVector &b) |
Generates the right hand side of the classification equation. More... | |
virtual void | mult (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result) |
starts the Multiplication with the matrix More... | |
virtual | ~DMWeightMatrix () |
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 with weight.
sgpp::datadriven::DMWeightMatrix::DMWeightMatrix | ( | sgpp::base::Grid & | SparseGrid, |
sgpp::base::DataMatrix & | trainData, | ||
sgpp::base::OperationMatrix & | C, | ||
double | lambda, | ||
sgpp::base::DataVector & | w | ||
) |
Std-Constructor.
SparseGrid | reference to the sparse grid |
trainData | reference to sgpp::base::DataVector that contains the training data |
C | the regression functional |
lambda | the lambda, the regression parameter |
w | the weights to the training data |
References sgpp::op_factory::createOperationMultipleEval(), and lambda.
|
virtual |
Std-Destructor.
void sgpp::datadriven::DMWeightMatrix::generateb | ( | sgpp::base::DataVector & | classes, |
sgpp::base::DataVector & | b | ||
) |
Generates the right hand side of the classification equation.
classes | the class information of the training data |
b | reference to the vector that will contain the result of the matrix vector multiplication on the rhs |
References sgpp::base::DataVector::componentwise_mult(), and sgpp::base::OperationMultipleEval::multTranspose().
Referenced by sgpp::datadriven::AlgorithmAdaBoostIdentity::alphaSolver().
|
virtual |
starts the Multiplication with the matrix
alpha | DataVector that contains the ansatzfunctions' coefficients |
result | DataVector into which the result of the Laplace operation is stored |
Implements sgpp::base::OperationMatrix.
References sgpp::base::DataVector::axpy(), sgpp::base::DataVector::getSize(), sgpp::base::OperationMatrix::mult(), sgpp::base::OperationMultipleEval::mult(), and sgpp::base::OperationMultipleEval::multTranspose().