From d8dcedc772c7bc33e92ddd022a0e55376fd22cdf Mon Sep 17 00:00:00 2001 From: Mingfei Date: Fri, 22 Mar 2024 11:09:04 +0000 Subject: [PATCH] Update viz_optimizers.py fix a bug in viz_optimizers.py: np.random.RandomState was deprecated (see this: https://github.com/hyperopt/hyperopt/issues/838) --- examples/viz_optimizers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/viz_optimizers.py b/examples/viz_optimizers.py index 5c1cba1..9d7f2e4 100644 --- a/examples/viz_optimizers.py +++ b/examples/viz_optimizers.py @@ -136,7 +136,7 @@ def execute_experiments( space=space, algo=tpe.suggest, max_evals=200, - rstate=np.random.RandomState(seed), + rstate=np.random.default_rng(seed), ) print(best["lr"], optimizer_class)