lab-cosmo / metatrain

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

Add a general torch CompositionModel #280

Open PicoCentauri opened 6 days ago

PicoCentauri commented 6 days ago

Closes #269

Creates an API compatible torch.nn.Module for fitting and predicting compositions weights based on the calculate_composition_weights() function.

Currently, this is the bare implementation and before we include this in the other architectures, I would like to have some feedback.

Contributor (creator of pull-request) checklist


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