Skip to content

Commit

Permalink
Merge pull request #22 from ziatdinovmax/dev
Browse files Browse the repository at this point in the history
FIx error in defining distance criterion
  • Loading branch information
ziatdinovmax committed May 2, 2020
2 parents cf9c0d9 + 11d5807 commit 99a0bfa
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 99a0bfa

Please sign in to comment.