pseudodynamics._config.ExperimentConfig¶
- class pseudodynamics._config.ExperimentConfig(config=None, args=None, model=None)[source]¶
Bases:
objectRecords and manages experiment configuration settings.
- find_lastest_ckpt()[source]¶
Find the ckpt file with the minimum val_loss.
Fallback: when val_loss was never logged (e.g. cord-blood PCA whose val_dataloader is empty), the ModelCheckpoint monitor fires no match and only
last.ckptexists (saved viasave_last=True). In that case we returnlast.ckptso eval does not fail with FileNotFoundError.
- from_json(file_path, main_dir='/home/docs/checkouts/readthedocs.org/user_builds/pseudodynamics-plus/envs/latest/lib/python3.13/')[source]¶
Load a saved experiment configuration from JSON file.
- Return type:
- Parameters:
- Args:
file_path: Path to the saved JSON configuration file
- Returns:
ExperimentConfig instance with loaded parameters
Methods table¶
Find the ckpt file with the minimum val_loss. |
|
|
Load a saved experiment configuration from JSON file. |
|
|
|
Saves configuration to JSON file. |
|
|
|
Returns all configurations as a dictionary. |
Methods¶
- ExperimentConfig.find_lastest_ckpt()[source]¶
Find the ckpt file with the minimum val_loss.
Fallback: when val_loss was never logged (e.g. cord-blood PCA whose val_dataloader is empty), the ModelCheckpoint monitor fires no match and only
last.ckptexists (saved viasave_last=True). In that case we returnlast.ckptso eval does not fail with FileNotFoundError.
- ExperimentConfig.from_json(file_path, main_dir='/home/docs/checkouts/readthedocs.org/user_builds/pseudodynamics-plus/envs/latest/lib/python3.13/')[source]¶
Load a saved experiment configuration from JSON file.
- Return type:
- Parameters:
- Args:
file_path: Path to the saved JSON configuration file
- Returns:
ExperimentConfig instance with loaded parameters