From 02aa4390b33d46cc5e7676b860ad96daa620a0f0 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 8 Mar 2023 09:22:27 -0500 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20deprecated/removed=20np.f?= =?UTF-8?q?loat=20alias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In examples/lasso.py, change np.float (which was deprecated in numpy 1.20 and removed in numpy 1.24) to np.float64. --- examples/lasso.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lasso.py b/examples/lasso.py index 995bc1de..e1ffa31d 100644 --- a/examples/lasso.py +++ b/examples/lasso.py @@ -142,7 +142,7 @@ def hessian(self, x, lagrange, obj_factor): # n = 100 e = 1 - beta = np.array((0, 0, 2, -4, 0, 0, -1, 3), dtype=np.float).reshape((-1, 1)) + beta = np.array((0, 0, 2, -4, 0, 0, -1, 3), dtype=np.float64).reshape((-1, 1)) # # Set the random number generator seed.