Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/1179 #1186

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Migrate sphinx docs to mkdocs (#1155)

## Bugfixes
- Fix bug with HyperBand setup given a total budget (#1179)
- Fix kwargs for DifferentialEvolution (#1187)

# 2.2.1
Expand Down
6 changes: 5 additions & 1 deletion smac/intensifier/hyperband_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ def determine_HB(min_budget: float, max_budget: float, eta: int = 3) -> dict:
_max_iterations[i] = max_iter + 1

total_trials = np.sum([np.sum(v) for v in _n_configs_in_stage.values()])
total_budget = np.sum([np.sum(v) for v in _budgets_in_stage.values()])

total_budget = 0
for stage in _n_configs_in_stage.keys():
for b, c in zip(_budgets_in_stage[stage], _n_configs_in_stage[stage]):
total_budget += b * c

return {
"max_iterations": _max_iterations,
Expand Down
Loading