xnn.common.train#

Modules

callbacks

Trainer callbacks: hooks into the training loop (checkpointing, early stopping, progress bar or your own).

graphed

Training steps replayed as one CUDA graph (trainer.cuda_graph).

loggers

Training loggers: where the trainer's metrics go (console, CSV, TensorBoard or your own).

losses

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

reactions

Reaction-energy loss: errors of energy differences between structures.

trainer

Training loop: batch training, device selection, validation, checkpointing.