xnn.common.featurizers.radial.GaussianRBF#
- class xnn.common.featurizers.radial.GaussianRBF(n_rbf=50, cutoff=5.0, gamma=None)[source]#
Bases:
ModuleGaussian radial basis expansion (SchNet-style).
Expands scalar interatomic distances onto a set of
n_rbfGaussianse_k(r) = exp(-gamma (r - mu_k)^2)whose centersmu_kare fixed and evenly spaced on[0, cutoff]. Registered as a non-trainable buffer.- Parameters:
n_rbf (int, optional) – Number of Gaussian basis functions (centers). Defaults to
50.cutoff (float, optional) – Upper bound of the center range, in the same units as the distances. Defaults to
5.0.gamma (float or None, optional) – Width parameter of the Gaussians.
None(default) sets the standard deviation to the spacing between adjacent centers, i.e.gamma = 0.5 / spacing**2. SchNet (Schuett et al., NIPS 2017) fixesgamma = 10per Angstrom^2 on a 0.1 Angstrom center grid.
Notes
With
gamma=Nonethe width is the spacing between adjacent centers, or1.0whenn_rbf == 1.