powered by
yh_kNN(dfTr, dfTe, method = c("LOOCV", "MLE", "NN"), k=1)
yh_C50
yh_CART
yh_RF
yh_svm
yh_NB
yh_lda
yh_logistic
yh_qda
yh_kNN(SinghTrain[,c(1:10, 101)], SinghTest[,c(1:10, 101)])#0.088 yh_kNN(SinghTrain[,c(1:10, 101)], SinghTest[,c(1:10, 101)], method="NN")#0.088
Run the code above in your browser using DataLab