From b7f2cf77f402702aa7183bb4f200a1983ece1680 Mon Sep 17 00:00:00 2001 From: Xichen Wu <102925032+wxicu@users.noreply.github.com> Date: Wed, 5 Jun 2024 09:34:12 +0200 Subject: [PATCH] Update pertpy/tools/_distances/_distances.py Co-authored-by: Eljas Roellin <65244425+eroell@users.noreply.github.com> --- pertpy/tools/_distances/_distances.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pertpy/tools/_distances/_distances.py b/pertpy/tools/_distances/_distances.py index 161f8152..0af0ac47 100644 --- a/pertpy/tools/_distances/_distances.py +++ b/pertpy/tools/_distances/_distances.py @@ -966,7 +966,7 @@ def _kde_eval(d, grid): # Kernel choice: Gaussian is too smoothing and cosine or other kernels that do not stretch out # can not be compared well on regions further away from the data as they are -inf kde = KernelDensity(bandwidth="silverman", kernel="exponential").fit(d) - return _parrallel_score_samples(kde, grid) + return _parallel_score_samples(kde, grid) mean_x, var_x = _mean_var(X, log=True) mean_y, var_y = _mean_var(Y, log=True)