Skip to content

Commit

Permalink
made train/test split deterministic depending on seed
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbinschmid committed Jun 24, 2024
1 parent 84f799d commit 22b6905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasets/simplicial.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def setup(self, stage=None):
test_size=0.2,
shuffle=True,
stratify=self.stratified,
# random_state=RandomState(self.seed),
random_state=self.seed,
)
self.train_ds = Subset(simplicial_full, train_indices)
self.val_ds = Subset(simplicial_full, val_indices)
Expand Down

0 comments on commit 22b6905

Please sign in to comment.