I'm using gausspr
function from the kernlab
package for Gaussian process classification, and running into the following error message:
Error in votematrix[i, ret > 0] : (subscript) logical subscript too long
anytime I try to use the classifier to make predictions on a dataset that has more observations than the training set. Here's a very simple example to reproduce this problem:
data(iris)
gp1 = gausspr(Species ~., data=iris)
predict(gp1,iris[c(1:150,1),-5])
Has anyone else run into this problem? Any insights into how to get around it other than calling predict many times on smaller subsets of the test data?
Thanks!