Skip to content

Commit

Permalink
refactor: setting pred split to sole dataset
Browse files Browse the repository at this point in the history
Signed-off-by: Kin Long Kelvin Lee <[email protected]>
  • Loading branch information
laserkelvin committed Sep 27, 2024
1 parent 05a3c93 commit 402c6dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions matsciml/lightning/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ def setup(self, stage: str | None = None) -> None:
f"Prediction split provided, but not found: {pred_split_path}"
)
dset = self._make_dataset(pred_split_path, self.dataset)
# assumes that if we're providing a predict set, we're not going
# to be doing training in the same run
self.dataset = dset
splits["pred"] = dset
# the last case assumes only the dataset is passed, we will treat it as train
if len(splits) == 0:
Expand Down

0 comments on commit 402c6dd

Please sign in to comment.