47 return this->
_json[
"luu"].template get<std::vector<std::vector<Real>>>();
56 return this->
_json[
"xu"].template get<std::vector<std::vector<Real>>>();
65 return DenseVector<Real>(this->
_json[
"vind"].
template get<std::vector<Real>>());
74 return this->
_json[
"m_mean"].template get<std::vector<Real>>();
83 return this->
_json[
"m_scale"].template get<std::vector<Real>>();
92 return this->
_json[
"ell"].template get<Real>();
101 return this->
_json[
"eta"].template get<Real>();
LAROMANCEPartitionStressUpdateBaseTempl< true > ADLAROMANCEPartitionStressUpdateBase
LAROMANCEPartitionStressUpdateBaseTempl< false > LAROMANCEPartitionStressUpdateBase
Moose::GenericType< Real, is_ad > GenericReal
virtual std::vector< Real > getClassificationMmean()
Method and container for the mean values of the training input.
virtual std::vector< Real > getClassificationMscale()
Method and container for the scale factor of the training input points to normalize all input paramet...
static InputParameters validParams()
virtual Real getClassificationEta()
Method and container for the calibrated Gaussian Regression Model hyperparameter "Eta",...
virtual void computeDSecondPartitionWeightDStress(GenericReal< is_ad > &dsecond_partition_weight_dstress)
Compute the derivative of the partition weight of the second partition w.r.t.
std::vector< std::vector< GenericReal< is_ad > > > _partition_difference
Containers for parition math.
virtual DenseVector< Real > getClassificationVind()
Method and container for the inducing points of the Gaussian Process Regression model.
DenseMatrix< GenericReal< is_ad > > _partition_A
virtual GenericReal< is_ad > computeSecondPartitionWeight()
Compute the partition weight on the location in input-space, based on a calibrated Gaussian Process R...
std::vector< GenericReal< is_ad > > _partition_distance
std::vector< std::vector< Real > > _partition_Xu
virtual void initialSetup() override
virtual std::vector< std::vector< Real > > getClassificationXu()
Method and container for the Gaussian Process Regression model training points.
std::vector< Real > _partition_Mmean
const Real _finite_difference_width
Width to determine the finite difference derivative for the partition weight.
std::vector< std::vector< Real > > _partition_Luu
virtual Real getClassificationEll()
Method and container for the calibrated Gaussian Regression Model hyperparameter "Ell",...
std::vector< Real > _partition_Mscale
std::vector< GenericReal< is_ad > > _partition_covariance
virtual void exportJSON() override
DenseVector< Real > _partition_Vind
virtual std::vector< std::vector< Real > > getClassificationLuu()
Method and container for the Gaussian Process Regression lower triangular covariance matrix.
DenseVector< GenericReal< is_ad > > _partition_b
virtual void computePartitionWeights(std::vector< GenericReal< is_ad > > &weights, std::vector< GenericReal< is_ad > > &dweights_dstress) override
Compute the weight of the different partitions.
void checkJSONKey(const std::string &key)
check if a JSON file was loaded and if the specified key exists
unsigned int _num_inputs
Number of inputs for the ROM data set.
std::vector< GenericReal< is_ad > > _input_values
Container for input values.
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
GenericReal< is_ad > sigmoid(const Real lower, const Real upper, const GenericReal< is_ad > &val, const bool derivative=false)
Calculate the sigmoid function weighting for the input based on the limits.
const unsigned int _old_strain_input_index
Index corresponding to the position for the old strain in the input vector.
GenericMaterialProperty< Real, is_ad > & _second_partition_weight
Material property to store partition weight.
nlohmann::json _json
JSON object constructed from the datafile.
unsigned int _num_partitions
Number of partitions.
const InputParameters & parameters() const