From 11d5807f93eca77a059a09a9a6786ba9602e2b35 Mon Sep 17 00:00:00 2001 From: ziatdinovmax Date: Sat, 2 May 2020 13:13:04 -0400 Subject: [PATCH] FIx error in defining distance criterion --- gpim/gpbayes/boptim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpim/gpbayes/boptim.py b/gpim/gpbayes/boptim.py index 8613d62..2f1869c 100644 --- a/gpim/gpbayes/boptim.py +++ b/gpim/gpbayes/boptim.py @@ -347,7 +347,7 @@ def dist(idx): # Calculate distances between current point and previous n points d_all = [np.linalg.norm(np.array(idx) - np.array(i)) for i in idx_prev] # Calculate weighting coefficient for each distance - dscale_all = [dscale_*self.gamma*i for i in range(len(idx_prev))] + dscale_all = [dscale_*self.gamma**i for i in range(len(idx_prev))] # Check if each distance satisfies the imposed criteria bool_ = 0 in [d > l for (d, l) in zip(d_all[::-1], dscale_all)] return bool_