Displaying 1 result from an estimated 1 matches for "syncat".
2012 Feb 02
1
knncat broken on R 2.14?
...into the verbose option.
2. It seems to just predict everything to be class "0".
3. I can see this problem even when running the example
script under ?knncat.
Given example from ?knncat, and expected behavior:
=======================
library(knncat)
library(MASS) # Load data set
syncat <- knncat (synth.tr, classcol=3)
## Not run: syncat
Train set misclass rate: 12.8
synpred <- predict (syncat, synth.tr, synth.te,
train.classcol=3,
newdata.classcol=3)
table (synpred, synth.te$yc)
synpred 0 1
0 460 91
1 40 409
=======================...