Views
No views yet
| Class | F1 |
|---|---|
| N — Normal | 0.99 |
| L — LBBB | 1.00 |
| R — RBBB | 1.00 |
| V — PVC | 0.98 |
| A — APC | 0.91 |
| Macro avg | 0.98 |
1from huggingface_hub import hf_hub_download
2import torch, json, pickle
3
4config = json.load(open(hf_hub_download("dheerajthuvara/ecg-arrhythmia-detection", "models/model_config.json")))
5encoder = pickle.load(open(hf_hub_download("dheerajthuvara/ecg-arrhythmia-detection", "models/label_encoder.pkl"), "rb"))
6# load model weights and run inference