From 05d1967cd5d81f6476b4f0d908573ac1611f2d57 Mon Sep 17 00:00:00 2001 From: Alejandro Moreo Date: Wed, 25 Sep 2024 11:24:46 +0200 Subject: [PATCH] bugfix --- KDEy/kdey_devel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KDEy/kdey_devel.py b/KDEy/kdey_devel.py index bc90478..c99d927 100644 --- a/KDEy/kdey_devel.py +++ b/KDEy/kdey_devel.py @@ -315,7 +315,7 @@ class KDEyMLauto2(KDEyML): return loss_accum - bounds = [tuple(0, 1)] + bounds = [tuple((0, 1))] init_bandwidth = 0.1 r = optimize.minimize(neg_loglikelihood_band_, x0=[init_bandwidth], method='SLSQP', bounds=bounds) best_band = r.x[0] @@ -348,5 +348,5 @@ class KDEyMLauto2(KDEyML): best_loss_val = loss_accum best_band = bandwidth - print(f'found bandwidth={best_band:.4f} (loss_val={best_loss_val:.5f})') + print(f'found bandwidth={best_band:.4f}') # (loss_val={best_loss_val:.5f})') self.bandwidth_ = best_band