xnn.common.finetune.reference#
Per-element reference energies (E0s) for fine-tuning.
A potential predicts energies relative to per-element reference energies
(atom_ref in most xnn models). A fine-tuning set computed at another
level of theory differs from the pretraining labels mostly by such
composition-dependent constants, so the references are re-set before the fit
(Tompa et al., arXiv:2606.12704, Sec. 2.6). Two estimators are provided:
average_atomic_energies(): the least-squares fit of the reference energies to the compositions (eq. 5), the minimum-norm solution when the compositions are degenerate;estimate_atomic_energies(): the model-aware reestimation (eq. 6), the per-element corrections that best align the pretrained model’s predictions with the fine-tuning energies, which recovers the target references exactly for a model that predicts the interaction energies exactly and is the recommended choice.
get_atomic_energies() / set_atomic_energies() read and write the
references of any xnn model, whatever it calls them.
Module Attributes
Values of |
Functions
|
Per-element reference energies fitted to the energies of |
|
Atom counts per structure and element, float64 |
|
Model-aware reestimation of the per-element reference energies. |
|
The per-element reference energies of a model, |
|
Energies |
|
Split the reference-energy markers out of a model config. |
|
Set the per-element reference energies of a model. |
|
The sorted atomic numbers present in |