SG++-Doxygen-Documentation
|
#include <LearnerSGDE.hpp>
Public Member Functions | |
LearnerSGDEConfiguration * | clone () override |
void | initConfig () |
LearnerSGDEConfiguration () | |
LearnerSGDEConfiguration (const std::string &fileName) | |
sgpp::base::GridType | stringToGridType (std::string &gridType) |
sgpp::datadriven::RegularizationType | stringToRegularizationType (std::string ®ularizationType) |
sgpp::solver::SLESolverType | stringToSolverType (std::string &solverType) |
Public Member Functions inherited from json::JSON | |
void | clear () |
void | deserialize (std::string content) |
void | deserializeFromString (const std::string &content) |
JSON (const std::string &fileName) | |
JSON () | |
JSON (const JSON &original) | |
void | serialize (const std::string &outFileName) |
Public Member Functions inherited from json::DictNode | |
void | addAttribute (const std::string &name, std::unique_ptr< Node > node) override |
Node & | addDictAttr (const std::string &name) override |
Node & | addIDAttr (const std::string &name, const std::string &value) override |
Node & | addIDAttr (const std::string &name, const char *value) override |
Node & | addIDAttr (const std::string &name, const double &value) override |
Node & | addIDAttr (const std::string &name, const uint64_t &value) override |
Node & | addIDAttr (const std::string &name, const int64_t &value) override |
Node & | addIDAttr (const std::string &name, const bool &value) override |
Node & | addListAttr (const std::string &name) override |
Node & | addTextAttr (const std::string &name, const std::string &value) override |
bool | contains (const std::string &key) override |
DictNode () | |
DictNode (const DictNode &original) | |
std::unique_ptr< Node > | erase (Node &node) override |
std::vector< std::string > & | keys () override |
DictNode & | operator= (const DictNode &right) |
Node & | operator= (const Node &right) override |
Node & | operator[] (const std::string &key) override |
void | parse (std::vector< Token > &stream) override |
void | parseAttributes (std::vector< Token > &stream) |
std::unique_ptr< Node > | removeAttribute (const std::string name) override |
Node & | replaceDictAttr (const std::string &name) override |
Node & | replaceIDAttr (const std::string &name, const std::string &value) override |
Node & | replaceIDAttr (const std::string &name, const char *value) override |
Node & | replaceIDAttr (const std::string &name, const double &value) override |
Node & | replaceIDAttr (const std::string &name, const uint64_t &value) override |
Node & | replaceIDAttr (const std::string &name, const int64_t &value) override |
Node & | replaceIDAttr (const std::string &name, const bool &value) override |
Node & | replaceListAttr (const std::string &name) override |
Node & | replaceTextAttr (const std::string &name, const std::string &value) override |
void | serialize (std::ostream &outFile, size_t indentWidth) override |
size_t | size () override |
Public Member Functions inherited from json::Node | |
virtual Node & | addDictValue () |
virtual Node & | addIdValue (const std::string &value) |
virtual Node & | addIdValue (const char *value) |
virtual Node & | addIdValue (const double &value) |
virtual Node & | addIdValue (const uint64_t &value) |
virtual Node & | addIdValue (const int64_t &value) |
virtual Node & | addIdValue (const bool &value) |
virtual Node & | addListValue () |
virtual Node & | addTextValue (const std::string &value) |
virtual void | addValue (std::unique_ptr< Node > node) |
virtual std::unique_ptr< Node > | erase () |
virtual std::string & | get () |
virtual bool | getBool () |
virtual double | getDouble () |
virtual int64_t | getInt () |
virtual uint64_t | getUInt () |
Node () | |
virtual Node & | operator[] (const size_t index) |
virtual std::unique_ptr< Node > | removeValue (size_t index) |
virtual void | set (const std::string &value) |
virtual void | setBool (bool boolValue) |
virtual void | setDouble (double doubleValue) |
virtual void | setInt (int64_t intValue) |
virtual void | setUInt (uint64_t uintValue) |
virtual | ~Node ()=default |
Friends | |
class | LearnerSGDE |
Additional Inherited Members | |
Public Attributes inherited from json::Node | |
size_t | orderedKeyIndex |
Node * | parent |
Protected Attributes inherited from json::DictNode | |
std::map< std::string, std::unique_ptr< Node > > | attributes |
std::vector< std::string > | keyOrder |
Static Protected Attributes inherited from json::Node | |
static const int | SERIALIZE_INDENT = 3 |
sgpp::datadriven::LearnerSGDEConfiguration::LearnerSGDEConfiguration | ( | ) |
References initConfig().
Referenced by clone().
|
explicit |
References json::DictNode::contains(), sgpp::base::GeneralGridConfiguration::dim_, sgpp::datadriven::CrossvalidationConfiguration::enable_, sgpp::solver::SLESolverConfiguration::eps_, sgpp::base::GeneralGridConfiguration::filename_, initConfig(), sgpp::datadriven::CrossvalidationConfiguration::kfold_, sgpp::datadriven::CrossvalidationConfiguration::lambda_, sgpp::datadriven::CrossvalidationConfiguration::lambdaEnd_, sgpp::datadriven::CrossvalidationConfiguration::lambdaStart_, sgpp::datadriven::CrossvalidationConfiguration::lambdaSteps_, sgpp::base::GeneralGridConfiguration::level_, sgpp::datadriven::CrossvalidationConfiguration::logScale_, sgpp::solver::SLESolverConfiguration::maxIterations_, sgpp::base::AdaptivityConfiguration::noPoints_, sgpp::base::AdaptivityConfiguration::numRefinements_, sgpp::datadriven::CrossvalidationConfiguration::seed_, sgpp::datadriven::CrossvalidationConfiguration::shuffle_, sgpp::datadriven::CrossvalidationConfiguration::silent_, stringToGridType(), stringToRegularizationType(), stringToSolverType(), sgpp::solver::SLESolverConfiguration::threshold_, sgpp::datadriven::RegularizationConfiguration::type_, sgpp::solver::SLESolverConfiguration::type_, sgpp::base::GeneralGridConfiguration::type_, and json::json_exception::what().
|
overridevirtual |
Reimplemented from json::JSON.
References LearnerSGDEConfiguration().
void sgpp::datadriven::LearnerSGDEConfiguration::initConfig | ( | ) |
References sgpp::base::GeneralGridConfiguration::boundaryLevel_, sgpp::solver::CG, sgpp::base::GeneralGridConfiguration::dim_, sgpp::datadriven::CrossvalidationConfiguration::enable_, sgpp::solver::SLESolverConfiguration::eps_, sgpp::datadriven::CrossvalidationConfiguration::kfold_, sgpp::datadriven::CrossvalidationConfiguration::lambda_, sgpp::datadriven::CrossvalidationConfiguration::lambdaEnd_, sgpp::datadriven::CrossvalidationConfiguration::lambdaStart_, sgpp::datadriven::CrossvalidationConfiguration::lambdaSteps_, sgpp::datadriven::Laplace, sgpp::base::GeneralGridConfiguration::level_, sgpp::base::Linear, sgpp::datadriven::CrossvalidationConfiguration::logScale_, sgpp::base::GeneralGridConfiguration::maxDegree_, sgpp::solver::SLESolverConfiguration::maxIterations_, sgpp::base::AdaptivityConfiguration::noPoints_, sgpp::base::AdaptivityConfiguration::numRefinements_, sgpp::datadriven::CrossvalidationConfiguration::seed_, sgpp::datadriven::CrossvalidationConfiguration::shuffle_, sgpp::datadriven::CrossvalidationConfiguration::silent_, sgpp::solver::SLESolverConfiguration::threshold_, sgpp::datadriven::RegularizationConfiguration::type_, sgpp::solver::SLESolverConfiguration::type_, and sgpp::base::GeneralGridConfiguration::type_.
Referenced by LearnerSGDEConfiguration().
sgpp::base::GridType sgpp::datadriven::LearnerSGDEConfiguration::stringToGridType | ( | std::string & | gridType | ) |
References sgpp::base::Bspline, sgpp::base::BsplineBoundary, sgpp::base::BsplineClenshawCurtis, sgpp::base::FundamentalSpline, sgpp::base::Linear, sgpp::base::LinearBoundary, sgpp::base::LinearClenshawCurtis, sgpp::base::LinearL0Boundary, sgpp::base::LinearStencil, sgpp::base::LinearStretched, sgpp::base::LinearStretchedBoundary, sgpp::base::LinearTruncatedBoundary, sgpp::base::ModBspline, sgpp::base::ModBsplineClenshawCurtis, sgpp::base::ModFundamentalSpline, sgpp::base::ModLinear, sgpp::base::ModLinearStencil, sgpp::base::ModPoly, sgpp::base::ModWavelet, sgpp::base::Periodic, sgpp::base::Poly, sgpp::base::PolyBoundary, sgpp::base::Prewavelet, sgpp::base::SquareRoot, sgpp::base::Wavelet, and sgpp::base::WaveletBoundary.
Referenced by LearnerSGDEConfiguration().
sgpp::datadriven::RegularizationType sgpp::datadriven::LearnerSGDEConfiguration::stringToRegularizationType | ( | std::string & | regularizationType | ) |
References sgpp::datadriven::Identity, and sgpp::datadriven::Laplace.
Referenced by LearnerSGDEConfiguration().
sgpp::solver::SLESolverType sgpp::datadriven::LearnerSGDEConfiguration::stringToSolverType | ( | std::string & | solverType | ) |
References sgpp::solver::BiCGSTAB, and sgpp::solver::CG.
Referenced by LearnerSGDEConfiguration().
|
friend |