torchsig.utils.yaml.load_config_from_yaml

torchsig.utils.yaml.load_config_from_yaml(path: Path) TorchSigDatasetConfig[source]

Loads YAML dataset configuration from the specified filepath, extracts the dataset metadata for use in dataset construction, and configures sampling mode and output representation.

Parameters:

filepath – Path to the YAML file containing dataset metadata.

Returns:

A dictionary containing the dataset metadata extracted from the YAML file.