You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can get ECG representations using for example [get_representations.py(ecgs, model_name='c3po_pclr')](./get_representations.py).
115
+
`get_representations.get_representations` builds `N x 320` ECG representations from `N` ECGs.
116
+
117
+
The model expects 10s 12-lead ECGs measured in milli-volts with a specific lead order and interpolated to be 2,500 samples long. Note that this interpolation is different from the standard PCLR model.
118
+
[preprocess_ecg.py](./preprocess_ecg.py) shows how to do the pre-processing; when calling it remember to set `ecg_samples=2500`.
119
+
120
+
The code snippet above showing example inference with UKB ECGs is also appropriate for these models. Remember to:
121
+
1. Load `c3po_pclr.h5` or `aug_c3po_pclr.h5` instead of `PCLR.h5`.
122
+
2. Interpolate to 2500 instead of 4096.
123
+
106
124
## Alternative save format
107
125
The newer keras saved model format is available for the 12-lead and single lead models at [PCLR](./PCLR)
108
126
and [PCLR_lead_I](./PCLR_lead_I) and [PCLR_lead_II](./PCLR_lead_II).
0 commit comments