braindecode.util.set_random_seeds

braindecode.util.set_random_seeds(seed, cuda)

Set seeds for python random module numpy.random and torch.

Parameters
seed: int

Random seed.

cuda: bool

Whether to set cuda seed with torch.