I have a large data set (400k rows X 60 columns) that I'm trying to use to build a knn model. I'm using the caret
package version of knn
and the forward.search
method from the FSelector
package to eliminate variables via cross-validation. My problem is that once I use more than 20k lines of data I get a message about there being too many ties.
Currently I'm only checking k-values between 1-19 (and only odd #'s as they supposedly shrink risk of ties) and only using variables with > 2 levels.
Are there any other tweaks to using big chunks of data into a knn
?
EDIT: This is regression problem, not a classification problem.