Optimizing k-NN parameter k with cross-validation in R
kNN CLASSIFIERS ______ : Use your own data features / variables library(class) str(clean_nhanes) # distance metric only works with quantitative variables train_q % select(Age, AgeMonths, HHIncomeMid, Poverty, HomeRooms, Weight, Length, HeadCirc, Height, BMI, Pulse, BPSysAve, BPDiaAve, BPSys1, BPDia1, BPSys2, BPDia2, BPSys3, BPDia3, Testosterone, DirectChol, TotChol, UrineVol1, UrineFlow1, UrineV..
2020. 11. 2.