9#ifdef MOOSE_LIBTORCH_ENABLED
44 virtual bool needSample(
const std::vector<Real> & row,
45 dof_id_type local_ind,
46 dof_id_type global_ind,
A class for performing active learning decision making in bi-fidelity modeling.
std::vector< Real > _outputs_lf_batch
Store all the outputs used for training from the LF model.
Sampler & _sampler
The sampler.
std::vector< Real > & _lf_corrected
Broadcast the GP-corrected LF prediciton to JSON.
const std::vector< Real > & _outputs_lf
Store all the outputs used for training from the LF model.
virtual bool facilitateDecision() override
This makes decisions whether to call the full model or not based on GP prediction and uncertainty.
virtual void preNeedSample() override
This is where most of the computations happen:
libMesh::Parallel::Communicator & _local_comm
Communicator that was split based on samples that have rows.
static InputParameters validParams()
virtual bool needSample(const std::vector< Real > &row, dof_id_type local_ind, dof_id_type global_ind, Real &val) override
Based on the computations in preNeedSample, the decision to get more data is passed and results from ...
const InputParameters & parameters() const