aub_htp.random.util#

Functions

get_random_state_generator([random_state])

A scipy-compatible random state generator factory.

aub_htp.random.util.get_random_state_generator(random_state: None | int | RandomState | Generator = None) Generator#

A scipy-compatible random state generator factory. This function is used to get a random state generator from a random state.

Parameters#

random_stateNone | int | np.random.RandomState | np.random.Generator, optional

The random state to use for the sampling.

Returns#

random_state_generatornp.random.Generator

The random state generator.