Skip to content

Commit

Permalink
% m in shuffle_epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
jettjaniak committed Feb 5, 2024
1 parent 0ae352b commit 41225d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/delphi/train/shuffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def shuffle_list(in_out: list, seed: int):

def shuffle_epoch(samples: list, seed: int, epoch_nr: int):
"""Shuffle the samples in-place for a given training epoch"""
rng = RNG(10_000 + seed)
rng = RNG((10_000 + seed) % RNG.m)
for _ in range(epoch_nr):
rng()
shuffle_seed = rng()
Expand Down

0 comments on commit 41225d5

Please sign in to comment.