RPeaksDetectionOutput#
- class torch_ecg.components.RPeaksDetectionOutput(*args: Any, **kwargs: Any)[source]#
Bases:
BaseOutputClass that maintains the output of an R peaks detection task.
- Parameters:
rpeak_indices (Sequence[Sequence[int]]) – Rpeak indices for each batch sample.
prob (numpy.ndarray) – Probabilities at each time step (each sample point), of shape
(batch_size, signal_length).
- compute_metrics(fs: int, thr: float = 0.075) ClassificationMetrics[source]#
Compute metrics from the output.
- Parameters:
- Returns:
metrics – Metrics computed from the output.
- Return type: