utils.load_multiple_runs#

utils.load_multiple_runs(paths: List[str | Path], labels: List[str] = None) DataFrame[source]#

Load multiple runs into single DataFrame for comparison.

Parameters:
pathslist of str or Path

Paths to HDF5 files.

labelslist of str, optional

Labels for each run. If None, uses filenames.

Returns:
pd.DataFrame

Combined DataFrame with ‘run’ column for distinguishing runs.

Examples

>>> df = load_multiple_runs(
...     ['run1.h5', 'run2.h5'],
...     labels=['32x32', '64x64']
... )
>>> sns.lineplot(data=df, x='iteration', y='residual', hue='run')