torchsig.utils.yamlΒΆ

YAML utilities

Functions

custom_representer

Custom representer for YAML to handle sequences (lists).

dataset_from_yaml_dict

Creates a TorchSigIterableDataset from a YAML dictionary.

dataset_metadata_to_yaml_dict

Converts DatasetMetadata to a dictionary for YAML storage.

load_dataset_yaml

Loads YAML data from specified filepath and constructs a dataset.

save_dataset_yaml

Saves dataset configuration to a YAML file.

write_dict_to_yaml

Writes a dictionary to a YAML file with customized settings.