This update makes the following improvements to utils_math.py:
Replaced the raw tqdm(range()) call with the more specific tqdm.auto.trange() call for enhanced compatibility in various environments (e.g., notebooks).
Added random state handling in get_bootstrap_result to ensure reproducibility during sampling. Instead of relying on the global random state here, our random state depends on different seed values for each sampling round.
Refactored the random seed initialization using np.random.default_rng in get_bootstrap_result_style_control, improving randomness consistency across the module.
As a result, the CIs become more consistent between different runs.
This update makes the following improvements to
utils_math.py
:tqdm(range())
call with the more specifictqdm.auto.trange()
call for enhanced compatibility in various environments (e.g., notebooks).get_bootstrap_result
to ensure reproducibility during sampling. Instead of relying on the global random state here, our random state depends on different seed values for each sampling round.np.random.default_rng
inget_bootstrap_result_style_control
, improving randomness consistency across the module.As a result, the CIs become more consistent between different runs.