deepcave.runs.converters.optuna¶
# OptunaRun
This module provides utilities to create an Optuna run.
- ## Classes
OptunaRun: Define an Optuna run object.
Classes
|
Define an Optuna run object. |
- class deepcave.runs.converters.optuna.OptunaRun(name, configspace=None, objectives=None, meta=None, path=None)[source]¶
Bases:
Run
Define an Optuna run object.
Properties¶
- pathPath
The path to the run.
- classmethod from_path(path)[source]¶
Based on working_dir/run_name/*, return a new trials object.
- Parameters:
path (Union[Path, str]) – The path to base the trial object on.
- Return type:
The Optuna run.
- Raises:
RuntimeError – Instances are not supported.
- property hash: str¶
Hash of the current run.
If the hash changes, the cache has to be cleared. This ensures that the cache always holds the latest results of the run.
- Returns:
The hash of the run.
- Return type:
str
- property latest_change: float | int¶
Get the timestamp of the latest change.
- Returns:
The latest change.
- Return type:
Union[float, int]