function
set_random_seed
PythonSet Python, NumPy and selected Keras backend seeds; return the seed.
set_random_seed(seed: int | None = None) -> intSet Python, NumPy and selected Keras backend seeds; return the seed.
Random seeds and ID schedules.
set_random_seedfunctionSet Python, NumPy and selected Keras backend seeds; return the seed.uniform_id_generatorfunctionYield each ID once per cycle; shuffle mutates the supplied sequence.random_id_generatorfunctionSample with replacement, using optional nonnegative relative weights.Set Python, NumPy and selected Keras backend seeds; return the seed.
set_random_seed(seed: int | None = None) -> intSet Python, NumPy and selected Keras backend seeds; return the seed.
Yield each ID once per cycle; shuffle mutates the supplied sequence.
uniform_id_generator(ids: MutableSequence[T], repeat: bool = True, shuffle: bool = True) -> Generator[T, None, None]Yield each ID once per cycle; shuffle mutates the supplied sequence.
Sample with replacement, using optional nonnegative relative weights.
random_id_generator(ids: Sequence[T], weights: Sequence[float] | None = None) -> Generator[T, None, None]Sample with replacement, using optional nonnegative relative weights.