fynance.models.neural_network.MultiLayerPerceptron.set_seed¶
-
MultiLayerPerceptron.
set_seed
(seed_torch=None, seed_numpy=None)¶ Set seed for PyTorch and NumPy random number generator.
Parameters: - seed_torch, seed_numpy : bool or int, optional
If seed is an int \(0 < seed < 2^32\) set respectively PyTorch and NumPy seed with the number. Otherwise if is True then choose a random number, else doesn’t set seed.