xnn.common.featurizers.radial#

Radial basis expansions shared across families: the Gaussian basis of SchNet and the equivariant GNN edge embedding, the exponential-normal basis of the TorchMD-Net models (ET, TensorNet) and BAMBOO, the Bessel basis of NequIP, MACE, DimeNet and the Equiformers, and the smooth spherical Bessel basis of Kocer, Mason and Erturk.

Module Attributes

RADIAL_BASES

The radial bases a model with a choice of basis can draw from (make_radial_basis()).

Functions

make_radial_basis(name, n_rbf, cutoff[, ...])

A radial basis by name: the bases shared by every model that lets the basis be chosen.

smooth_bessel_coefficients(n_rbf, cutoff)

The smooth spherical Bessel functions as combinations of sinc(k r / cutoff).

Classes

BesselRBF([n_rbf, cutoff, trainable, prefactor])

Bessel radial basis (NequIP/DimeNet-style), smoother & fewer functions.

ExpNormalSmearing([n_rbf, cutoff, ...])

Exponential-normal radial basis (TorchMD-Net ET / TensorNet, BAMBOO).

GaussianRBF([n_rbf, cutoff, gamma, start, ...])

Gaussian radial basis expansion (SchNet-style).

SmoothBesselRBF([n_rbf, cutoff])

Smooth spherical Bessel radial basis (Kocer, Mason and Erturk 2020).