From 3d84b5b963c7e4a4d658748f82f594d7d0347d14 Mon Sep 17 00:00:00 2001 From: Ali-RT Date: Wed, 26 Apr 2023 07:23:32 -0500 Subject: [PATCH] replace np.bool with bool --- ngboost/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ngboost/helpers.py b/ngboost/helpers.py index 88b7cfd..ae9c9ad 100644 --- a/ngboost/helpers.py +++ b/ngboost/helpers.py @@ -17,7 +17,7 @@ def Y_from_censored(T, E=None): else: E = check_array(E, ensure_2d=False) E = E.reshape(E.shape[0]) - Y = np.empty(dtype=[("Event", np.bool), ("Time", np.float64)], shape=T.shape[0]) - Y["Event"] = E.astype(np.bool) + Y = np.empty(dtype=[("Event", bool), ("Time", np.float64)], shape=T.shape[0]) + Y["Event"] = E.astype(bool) Y["Time"] = T.astype(np.float64) return Y