xnn.common.featurizers.cutoff.MollifierCutoff#
- class xnn.common.featurizers.cutoff.MollifierCutoff(cutoff)[source]#
Bases:
ModuleBump-function envelope
exp(1 - 1 / (1 - (r / rc)^2)), smooth to every order.Equal to 1 at
r = 0and to 0 forr >= rcwith every derivative continuous at the cutoff. AIMNet2 (Anstine et al., Chem. Sci. 2025) uses it to switch off the short-range part of the Coulomb energy that its network has learned implicitly; it is also the radial cutoff of SpookyNet (Unke et al., Nat. Commun. 2021, eq 16).- Parameters:
cutoff (float) – Cutoff radius
rc; the envelope is zero forr >= cutoff.