Algorithm 1. Forward stepwise subset selection. |
Variables: |
—Candidate set |
—Target set |
—Single-lead ECG |
—F1 scores for the addition of single-lead ECG |
—The best F1 scores in step i
|
—The p-value measuring the improvement for the addition of single-lead ECG |
—The best single-lead ECG in step i
|
Pseudo code: |
Initialize |
, ,
|
For i in 1:12 |
For in
|
Calculate by training a model using for 10 times |
Calculate by conducting t-tests between and
|
If min < 0.05 |
Xbest,i = argmin(PECG) |
Remove from , Add to
|
|
Else |
Break |
Output as the optimal subset |