sdq.io.Version#
- class scdiffeq.io.Version(path: Path | str = None, groupby: str = 'epoch', *args, **kwargs)[source]#
scDiffEq Version object container
Instantiate Version by providing a path
- Parameters:
- Return type:
None
- __init__(path: Path | str = None, groupby: str = 'epoch', *args, **kwargs)[source]#
Instantiate Version by providing a path
- property hparams#
Check if the .yaml exists and instantiate the HParams class each time
- Returns:
Instance of HParams class if hparams.yaml exists
- Return type:
- property metrics_df: DataFrame#
Check if metrics.csv path exists and read it
- Returns:
DataFrame containing the metrics if metrics.csv exists
- Return type:
pd.DataFrame
- property per_epoch_metrics#
Group metrics by the specified groupby attribute
- Returns:
Instance of GroupedMetrics class
- Return type:
GroupedMetrics