checkpoint
deepdrivewe.checkpoint ¶
Checkpointing for the weighted ensemble.
EnsembleCheckpointer ¶
Checkpointer for the weighted ensemble.
Source code in deepdrivewe/checkpoint.py
save ¶
Save the weighted ensemble to a checkpoint file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
weighted_ensemble
|
WeightedEnsemble
|
The weighted ensemble to save to the checkpoint file. |
required |
Source code in deepdrivewe/checkpoint.py
load ¶
Load the weighted ensemble from a checkpoint file.
Returns:
| Type | Description |
|---|---|
WeightedEnsemble
|
The weighted ensemble loaded from the checkpoint file. |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If no checkpoint file is found. |
Source code in deepdrivewe/checkpoint.py
latest_checkpoint ¶
Return the latest checkpoint file.
Returns:
| Type | Description |
|---|---|
Path or None
|
The latest checkpoint file or None if no checkpoint file exists. |