Table 6.
Parameter settings of the optimized kNN for each dataset.
Dataset | Number of Neighbors | Distance Metric | Distance Weight | Standardize Data |
---|---|---|---|---|
All | 16 | Spearman | Inverse | TRUE |
Caucasian | 6 | Correlation | Squared Inverse | TRUE |
Hispanic | 32 | Cityblock | Squared Inverse | TRUE |
Females | 4 | Hamming | Squared Inverse | FALSE |
Males | 22 | Cityblock | Equal | FALSE |
Age ≤ 50 | 14 | Cosine | Squared Inverse | TRUE |
Age > 50 | 31 | 16 | Squared Inverse | TRUE |