#include <PolynomialRegressionSurrogate.h>
Public Types | |
| typedef DataFileName | DataFileParameterType |
Public Member Functions | |
| PolynomialRegressionSurrogate (const InputParameters ¶meters) | |
| virtual Real | evaluate (const std::vector< Real > &x) const override |
| Evaluate surrogate model given a row of parameters. | |
| virtual void | evaluate (const std::vector< Real > &x, std::vector< Real > &y) const override |
| Various evaluate methods that can be overriden. | |
| virtual Real | evaluate (const std::vector< Real > &x) const |
| Evaluate surrogate model given a row of parameters. | |
| virtual void | evaluate (const std::vector< Real > &x, std::vector< Real > &y) const |
| Various evaluate methods that can be overriden. | |
| virtual Real | evaluate (const std::vector< Real > &x, Real &std) const |
| Evaluate methods that also return predicted standard deviation (see GaussianProcess.h) | |
| virtual void | evaluate (const std::vector< Real > &x, std::vector< Real > &y, std::vector< Real > &) const |
| virtual bool | enabled () const |
| std::shared_ptr< MooseObject > | getSharedPtr () |
| std::shared_ptr< const MooseObject > | getSharedPtr () const |
| bool | isKokkosObject () const |
| MooseApp & | getMooseApp () const |
| const std::string & | type () const |
| const std::string & | name () const |
| std::string | typeAndName () const |
| MooseObjectParameterName | uniqueParameterName (const std::string ¶meter_name) const |
| MooseObjectName | uniqueName () const |
| const InputParameters & | parameters () const |
| const hit::Node * | getHitNode () const |
| bool | hasBase () const |
| const std::string & | getBase () const |
| const T & | getParam (const std::string &name) const |
| std::vector< std::pair< T1, T2 > > | getParam (const std::string ¶m1, const std::string ¶m2) const |
| const T * | queryParam (const std::string &name) const |
| const T & | getRenamedParam (const std::string &old_name, const std::string &new_name) const |
| T | getCheckedPointerParam (const std::string &name, const std::string &error_string="") const |
| bool | isParamValid (const std::string &name) const |
| bool | isParamSetByUser (const std::string &name) const |
| void | connectControllableParams (const std::string ¶meter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const |
| void | paramError (const std::string ¶m, Args... args) const |
| void | paramWarning (const std::string ¶m, Args... args) const |
| void | paramWarning (const std::string ¶m, Args... args) const |
| void | paramInfo (const std::string ¶m, Args... args) const |
| std::string | messagePrefix (const bool hit_prefix=true) const |
| std::string | errorPrefix (const std::string &) const |
| void | mooseError (Args &&... args) const |
| void | mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const |
| void | mooseErrorNonPrefixed (Args &&... args) const |
| void | mooseWarning (Args &&... args) const |
| void | mooseWarning (Args &&... args) const |
| void | mooseWarningNonPrefixed (Args &&... args) const |
| void | mooseWarningNonPrefixed (Args &&... args) const |
| void | mooseDeprecated (Args &&... args) const |
| void | mooseDeprecated (Args &&... args) const |
| void | mooseDeprecatedNoTrace (Args &&... args) const |
| void | mooseInfo (Args &&... args) const |
| void | callMooseError (std::string msg, const bool with_prefix, const hit::Node *node=nullptr, const bool show_trace=true) const |
| std::string | getDataFileName (const std::string ¶m) const |
| std::string | getDataFileNameByName (const std::string &relative_path) const |
| std::string | getDataFilePath (const std::string &relative_path) const |
| const Parallel::Communicator & | comm () const |
| processor_id_type | n_processors () const |
| processor_id_type | processor_id () const |
| T & | getSampler (const std::string &name) |
| Sampler & | getSampler (const std::string &name) |
| T & | getSamplerByName (const SamplerName &name) |
| Sampler & | getSamplerByName (const SamplerName &name) |
| template<> | |
| SurrogateModel & | getSurrogateModel (const std::string &name) const |
| template<> | |
| SurrogateTrainerBase & | getSurrogateTrainer (const std::string &name) const |
| template<> | |
| SurrogateModel & | getSurrogateModelByName (const UserObjectName &name) const |
| template<> | |
| SurrogateTrainerBase & | getSurrogateTrainerByName (const UserObjectName &name) const |
| const std::string & | modelMetaDataName () const |
| Accessor for the name of the model meta data. | |
| const FileName & | getModelDataFileName () const |
| Get the associated filename. | |
| bool | hasModelData () const |
| Check if we need to load model data (if the filename parameter is used) | |
| template<typename T = SurrogateModel> | |
| T & | getSurrogateModel (const std::string &name) const |
| Get a SurrogateModel/Trainer with a given name. | |
| template<typename T = SurrogateTrainerBase> | |
| T & | getSurrogateTrainer (const std::string &name) const |
| template<typename T = SurrogateModel> | |
| T & | getSurrogateModelByName (const UserObjectName &name) const |
| Get a sampler with a given name. | |
| template<typename T = SurrogateTrainerBase> | |
| T & | getSurrogateTrainerByName (const UserObjectName &name) const |
| template<typename T , typename... Args> | |
| T & | declareModelData (const std::string &data_name, Args &&... args) |
| Declare model data for loading from file as well as restart. | |
| template<typename T , typename... Args> | |
| const T & | getModelData (const std::string &data_name, Args &&... args) const |
| Retrieve model data from the interface. | |
Static Public Member Functions | |
| static InputParameters | validParams () |
| static MooseEnum | defaultPredictorTypes () |
| static MooseEnum | defaultResponseTypes () |
| static void | callMooseError (MooseApp *const app, const InputParameters ¶ms, std::string msg, const bool with_prefix, const hit::Node *node, const bool show_trace=true) |
Public Attributes | |
| usingCombinedWarningSolutionWarnings | |
| const ConsoleStream | _console |
Static Public Attributes | |
| static const std::string | type_param |
| static const std::string | name_param |
| static const std::string | unique_name_param |
| static const std::string | app_param |
| static const std::string | moose_base_param |
| static const std::string | kokkos_object_param |
Protected Member Functions | |
| void | flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const |
| InvalidSolutionID | registerInvalidSolutionInternal (const std::string &message, const bool warning) const |
Protected Attributes | |
| const std::vector< std::vector< Real > > & | _coeff |
| Coefficients of regression model. | |
| const std::vector< std::vector< unsigned int > > & | _power_matrix |
| The power matrix for the terms in the polynomial expressions. | |
| const bool & | _enabled |
| MooseApp & | _app |
| Factory & | _factory |
| ActionFactory & | _action_factory |
| const std::string & | _type |
| const std::string & | _name |
| const InputParameters & | _pars |
| const Parallel::Communicator & | _communicator |
Private Member Functions | |
| template<typename P , typename R > | |
| void | evaluateError (P x, R y, bool with_std=false) const |
Static Private Member Functions | |
| static const hit::Node * | getHitNode (const InputParameters ¶ms) |
| static std::string | messagePrefix (const InputParameters ¶ms, const bool hit_prefix) |
Private Attributes | |
| const unsigned int & | _max_degree |
| Maximum polynomial degree, limiting the sum of constituent polynomial degrees. | |
| const ParallelParamObject & | _parent |
| const MooseBase & | _si_moose_base |
| const FEProblemBase * | _si_problem |
| const InputParameters & | _si_params |
| FEProblemBase & | _si_feproblem |
| THREAD_ID | _si_tid |
| const InputParameters & | _smi_params |
| Parameters of the object with this interface. | |
| FEProblemBase & | _smi_feproblem |
| Reference to FEProblemBase instance. | |
| const THREAD_ID | _smi_tid |
| Thread ID. | |
| const MooseObject & | _model_object |
| Reference to the MooseObject that uses this interface. | |
| const std::string | _model_meta_data_name |
| The model meta data name. | |
| PublicRestartable | _model_restartable |
| Member for interfacing with the framework's restartable system. | |
Definition at line 14 of file PolynomialRegressionSurrogate.h.
| PolynomialRegressionSurrogate::PolynomialRegressionSurrogate | ( | const InputParameters & | parameters | ) |
Definition at line 23 of file PolynomialRegressionSurrogate.C.
|
inherited |
Declare model data for loading from file as well as restart.
Definition at line 73 of file RestartableModelInterface.h.
|
inlinestaticinherited |
Definition at line 27 of file SurrogateModel.h.
|
inlinestaticinherited |
|
inlinevirtual |
Evaluate surrogate model given a row of parameters.
Reimplemented from SurrogateModel.
Definition at line 33 of file SurrogateModel.h.
|
overridevirtual |
Evaluate surrogate model given a row of parameters.
Reimplemented from SurrogateModel.
Definition at line 32 of file PolynomialRegressionSurrogate.C.
|
inlinevirtual |
Evaluate methods that also return predicted standard deviation (see GaussianProcess.h)
Reimplemented from SurrogateModel.
Definition at line 53 of file SurrogateModel.h.
|
inlinevirtual |
Various evaluate methods that can be overriden.
Reimplemented from SurrogateModel.
Definition at line 43 of file SurrogateModel.h.
|
overridevirtual |
Various evaluate methods that can be overriden.
Reimplemented from SurrogateModel.
Definition at line 51 of file PolynomialRegressionSurrogate.C.
|
inlinevirtual |
Reimplemented from SurrogateModel.
Definition at line 59 of file SurrogateModel.h.
Definition at line 72 of file SurrogateModel.h.
Referenced by SurrogateModel::evaluate(), SurrogateModel::evaluate(), SurrogateModel::evaluate(), and SurrogateModel::evaluate().
|
inherited |
Retrieve model data from the interface.
Definition at line 80 of file RestartableModelInterface.h.
|
inherited |
Get the associated filename.
Definition at line 33 of file RestartableModelInterface.C.
|
inherited |
Get a SurrogateModel/Trainer with a given name.
| name | The name of the parameter key of the sampler to retrieve |
Definition at line 81 of file SurrogateModelInterface.h.
Referenced by SurrogateTrainer::initialize().
|
inherited |
Definition at line 46 of file SurrogateModelInterface.C.
|
inherited |
Get a sampler with a given name.
| name | The name of the sampler to retrieve |
Definition at line 88 of file SurrogateModelInterface.h.
Referenced by CrossValidationScores::CrossValidationScores(), EvaluateSurrogate::EvaluateSurrogate(), and InverseMapping::initialSetup().
|
inherited |
Definition at line 31 of file SurrogateModelInterface.C.
|
inherited |
Definition at line 104 of file SurrogateModelInterface.h.
|
inherited |
Definition at line 60 of file SurrogateModelInterface.C.
|
inherited |
Definition at line 111 of file SurrogateModelInterface.h.
Referenced by SurrogateTrainerOutput::output().
|
inherited |
Definition at line 53 of file SurrogateModelInterface.C.
|
inherited |
Check if we need to load model data (if the filename parameter is used)
Definition at line 39 of file RestartableModelInterface.C.
|
inlineinherited |
Accessor for the name of the model meta data.
Definition at line 47 of file RestartableModelInterface.h.
Referenced by MappingOutput::output(), and SurrogateTrainerOutput::output().
|
static |
Definition at line 15 of file PolynomialRegressionSurrogate.C.
|
protected |
Coefficients of regression model.
Definition at line 27 of file PolynomialRegressionSurrogate.h.
Referenced by evaluate(), and evaluate().
|
private |
Maximum polynomial degree, limiting the sum of constituent polynomial degrees.
Definition at line 34 of file PolynomialRegressionSurrogate.h.
|
privateinherited |
The model meta data name.
This is used to store the restartable data within the RestartableDataMap.
Definition at line 61 of file RestartableModelInterface.h.
Referenced by RestartableModelInterface::modelMetaDataName(), and RestartableModelInterface::RestartableModelInterface().
|
privateinherited |
Reference to the MooseObject that uses this interface.
Definition at line 57 of file RestartableModelInterface.h.
Referenced by RestartableModelInterface::getModelDataFileName(), RestartableModelInterface::hasModelData(), and RestartableModelInterface::RestartableModelInterface().
|
privateinherited |
Member for interfacing with the framework's restartable system.
We need this because we would like to have the capability to handle the model data separately from the other data members used for checkpointing.
Definition at line 68 of file RestartableModelInterface.h.
Referenced by RestartableModelInterface::declareModelData(), and RestartableModelInterface::getModelData().
|
protected |
The power matrix for the terms in the polynomial expressions.
Definition at line 30 of file PolynomialRegressionSurrogate.h.
Referenced by evaluate(), and evaluate().
|
privateinherited |
Reference to FEProblemBase instance.
Definition at line 73 of file SurrogateModelInterface.h.
Referenced by SurrogateModelInterface::getSurrogateModelByName(), and SurrogateModelInterface::getSurrogateTrainerByName().
|
privateinherited |
Parameters of the object with this interface.
Definition at line 70 of file SurrogateModelInterface.h.
Referenced by SurrogateModelInterface::getSurrogateModel(), and SurrogateModelInterface::getSurrogateTrainer().
|
privateinherited |
Thread ID.
Definition at line 76 of file SurrogateModelInterface.h.
Referenced by SurrogateModelInterface::getSurrogateTrainerByName().