Feature selection with KNN
2 views (last 30 days)
Show older comments
Hello All,
I am trying to use feature selection with KNN classifier
fun1 = @(XT,yT,Xt,yt)... (sum((yt ~= knnclassify(Xt,XT,yT)))); [fs,history] = sequentialfs(fun1,XT,yT,'cv',c1,'options',opts,'direction','forward')
But, I am getting an error which says knn classify is not a valid function. Can you suggest any solution for that?
1 Comment
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!