metatensor / metatrain

Training and evaluating machine learning models for atomistic systems.
https://metatensor.github.io/metatrain/
BSD 3-Clause "New" or "Revised" License
18 stars 6 forks source link

Utility update for generic targets #398

Open frostedoyster opened 1 week ago

frostedoyster commented 1 week ago

Last part of #364. Different types of targets makes it necessary to have different types of heads in models. In this PR, heads are made more flexible. A change to the handling of internal features is also needed, as the last-layer features can now be per-target (or, equivalently, per-head). The LLPR module is adapted accordingly. Finally, the last common representation of the model (before the heads are applied) is exposed as the features output (a standard output in metatensor.torch.atomistic).

Coming soon in this PR: features and last-layer features for PET.

Contributor (creator of pull-request) checklist


📚 Documentation preview 📚: https://metatrain--398.org.readthedocs.build/en/398/