Loading...
Searching...
No Matches
gpr::FactoredTrainingGeometry Struct Reference

#include <gpr/ml/GaussianProcessRegression.h>

Public Attributes

EigenMatrix Q
 n_conf x d_feat
std::vector< EigenMatrix > J
 per dimension, n_conf x d_feat
std::vector< std::vector< Index_t > > features_by_pt
Index_t n_pt = 0
bool valid = false

Detailed Description

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.

Definition at line 120 of file GaussianProcessRegression.h.

Member Data Documentation

◆ features_by_pt

std::vector<std::vector<Index_t> > gpr::FactoredTrainingGeometry::features_by_pt

Definition at line 123 of file GaussianProcessRegression.h.

◆ J

std::vector<EigenMatrix> gpr::FactoredTrainingGeometry::J

per dimension, n_conf x d_feat

Definition at line 122 of file GaussianProcessRegression.h.

◆ n_pt

Index_t gpr::FactoredTrainingGeometry::n_pt = 0

Definition at line 124 of file GaussianProcessRegression.h.

◆ Q

EigenMatrix gpr::FactoredTrainingGeometry::Q

n_conf x d_feat

Definition at line 121 of file GaussianProcessRegression.h.

◆ valid

bool gpr::FactoredTrainingGeometry::valid = false

Definition at line 125 of file GaussianProcessRegression.h.


The documentation for this struct was generated from the following file: