Skip to content

Commit

Permalink
Budget id >= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
karibbov committed Nov 6, 2023
1 parent fe782b6 commit 46c6128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neps/optimizers/multi_fidelity/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def get_partial_configs_at_max_seen(self):
def extract_learning_curve(self, config_id: int, budget_id: int) -> list[float]:
# reduce budget_id to discount the current validation loss
# both during training and prediction phase
budget_id = budget_id - 1
budget_id = max(0, budget_id - 1)
if self.lc_col_name in self.df.columns:
lc = self.df.loc[(config_id, budget_id), self.lc_col_name]
else:
Expand Down

0 comments on commit 46c6128

Please sign in to comment.