Skip to content

Commit

Permalink
[Tune] [PB2] Correct pb2's beta_t parameter implementation (ray-proje…
Browse files Browse the repository at this point in the history
  • Loading branch information
chengscott authored and justinvyu committed Sep 14, 2022
1 parent e989f3e commit dfdfda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ray/tune/schedulers/pb2_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def UCB(m, m1, x, fixed, kappa=0.5):

c1 = 0.2
c2 = 0.4
beta_t = c1 * np.log(c2 * m.X.shape[0])
beta_t = c1 + max(0, np.log(c2 * m.X.shape[0]))
kappa = np.sqrt(beta_t)

xtest = np.concatenate((fixed.reshape(-1, 1), np.array(x).reshape(-1, 1))).T
Expand Down

0 comments on commit dfdfda0

Please sign in to comment.