Skip to content

Commit

Permalink
fix: Ensure we do the last intial design
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Aug 28, 2024
1 parent 8658d70 commit b135c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neps/optimizers/bayesian_optimization/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def ask(
self.initial_design_.extend(configs)

# If we havn't passed the intial design phase
if len(trials) < len(self.initial_design_):
if len(trials) <= len(self.initial_design_):
config = self.initial_design_[len(trials) - 1]
sample = SampledConfig(id=config_id, config=config, previous_config_id=None)
return sample, optimizer_state
Expand Down

0 comments on commit b135c74

Please sign in to comment.