dotools_py.settings.set_random_state

dotools_py.settings.set_random_state#

dotools_py.settings.set_random_state(random_state=0, verbosity=True)[source]#

Set random state.

This function set the global seed for random number generator, specifically for NumPy, random, torch and tensorflow.

Parameters:
random_state int (default: 0)

seed.

verbosity bool (default: True)

show a message indicating the random_state that has been set.

Return type:

None

Returns:

Returns None