choderalab / modelforge

Infrastructure to implement and train NNPs
https://modelforge.readthedocs.io/en/latest/
MIT License
9 stars 4 forks source link

Keep input dimensions consisten #48

Closed wiederm closed 7 months ago

wiederm commented 7 months ago

Description

Input dimensions for inputs["atomic_numbers"] has shape (nr_of_atoms_in_batch, 1), which was flattended in the BaseNNP before. Now we keep dimensions and let the NNP decide what to do with it.

Question

Should we change the name of the input property atomic_number https://github.com/choderalab/modelforge/blob/6dab8a1a376a8b0cf83d84ac927793154239e272/modelforge/potential/models.py#L172 to atomic_properties? The way we are approaching the embedding in this PR makes it flexible to have other properties defined in this tensor with the now flexible shape (nr_of_atoms_in_batch, *, *). What do you think @ArnNag ?

Status

codecov-commenter commented 7 months ago

Codecov Report

Merging #48 (0d5e0a1) into main (09cbfb6) will increase coverage by 0.17%. The diff coverage is 100.00%.

Additional details and impacted files