recipes.cpc2.baseline.compute_haspi module

Compute the HASPI scores.

recipes.cpc2.baseline.compute_haspi.compute_haspi_for_signal(signal_name: str, path: dict) float[source]

Compute the HASPI score for a given signal.

Parameters:
  • signal (str) – name of the signal to process

  • path (dict) – paths to the signals and metadata, as defined in the config

Returns:

HASPI score

Return type:

float

recipes.cpc2.baseline.compute_haspi.parse_cec2_signal_name(signal_name: str) tuple[str, str, str][source]

Parse the CEC2 signal name.

recipes.cpc2.baseline.compute_haspi.run_calculate_haspi(cfg: DictConfig) None[source]

Run the HASPI score computation.

recipes.cpc2.baseline.compute_haspi.set_seed_with_string(seed_string: str) None[source]

Set the random seed with a string.