#include <GaussianProcessSurrogate.h>
Public Types | |
| typedef DataFileName | DataFileParameterType |
Public Member Functions | |
| GaussianProcessSurrogate (const InputParameters ¶meters) | |
| 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 > &std) const |
| virtual void | setupCovariance (UserObjectName _covar_name) |
| This function is called by LoadCovarianceDataAction when the surrogate is loading training data from a file. | |
| StochasticTools::GaussianProcess & | gp () |
| const StochasticTools::GaussianProcess & | getGP () const |
| 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 |
| CovarianceFunctionBase * | getCovarianceFunctionByName (const UserObjectName &name) const |
| Lookup a CovarianceFunction object by name and return pointer. | |
Protected Attributes | |
| 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 | |
| StochasticTools::GaussianProcess & | _gp |
| const torch::Tensor & | _training_params |
| Paramaters (x) used for training. | |
| 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. | |
| FEProblemBase & | _covar_feproblem |
| Reference to FEProblemBase instance. | |
Definition at line 20 of file GaussianProcessSurrogate.h.
| GaussianProcessSurrogate::GaussianProcessSurrogate | ( | const InputParameters & | parameters | ) |
Definition at line 26 of file GaussianProcessSurrogate.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.
|
virtual |
Evaluate surrogate model given a row of parameters.
Reimplemented from SurrogateModel.
Definition at line 43 of file GaussianProcessSurrogate.C.
Referenced by evaluate(), evaluate(), and evaluate().
|
inlinevirtual |
Evaluate methods that also return predicted standard deviation (see GaussianProcess.h)
Reimplemented from SurrogateModel.
Definition at line 53 of file SurrogateModel.h.
|
virtual |
Evaluate methods that also return predicted standard deviation (see GaussianProcess.h)
Reimplemented from SurrogateModel.
Definition at line 51 of file GaussianProcessSurrogate.C.
|
inlinevirtual |
Various evaluate methods that can be overriden.
Reimplemented from SurrogateModel.
Definition at line 43 of file SurrogateModel.h.
|
virtual |
Various evaluate methods that can be overriden.
Reimplemented from SurrogateModel.
Definition at line 61 of file GaussianProcessSurrogate.C.
|
inlinevirtual |
Reimplemented from SurrogateModel.
Definition at line 59 of file SurrogateModel.h.
|
virtual |
Reimplemented from SurrogateModel.
Definition at line 69 of file GaussianProcessSurrogate.C.
Definition at line 72 of file SurrogateModel.h.
Referenced by SurrogateModel::evaluate(), SurrogateModel::evaluate(), SurrogateModel::evaluate(), and SurrogateModel::evaluate().
|
protectedinherited |
Lookup a CovarianceFunction object by name and return pointer.
Definition at line 26 of file CovarianceInterface.C.
Referenced by ActiveLearningGaussianProcess::ActiveLearningGaussianProcess(), CovarianceFunctionBase::CovarianceFunctionBase(), GaussianProcessTrainer::GaussianProcessTrainer(), and setupCovariance().
|
inline |
Definition at line 40 of file GaussianProcessSurrogate.h.
Referenced by GaussianProcessData::initialize().
|
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.
|
inline |
Definition at line 39 of file GaussianProcessSurrogate.h.
|
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().
|
virtual |
This function is called by LoadCovarianceDataAction when the surrogate is loading training data from a file.
The action must recreate the covariance object before this surrogate can set the correct pointer.
Definition at line 35 of file GaussianProcessSurrogate.C.
|
static |
Definition at line 19 of file GaussianProcessSurrogate.C.
|
privateinherited |
Reference to FEProblemBase instance.
Definition at line 31 of file CovarianceInterface.h.
Referenced by CovarianceInterface::getCovarianceFunctionByName().
|
private |
Definition at line 43 of file GaussianProcessSurrogate.h.
Referenced by evaluate(), getGP(), gp(), and setupCovariance().
|
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().
|
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().
|
private |
Paramaters (x) used for training.
Definition at line 46 of file GaussianProcessSurrogate.h.
Referenced by evaluate().