torchsig.datasets.datasets.apply_label_to_signal¶
- torchsig.datasets.datasets.apply_label_to_signal(sample: Signal, target_label: str) list[source]¶
Recursively applies the specified label to a signal sample and its components.
- Parameters:
sample – The signal sample to apply the label to.
target_label – The label that should be used to identify relevant values in the signal sample.
- Returns:
A list of values corresponding to the label specified in the sample and its component signals.