struct gpr::FactoredTrainingGeometry¶
Overview¶
Factored training geometry: the inverse-distance features Q (n_conf x d_feat) and their Jacobian per coordinate dimension J[d] (n_conf x d_feat). More…
#include <gpr/ml/GaussianProcessRegression.h>
struct FactoredTrainingGeometry {
// fields
EigenMatrix Q;
std::vector<EigenMatrix> J;
std::vector<std::vector<Index_t>> features_by_pt;
Index_t n_pt = 0;
bool valid = false;
};
Detailed Documentation¶
Factored training geometry: the inverse-distance features Q (n_conf x d_feat) and their Jacobian per coordinate dimension J[d] (n_conf x d_feat). Every derivative block of the pair-type distance d_pt(i,j) = sum_{f in pt} (Q(i,f) - Q(j,f))^2 is a sum of separable terms in (i,j): d12 = -2 J_n[:,F] J_m[:,F]^T, d1 = 2 c_n 1^T - 2 J_n[:,F] Q[:,F]^T, c_n(i) = sum_f J_n(i,f) Q(i,f), d2 = 2 1 c_m^T - 2 Q[:,F] J_m[:,F]^T, so a block is three small matrix products of rank at most the number of force rows plus one instead of a walk over atom pairs, and the factors are O(n_conf d_feat D) in memory.
Fields¶
n_conf x d_feat
std::vector<EigenMatrix> J
per dimension, n_conf x d_feat