#include <ExpectedImprovementGlobalFit.h>
Public Types | |
| typedef DataFileName | DataFileParameterType |
Public Member Functions | |
| ExpectedImprovementGlobalFit (const InputParameters ¶meters) | |
| void | computeAcquisition (std::vector< Real > &acq, const std::vector< Real > &gp_mean, const std::vector< Real > &gp_std, const std::vector< std::vector< Real >> &test_inputs, const std::vector< std::vector< Real >> &train_inputs, const std::vector< Real > &generic) const |
| Compute the acquisition function values. More... | |
| void | penalizeAcquisition (std::vector< Real > &modified_acq, std::vector< unsigned int > &sorted_indices, const std::vector< Real > &acq, const std::vector< Real > &length_scales, const std::vector< std::vector< Real >> &inputs) |
| Return the modified acquisition function values and sorted indices considering local penalization (inspired from Zhan et al. More... | |
| void | computeCorrelation (Real &corr, const std::vector< Real > &input1, const std::vector< Real > &input2, const std::vector< Real > &length_scales) |
| Compute the correlation between two inputs using the length scales. More... | |
| 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 | haveParameter (const std::string &name) 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 |
Static Public Member Functions | |
| static InputParameters | validParams () |
| 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 | computeAcquisitionInternal (std::vector< Real > &acq, const std::vector< Real > &gp_mean, const std::vector< Real > &gp_std, const std::vector< std::vector< Real >> &test_inputs, const std::vector< std::vector< Real >> &train_inputs, const std::vector< Real > &generic) const override |
| Implementation hook for derived classes (no size checks here). More... | |
| void | flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const |
| InvalidSolutionID | registerInvalidSolutionInternal (const std::string &message, const bool warning) const |
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 |
Static Private Member Functions | |
| static void | computeDistance (unsigned int &req_index, const std::vector< Real > ¤t_input, const std::vector< std::vector< Real >> &train_inputs) |
| Compute the Eucleidan distance. More... | |
Definition at line 15 of file ExpectedImprovementGlobalFit.h.
| ExpectedImprovementGlobalFit::ExpectedImprovementGlobalFit | ( | const InputParameters & | parameters | ) |
Definition at line 23 of file ExpectedImprovementGlobalFit.C.
|
inherited |
Compute the acquisition function values.
Performs all argument/size checks, then dispatches to computeAcquisitionInternal implemented by derived classes.
| acq | The computed acquisition function values |
| gp_mean | The provided GP mean values |
| gp_std | The provided GP standard deviation values |
| test_inputs | All the input values under which the GP has to be tested |
| train_inputs | All the input values under which the GP has been trained |
| generic | A generic parameter (can be output values under which the GP has been trained or threshold parameter under the U-Function etc.) |
Definition at line 28 of file ParallelAcquisitionFunctionBase.C.
|
overrideprotectedvirtual |
Implementation hook for derived classes (no size checks here).
| acq | The computed acquisition function values |
| gp_mean | The provided GP mean values |
| gp_std | The provided GP standard deviation values |
| test_inputs | All the input values under which the GP has to be tested |
| train_inputs | All the input values under which the GP has been trained |
| generic | A generic parameter (can be output values under which the GP has been trained or threshold parameter under the U-Function etc.) |
Implements ParallelAcquisitionFunctionBase.
Definition at line 29 of file ExpectedImprovementGlobalFit.C.
|
inherited |
Compute the correlation between two inputs using the length scales.
| corr | The computed correlation value |
| input1 | The first input |
| input2 | The second input |
| length_scales | The length scales to compute the correlation between inputs |
Definition at line 98 of file ParallelAcquisitionFunctionBase.C.
Referenced by ParallelAcquisitionFunctionBase::penalizeAcquisition().
|
staticprivate |
Compute the Eucleidan distance.
| req_index | The required closest index |
| current_input | The input currently under consideration |
| train_inputs | All the input values under which the GP has been trained |
Definition at line 46 of file ExpectedImprovementGlobalFit.C.
Referenced by computeAcquisitionInternal().
|
inherited |
Return the modified acquisition function values and sorted indices considering local penalization (inspired from Zhan et al.
2017)
| modified_acq | The modified acquisition function values |
| sorted_indices | The sorted indices modified acquisition function values |
| acq | The originally acquisition function values |
| length_scales | The length scales to compute the correlation between inputs |
| inputs | All the input values under which acquisition needs to be computed |
| penalize | Bool to indicate whether to compute the correlations or not |
Definition at line 58 of file ParallelAcquisitionFunctionBase.C.
|
static |
Definition at line 16 of file ExpectedImprovementGlobalFit.C.
1.8.14