braintools.trainer.find_checkpoint#
- braintools.trainer.find_checkpoint(dirpath, pattern='*.ckpt', best=False, last=False)[source]#
Find a checkpoint file in a directory.
- Parameters:
- Returns:
Path to the found checkpoint, or None if not found.
- Return type:
Examples
>>> checkpoint = find_checkpoint('checkpoints/', best=True) >>> checkpoint = find_checkpoint('checkpoints/', last=True)