Skip to content

Commit

Permalink
fixed bug that caused test MAE not saved
Browse files Browse the repository at this point in the history
  • Loading branch information
BowenD-UCB committed Feb 7, 2024
1 parent 4831bbb commit 26dda61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chgnet/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def train(
test_loader, is_test=True, test_result_save_path=None
)
self.training_history[key]["test"] = [test_mae[key] for key in self.targets]
self.save(filename=os.path.join(save_dir, file))

def _train(self, train_loader: DataLoader, current_epoch: int) -> dict:
"""Train all data for one epoch.
Expand Down

0 comments on commit 26dda61

Please sign in to comment.