From bb423c685661c97abc00defef939abeb5d9cc68e Mon Sep 17 00:00:00 2001 From: Andrea Esuli Date: Mon, 9 Feb 2026 15:16:39 +0100 Subject: [PATCH] removed warning --- quapy/functional.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quapy/functional.py b/quapy/functional.py index 408c62a..f00d232 100644 --- a/quapy/functional.py +++ b/quapy/functional.py @@ -277,7 +277,7 @@ def l1_norm(prevalences: ArrayLike) -> np.ndarray: """ n_classes = prevalences.shape[-1] accum = prevalences.sum(axis=-1, keepdims=True) - prevalences = np.true_divide(prevalences, accum, where=accum > 0) + prevalences = np.true_divide(prevalences, accum, where=accum > 0, out=None) allzeros = accum.flatten() == 0 if any(allzeros): if prevalences.ndim == 1: