quantity.property_prediction#
This module contains methods to learn a molecular properties from features of a neural network used for potential energy prediction.
Pre-processing#
Utility functions for initialization of the dataset and the model as well as a masked loss function for masking virtual atoms that are added to conserve array shapes.
|
Builds dataset in format that is used for data loading and throughout property predictions. |
|
Initializes a model that returns predictions for a single observation. |
|
Returns a loss function to optimize model parameters. |
Post-processing#
Property prediction at the atom level is often highly class-imbalanced. To account for this imbalance, the following functions evaluate prediction accuracy for each atom species:
|
Sorts per-atom results by species and returns a per-species mean. |
|
Computes for each snapshot in the provided graph dataset, the per-species error. |