torch_ecg.utils.compute_wave_delineation_metrics#
- torch_ecg.utils.compute_wave_delineation_metrics(truth_masks: Sequence[ndarray[tuple[Any, ...], dtype[_ScalarT]]], pred_masks: Sequence[ndarray[tuple[Any, ...], dtype[_ScalarT]]], class_map: Dict[str, int], fs: Real, mask_format: str = 'channel_first', tol: Real = 0.15) Dict[str, Dict[str, float]][source]#