xnn.common.train.losses#

Weighted energy / force / stress (and dipole / polarizability / charge) loss.

Module Attributes

LOSS_TERMS

Loss terms and the config weights that switch them on.

Functions

weighted_loss(pred, data, energy_weight, ...)

Compute a weighted sum of energy, force and stress loss terms.

Classes

UncertaintyWeights(names)

Learned weights of the loss terms, after Kendall, Gal and Cipolla (CVPR 2018).