From 8a9ec1beedcca55ea29ea2a3a6b6e76ca5479957 Mon Sep 17 00:00:00 2001 From: Till Raab Date: Fri, 26 May 2023 15:20:12 +0200 Subject: [PATCH] bf --- event_time_analysis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/event_time_analysis.py b/event_time_analysis.py index 6b1eda8..2c1070b 100644 --- a/event_time_analysis.py +++ b/event_time_analysis.py @@ -105,10 +105,11 @@ def permulation_kde(event_dt, repetitions = 2000, max_dt = 60, max_mem_use_GB = # conv_t_perm = cp.tile(conv_tt, (1, repetitions, len(event_dt))) gauss_3d = cp.exp(-((conv_tt - event_dt_perm) / kernal_w) ** 2 / 2) * kernal_h - gauss_3d /= np.sum(gauss_3d, axis=0) + # gauss_3d /= np.sum(gauss_3d, axis=0) kde_3d = cp.sum(gauss_3d, axis = 2).transpose() + try: kde_3d_numpy = cp.asnumpy(kde_3d) del event_dt_perm, gauss_3d, kde_3d