SG++-Doxygen-Documentation
sgpp::datadriven::DBMatOnline Class Reference

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>

Inheritance diagram for sgpp::datadriven::DBMatOnline:
sgpp::datadriven::DBMatOnlineDE sgpp::datadriven::DBMatOnlineDEChol sgpp::datadriven::DBMatOnlineDEOrthoAdapt

Public Member Functions

 DBMatOnline (DBMatOffline &o)
 Constructor. More...
 
 DBMatOnline (const DBMatOnline &rhs)=delete
 
 DBMatOnline (DBMatOnline &&rhs)=default
 
DBMatOfflinegetOfflineObject ()
 Returns a reference to the offline object. More...
 
const DBMatOfflinegetOfflineObject () const
 
DBMatOnlineoperator= (const DBMatOnline &rhs)=delete
 
DBMatOnlineoperator= (DBMatOnline &&rhs)=default
 
void setLambda (double lambda)
 Changes the weighting factor for the regularization term, if possible (might depend on the kind of decomposition for classification) More...
 
virtual std::vector< size_t > updateSystemMatrixDecomposition (DensityEstimationConfiguration &densityEstimationConfig, Grid &grid, size_t numAddedGridPoints, std::list< size_t > deletedGridPointIndices, double lambda)
 Update the system matrix decomposition after the grid has been modified. More...
 
virtual ~DBMatOnline ()=default
 Destructor. More...
 

Protected Attributes

DBMatOfflineofflineObject
 

Detailed Description

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)

Constructor & Destructor Documentation

sgpp::datadriven::DBMatOnline::DBMatOnline ( DBMatOffline o)
explicit

Constructor.

Parameters
oa offline object
sgpp::datadriven::DBMatOnline::DBMatOnline ( const DBMatOnline rhs)
delete
sgpp::datadriven::DBMatOnline::DBMatOnline ( DBMatOnline &&  rhs)
default
virtual sgpp::datadriven::DBMatOnline::~DBMatOnline ( )
virtualdefault

Destructor.

Member Function Documentation

DBMatOffline & sgpp::datadriven::DBMatOnline::getOfflineObject ( )
const DBMatOffline & sgpp::datadriven::DBMatOnline::getOfflineObject ( ) const

References offlineObject.

DBMatOnline& sgpp::datadriven::DBMatOnline::operator= ( const DBMatOnline rhs)
delete
DBMatOnline& sgpp::datadriven::DBMatOnline::operator= ( DBMatOnline &&  rhs)
default
void sgpp::datadriven::DBMatOnline::setLambda ( double  lambda)

Changes the weighting factor for the regularization term, if possible (might depend on the kind of decomposition for classification)

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!"); }

std::vector< size_t > sgpp::datadriven::DBMatOnline::updateSystemMatrixDecomposition ( DensityEstimationConfiguration densityEstimationConfig,
Grid grid,
size_t  numAddedGridPoints,
std::list< size_t >  deletedGridPointIndices,
double  lambda 
)
virtual

Update the system matrix decomposition after the grid has been modified.

Parameters
densityEstimationConfigconfiguration of the density estimation
gridthe underlying grid
numAddedGridPointsNumber of grid points inserted at the end of the grid storage
deletedGridPointIndicesIndices of grid points that were deleted
lambdaThe last best lambda value
Returns
list of grid points, that cannot be coarsened

Reimplemented in sgpp::datadriven::DBMatOnlineDEOrthoAdapt, and sgpp::datadriven::DBMatOnlineDEChol.

References getOfflineObject(), and python.uq.operations.sparse_grid::isRefineable().

Referenced by sgpp::datadriven::LearnerSGDEOnOffParallel::computeNewSystemMatrixDecomposition().

Member Data Documentation


The documentation for this class was generated from the following files: