![]() |
SG++-Doxygen-Documentation
|
Class for objects that can be used in the online step of the classification (The classification is divided into two parts: the offline step that does not depend on the actual data and the online step that depends on the data) More...
#include <DBMatOnline.hpp>
Public Member Functions | |
DBMatOnline (const DBMatOnline &rhs)=delete | |
DBMatOnline (DBMatOffline &o) | |
Constructor. | |
DBMatOnline (DBMatOnline &&rhs)=default | |
DBMatOffline & | getOfflineObject () |
Returns a reference to the offline object. | |
const DBMatOffline & | getOfflineObject () const |
DBMatOnline & | operator= (const DBMatOnline &rhs)=delete |
DBMatOnline & | operator= (DBMatOnline &&rhs)=delete |
void | setLambda (double lambda) |
virtual std::vector< size_t > | updateSystemMatrixDecomposition (DensityEstimationConfiguration &densityEstimationConfig, Grid &grid, size_t numAddedGridPoints, std::vector< size_t > &deletedGridPointIndices, double lambda) |
Update the system matrix decomposition after the grid has been modified. | |
virtual | ~DBMatOnline ()=default |
Destructor. | |
Protected Attributes | |
DBMatOffline & | offlineObject |
Class for objects that can be used in the online step of the classification (The classification is divided into two parts: the offline step that does not depend on the actual data and the online step that depends on the data)
|
explicit |
Constructor.
o | a offline object |
|
delete |
|
default |
|
virtualdefault |
Destructor.
DBMatOffline & sgpp::datadriven::DBMatOnline::getOfflineObject | ( | ) |
Returns a reference to the offline object.
References getOfflineObject().
Referenced by sgpp::datadriven::LearnerSGDEOnOffParallel::computeNewSystemMatrixDecomposition(), getOfflineObject(), updateSystemMatrixDecomposition(), and sgpp::datadriven::DBMatOnlineDEChol::updateSystemMatrixDecomposition().
const DBMatOffline & sgpp::datadriven::DBMatOnline::getOfflineObject | ( | ) | const |
References offlineObject.
|
delete |
|
delete |
void sgpp::datadriven::DBMatOnline::setLambda | ( | double | lambda | ) |
switch (offlineObject.getDensityEstimationConfig().decomposition_) { case MatrixDecompositionType::Eigen: case MatrixDecompositionType::Chol: case MatrixDecompositionType::DenseIchol: case MatrixDecompositionType::OrthoAdapt: offlineObject.getRegularizationConfig().lambda_ = lambda; break; case MatrixDecompositionType::LU: default: throw application_exception( "Lambda can not be changed in the online step for this decomposition " "type!"); }
|
virtual |
Update the system matrix decomposition after the grid has been modified.
densityEstimationConfig | configuration of the density estimation |
grid | the underlying grid |
numAddedGridPoints | Number of grid points inserted at the end of the grid storage |
deletedGridPointIndices | Indices of grid points that were deleted |
lambda | The last best lambda value |
Reimplemented in sgpp::datadriven::DBMatOnlineDE_SMW, sgpp::datadriven::DBMatOnlineDEChol, and sgpp::datadriven::DBMatOnlineDEOrthoAdapt.
References getOfflineObject().
Referenced by sgpp::datadriven::LearnerSGDEOnOffParallel::computeNewSystemMatrixDecomposition().
|
protected |
Referenced by sgpp::datadriven::DBMatOnlineDEChol::buildCholSolver(), sgpp::datadriven::DBMatOnlineDE::computeDensityDifferenceFunction(), sgpp::datadriven::DBMatOnlineDE::computeDensityFunction(), sgpp::datadriven::DBMatOnlineDE::computeDensityFunctionParallel(), sgpp::datadriven::DBMatOnlineDE::computeWeightedBFromBatch(), sgpp::datadriven::DBMatOnlineDE::computeWeightedBFromBatchParallel(), sgpp::datadriven::DBMatOnlineDE::computeWeightedBFromBatchTwoDatasets(), sgpp::datadriven::DBMatOnlineDE::eval(), sgpp::datadriven::DBMatOnlineDE::evalParallel(), getOfflineObject(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), sgpp::datadriven::DBMatOnlineDE_SMW::smw_adapt(), sgpp::datadriven::DBMatOnlineDE_SMW::smw_adapt_parallel(), sgpp::datadriven::DBMatOnlineDE_SMW::solveSLE(), sgpp::datadriven::DBMatOnlineDEChol::solveSLE(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::solveSLE(), sgpp::datadriven::DBMatOnlineDE_SMW::solveSLEParallel(), sgpp::datadriven::DBMatOnlineDEChol::solveSLEParallel(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::solveSLEParallel(), sgpp::datadriven::DBMatOnlineDE::syncDistributedDecomposition(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::syncDistributedDecomposition(), sgpp::datadriven::DBMatOnlineDE_SMW::updateSystemMatrixDecomposition(), sgpp::datadriven::DBMatOnlineDEChol::updateSystemMatrixDecomposition(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::updateSystemMatrixDecomposition(), and sgpp::datadriven::DBMatOnlineDE_SMW::updateSystemMatrixDecompositionParallel().