Skip to content

Commit

Permalink
Merge pull request #18 from GreeleyGroup/fix/samplers
Browse files Browse the repository at this point in the history
FIX: Fixed randomizer in RandomSampler
  • Loading branch information
deshmukg authored Sep 23, 2023
2 parents a12e497 + 64ea83c commit 2781f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def create_samplers(self, sample_config):
idx_array = np.arange(self.dataset_size)

# Shuffle array
np.random.shuffle(idx_array)
randomizer.shuffle(idx_array)

# Get indices
train_size = int(np.ceil(sample_config["train"] * self.dataset_size))
Expand Down

0 comments on commit 2781f1a

Please sign in to comment.