Skip to content

Commit

Permalink
Made stephan happy :)
Browse files Browse the repository at this point in the history
  • Loading branch information
FNTwin committed Mar 15, 2024
1 parent 9f23613 commit 8b4253b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions openqdc/datasets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ def _precompute_E(self):
linear_inter_E_std = np.nanstd(E_lin / self.data["n_atoms"][:, None], axis=0)
statistics_dict.update(
{
"regression": {
"residual_regression": {
"energy": {"mean": np.atleast_2d(linear_E_mean), "std": np.atleast_2d(linear_E_std)}
},
"per_atom_regression": {
"per_atom_residual_regression": {
"energy": {"mean": np.atleast_2d(linear_inter_E_mean), "std": np.atleast_2d(linear_inter_E_std)}
},
"linear_regression_values": self.linear_e0s,
Expand Down Expand Up @@ -669,7 +669,7 @@ def get_statistics(self, normalization: str = "formation", return_none: bool = T
Get the statistics of the dataset.
normalization : str, optional
Type of energy, by default "formation", must be one of ["formation", "total",
"regression", "per_atom_formation", "per_atom_regression"]
"residual_regression", "per_atom_formation", "per_atom_residual_regression"]
return_none : bool, optional
Whether to return None if the statistics for the forces are not available, by default True
Otherwise, the statistics for the forces are set to 0.0
Expand Down
4 changes: 2 additions & 2 deletions openqdc/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"formation",
"total",
"per_atom_formation",
"regression",
"per_atom_regression",
"residual_regression",
"per_atom_residual_regression",
]

NOT_DEFINED = {
Expand Down

0 comments on commit 8b4253b

Please sign in to comment.