![]()  | 
  
    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 (DBMatOffline &o) | |
| Constructor.  More... | |
| DBMatOnline (const DBMatOnline &rhs)=delete | |
| DBMatOnline (DBMatOnline &&rhs)=default | |
| DBMatOffline & | getOfflineObject () | 
| Returns a reference to the offline object.  More... | |
| const DBMatOffline & | getOfflineObject () const | 
| DBMatOnline & | operator= (const DBMatOnline &rhs)=delete | 
| DBMatOnline & | operator= (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 | |
| 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(), sgpp::datadriven::DBMatOnlineDEChol::updateSystemMatrixDecomposition(), and updateSystemMatrixDecomposition().
| const DBMatOffline & sgpp::datadriven::DBMatOnline::getOfflineObject | ( | ) | const | 
References offlineObject.
      
  | 
  delete | 
      
  | 
  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!"); }
      
  | 
  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::DBMatOnlineDEOrthoAdapt, and sgpp::datadriven::DBMatOnlineDEChol.
References getOfflineObject(), and python.uq.operations.sparse_grid::isRefineable().
Referenced by sgpp::datadriven::LearnerSGDEOnOffParallel::computeNewSystemMatrixDecomposition().
      
  | 
  protected | 
Referenced by sgpp::datadriven::DBMatOnlineDE::computeDensityFunction(), sgpp::datadriven::DBMatOnlineDE::DBMatOnlineDE(), sgpp::datadriven::DBMatOnlineDE::eval(), getOfflineObject(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), sgpp::datadriven::DBMatOnlineDEChol::solveSLE(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::solveSLE(), sgpp::datadriven::DBMatOnlineDEChol::updateSystemMatrixDecomposition(), and sgpp::datadriven::DBMatOnlineDEOrthoAdapt::updateSystemMatrixDecomposition().