Skip to content

Commit

Permalink
fix(automl/tuners): ensure that the checkpoint file parents exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ruancomelli committed Jul 3, 2022
1 parent 5b9fe5f commit 2d92445
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion boiling_learning/automl/tuners.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def _build_and_fit_model(
)

def _get_checkpoint_fname(self, trial_id: str) -> str:
return str(resolve(super()._get_checkpoint_fname(trial_id)).with_suffix('.h5'))
return str(
resolve(super()._get_checkpoint_fname(trial_id), parents=True).with_suffix('.h5')
)


class _FixedMaxModelSizeGreedy(_SaveBestModelAtTrainingEnd):
Expand Down

0 comments on commit 2d92445

Please sign in to comment.