how to find important variable using knn in R

余生长醉 提交于 2019-12-24 22:16:12

问题


I want to upgrade accuracy using KNN algorithm.

I have 23 factors(sex, age, payment, education etc...)

Problem is there are too many variables so i want to know which are effective variables.

[info]

  • dataset -> 10000 row, 24 column

  • last column is default(1=yes, 0=no)

I divided 7000 for training set and 3000 for test set. When i use all variables, i got error classification about 1000. Also, using ROC Curve shows 800 error. But i want to reduce error rate more. What method i can do?? If you write code example, it will be helpful!! :)

来源:https://stackoverflow.com/questions/52878066/how-to-find-important-variable-using-knn-in-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!