[R] Predict function for 'newdata' of different dimension in svm

2006-03-31 Thread David Meyer
Sandra, hard to tell where the error message originates from without having the data at hand (perhaps you could provide that to me off-list?), but I am almost sure things will work when you train the model the standard way: cd1.svm-svm(Acode~EXT+TOF, data = boot.dist.dat, cost=100, gamma=20)

[R] Predict function for 'newdata' of different dimension in svm

2006-03-30 Thread mcbride
I am using the predict function on a support vector machine (svm) object, and I don't understand why I can't predict on a dataset with more observations than the training dataset. I think this problem is a generic predict problem, but I'm not sure. The original svm was fit on 50 observations.