From 1532f01eafed07e0cfafda234c472f6c3e0ea846 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Wed, 24 Apr 2024 16:11:44 -0700 Subject: [PATCH] Undoing the change --- chainladder/core/correlation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chainladder/core/correlation.py b/chainladder/core/correlation.py index ed7a2b09..a9bdfb37 100644 --- a/chainladder/core/correlation.py +++ b/chainladder/core/correlation.py @@ -193,8 +193,8 @@ def pZlower(z: int, n: int, p: float = 0.5) -> float: lr.values * 0 + 1 ) - med = xp.nanmedian(a=m1, axis=2, keepdims=True, nan_policy="omit") - print("med:\n", med) + med = xp.nanmedian(a=m1, axis=2, keepdims=True) + # print("med:\n", med) m1large = (xp.nan_to_num(m1) > med) + (lr.values * 0) m1small = (xp.nan_to_num(m1) < med) + (lr.values * 0)