[R] BreastCancer Dataset for Classification in kknn

2010-06-01 Thread Nitin
Dear All, I'm getting a error while trying to apply the BreastCancer dataset (package=mlbench) to kknn (package=kknn) that I don't understand as I'm new to R. The codes are as follow: rm = (list = ls()) library(mlbench) data(BreastCancer) library(kknn) BCancer = na.omit(BreastCancer) d =

Re: [R] BreastCancer Dataset for Classification in kknn

2010-06-01 Thread Joris Meys
Hi Nitin, It can be solved by splitting your data a bit different. You need more training data than you have evaluation data, eg : i1 = 1:400 i2=401:d Then it works on my computer. No clue as to where the error originates from though. Cheers Joris On Tue, Jun 1, 2010 at 4:27 PM, Nitin