question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hyperband band indexes are off by one

See original GitHub issue

wandb --version && python --version && uname

  • Weights and Biases version: 0.9.7
  • Python version: 3.7.9
  • Operating System: Ubuntu 18.04LTS

Description

Using the hyperband early termination criterion for sweeps, you must specify where the “bands” are, which is how many iterations of the objective metric get reported before the algorithm considers whether or not to stop the run. They are an exponential series like 2,4,8,16, etc.

What I Did

If you configure the bands like:

early_terminate:
    type: hyperband
    min_iter: 2
    eta: 2

Here, the bands should be configured for iterations 2, 4, 8, 16, etc. But instead of considering the 2nd, 4th, 8th, 16th metric reported, it considers the 3rd, 5th, 9th, 17th, etc. This is because the code takes the human-specified iteration numbers which are 1-based (e.g. “1” means the first iteration) and uses them as indexes into a python list, which is 0-based. code

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Sep 14, 2020

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.73. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

0reactions
sydhollcommented, Nov 18, 2021

In the past year we’ve majorly reworked the CLI and UI for Weights & Biases. We’re closing issues older than 6 months. Please comment to reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hyperband band indexes are off by one · Issue #1237 - GitHub
Hi @cvphelps, any ideas on the schedule for this bug and whether sprcifying the max_iter field in the sweep config also yields incorrect...
Read more >
HyperBand and BOHB: Understanding State of the Art ...
If you want to learn about state-of-the-art hyperparameter optimization algorithms (HPO), in this article I'll tell you what they are and ...
Read more >
HYPERBAND: BANDIT-BASED CONFIGURATION EVAL
HYPERBAND is a principled early-stoppping method that adaptively allocates a pre- defined resource, e.g., iterations, data samples or number of features, to ...
Read more >
Introduction to the Keras Tuner | TensorFlow Core
The Hyperband tuning algorithm uses adaptive resource allocation and early-stopping to quickly converge on a high-performing model. This is done using a sports ......
Read more >
Hyperband: A Novel Bandit-Based Approach to ...
the best of our knowledge, this is also the first work to test out such an algorithm on a real application. 3. Hyperband...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found