Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mseeger committed Dec 8, 2022
1 parent 369de77 commit 6f65513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter_hyperparameter_optimization/hyperband-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class HyperbandScheduler(d2l.HPOScheduler): #@save
self.save_hyperparameters()
self.s_max = int(np.ceil((np.log(r_max) - np.log(r_min)) / np.log(eta)))
self.s = self.s_max
self.successive_halving = SuccessiveHalvingScheduler(
self.successive_halving = d2l.SuccessiveHalvingScheduler(
searcher=self.searcher,
eta=self.eta,
r_min=self.r_min,
Expand Down Expand Up @@ -103,7 +103,7 @@ def update(self, config: dict, error: float, info=None):
self.s -= 1
if self.s < 0:
self.s = self.s_max
self.successive_halving = SuccessiveHalvingScheduler(
self.successive_halving = d2l.SuccessiveHalvingScheduler(
searcher=self.searcher,
eta=self.eta,
r_min=int(self.r_max * self.eta ** (-self.s)),
Expand Down

0 comments on commit 6f65513

Please sign in to comment.