Skip to content

Commit

Permalink
FIx error in defining distance criterion
Browse files Browse the repository at this point in the history
  • Loading branch information
ziatdinovmax committed May 2, 2020
1 parent cf9c0d9 commit 11d5807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpim/gpbayes/boptim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_
Expand Down

0 comments on commit 11d5807

Please sign in to comment.