Skip to content

Commit

Permalink
fix(bo): Off-by-1 in range for generating new config_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Jan 26, 2025
1 parent 7755a73 commit 3d98089
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neps/optimizers/bayesian_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def __call__(

n_to_sample = 1 if n is None else n
n_sampled = len(trials)
config_ids = iter(str(i + 1) for i in range(n_sampled, n_sampled + n_to_sample))
config_ids = iter(
str(i + 1) for i in range(n_sampled, n_sampled + n_to_sample + 1)
)

# If the amount of configs evaluated is less than the initial design
# requirement, keep drawing from initial design
Expand Down

0 comments on commit 3d98089

Please sign in to comment.