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

#include <LearnerScenario.hpp>

Inheritance diagram for sgpp::datadriven::LearnerScenario:
json::JSON json::DictNode json::Node

Public Member Functions

base::AdaptivityConfiguration getAdaptivityConfiguration ()
 
std::string getDatasetFileName ()
 
base::RegularGridConfiguration getGridConfig ()
 
InternalPrecision getInternalPrecision ()
 
double getLambda ()
 
solver::SLESolverConfiguration getSolverConfigurationFinal ()
 
solver::SLESolverConfiguration getSolverConfigurationRefine ()
 
datadriven::TestsetConfiguration getTestsetConfiguration ()
 
bool hasTestsetConfiguration ()
 
bool isInitialized () const
 
 LearnerScenario ()
 
 LearnerScenario (std::string scenarioFileName)
 
 LearnerScenario (std::string datasetFileName, double lambda, InternalPrecision internalPrecision, base::RegularGridConfiguration gridConfig, solver::SLESolverConfiguration SLESolverConfigRefine, solver::SLESolverConfiguration SLESolverConfigFinal, base::AdaptivityConfiguration adaptConfig)
 
 LearnerScenario (std::string datasetFileName, double lambda, InternalPrecision internalPrecision, base::RegularGridConfiguration gridConfig, solver::SLESolverConfiguration SLESolverConfigRefine, solver::SLESolverConfiguration SLESolverConfigFinal, base::AdaptivityConfiguration adaptConfig, datadriven::TestsetConfiguration testsetConfiguration)
 
void setAdaptivityConfiguration (base::AdaptivityConfiguration &adaptConfig)
 
void setDatasetFileName (std::string datasetFileName)
 
void setGridConfig (base::RegularGridConfiguration &gridConfig)
 
void setInternalPrecision (InternalPrecision internalPrecision)
 
void setLambda (double lambda)
 
void setSolverConfigurationFinal (solver::SLESolverConfiguration &solverConfigFinal)
 
void setSolverConfigurationRefine (solver::SLESolverConfiguration &solverConfigRefine)
 
void setTestsetConfiguration (datadriven::TestsetConfiguration &testsetConfig)
 
- Public Member Functions inherited from json::JSON
void clear ()
 
virtual JSONclone ()
 
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
 
NodeaddDictAttr (const std::string &name) override
 
NodeaddIDAttr (const std::string &name, const std::string &value) override
 
NodeaddIDAttr (const std::string &name, const char *value) override
 
NodeaddIDAttr (const std::string &name, const double &value) override
 
NodeaddIDAttr (const std::string &name, const uint64_t &value) override
 
NodeaddIDAttr (const std::string &name, const int64_t &value) override
 
NodeaddIDAttr (const std::string &name, const bool &value) override
 
NodeaddListAttr (const std::string &name) override
 
NodeaddTextAttr (const std::string &name, const std::string &value) override
 
bool contains (const std::string &key) override
 
 DictNode ()
 
 DictNode (const DictNode &original)
 
std::unique_ptr< Nodeerase (Node &node) override
 
std::vector< std::string > & keys () override
 
DictNodeoperator= (const DictNode &right)
 
Nodeoperator= (const Node &right) override
 
Nodeoperator[] (const std::string &key) override
 
void parse (std::vector< Token > &stream) override
 
void parseAttributes (std::vector< Token > &stream)
 
std::unique_ptr< NoderemoveAttribute (const std::string name) override
 
NodereplaceDictAttr (const std::string &name) override
 
NodereplaceIDAttr (const std::string &name, const std::string &value) override
 
NodereplaceIDAttr (const std::string &name, const char *value) override
 
NodereplaceIDAttr (const std::string &name, const double &value) override
 
NodereplaceIDAttr (const std::string &name, const uint64_t &value) override
 
NodereplaceIDAttr (const std::string &name, const int64_t &value) override
 
NodereplaceIDAttr (const std::string &name, const bool &value) override
 
NodereplaceListAttr (const std::string &name) override
 
NodereplaceTextAttr (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 NodeaddDictValue ()
 
virtual NodeaddIdValue (const std::string &value)
 
virtual NodeaddIdValue (const char *value)
 
virtual NodeaddIdValue (const double &value)
 
virtual NodeaddIdValue (const uint64_t &value)
 
virtual NodeaddIdValue (const int64_t &value)
 
virtual NodeaddIdValue (const bool &value)
 
virtual NodeaddListValue ()
 
virtual NodeaddTextValue (const std::string &value)
 
virtual void addValue (std::unique_ptr< Node > node)
 
virtual std::unique_ptr< Nodeerase ()
 
virtual std::string & get ()
 
virtual bool getBool ()
 
virtual double getDouble ()
 
virtual int64_t getInt ()
 
virtual uint64_t getUInt ()
 
 Node ()
 
virtual Nodeoperator[] (const size_t index)
 
virtual std::unique_ptr< NoderemoveValue (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
 

Additional Inherited Members

- Public Attributes inherited from json::Node
size_t orderedKeyIndex
 
Nodeparent
 
- 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
 

Constructor & Destructor Documentation

◆ LearnerScenario() [1/4]

sgpp::datadriven::LearnerScenario::LearnerScenario ( )

◆ LearnerScenario() [2/4]

sgpp::datadriven::LearnerScenario::LearnerScenario ( std::string  scenarioFileName)
explicit

◆ LearnerScenario() [3/4]

sgpp::datadriven::LearnerScenario::LearnerScenario ( std::string  datasetFileName,
double  lambda,
InternalPrecision  internalPrecision,
base::RegularGridConfiguration  gridConfig,
solver::SLESolverConfiguration  SLESolverConfigRefine,
solver::SLESolverConfiguration  SLESolverConfigFinal,
base::AdaptivityConfiguration  adaptConfig 
)

◆ LearnerScenario() [4/4]

sgpp::datadriven::LearnerScenario::LearnerScenario ( std::string  datasetFileName,
double  lambda,
InternalPrecision  internalPrecision,
base::RegularGridConfiguration  gridConfig,
solver::SLESolverConfiguration  SLESolverConfigRefine,
solver::SLESolverConfiguration  SLESolverConfigFinal,
base::AdaptivityConfiguration  adaptConfig,
datadriven::TestsetConfiguration  testsetConfiguration 
)

Member Function Documentation

◆ getAdaptivityConfiguration()

◆ getDatasetFileName()

std::string sgpp::datadriven::LearnerScenario::getDatasetFileName ( )

Referenced by main().

◆ getGridConfig()

◆ getInternalPrecision()

InternalPrecision sgpp::datadriven::LearnerScenario::getInternalPrecision ( )

◆ getLambda()

double sgpp::datadriven::LearnerScenario::getLambda ( )

Referenced by main().

◆ getSolverConfigurationFinal()

◆ getSolverConfigurationRefine()

◆ getTestsetConfiguration()

◆ hasTestsetConfiguration()

bool sgpp::datadriven::LearnerScenario::hasTestsetConfiguration ( )

◆ isInitialized()

bool sgpp::datadriven::LearnerScenario::isInitialized ( ) const

◆ setAdaptivityConfiguration()

◆ setDatasetFileName()

void sgpp::datadriven::LearnerScenario::setDatasetFileName ( std::string  datasetFileName)

Referenced by LearnerScenario().

◆ setGridConfig()

◆ setInternalPrecision()

void sgpp::datadriven::LearnerScenario::setInternalPrecision ( InternalPrecision  internalPrecision)

References sgpp::datadriven::Float.

Referenced by LearnerScenario().

◆ setLambda()

void sgpp::datadriven::LearnerScenario::setLambda ( double  lambda)

Referenced by LearnerScenario().

◆ setSolverConfigurationFinal()

◆ setSolverConfigurationRefine()

◆ setTestsetConfiguration()


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