ray.train.trainer.BaseTrainer.can_restore
ray.train.trainer.BaseTrainer.can_restore#
- classmethod BaseTrainer.can_restore(path: Union[str, pathlib.Path]) bool [source]#
Checks whether a given directory contains a restorable Train experiment.
- Parameters
path – The path to the experiment directory of the Train experiment. This can be either a local directory (e.g., ~/ray_results/exp_name) or a remote URI (e.g., s3://bucket/exp_name).
- Returns
Whether this path exists and contains the trainer state to resume from
- Return type
bool