I am experimenting with gaussian process model and in particular the implementation in the kernlab R package. I found the model fitting hangs when excised with linear kernels. Profiling shows it is busy doing matrix multiplication via operator "%*%". A reproducible example is given below:
data(iris)
#this doesn't hang
test <- kernlab::gausspr(Species~.,data=iris,type="classification",kernel="rbfdot")
#this hangs with message "Setting default kernel parameters"
test <- kernlab::gausspr(Species~.,data=iris,type="classification",kernel="vanilladot")
#this also hangs
test <- kernlab::gausspr(Species~.,data=iris,type="classification",kernel="polydot", kpar=list(degree=1))
#this doesn't hang
test <- kernlab::gausspr(Species~.,data=iris,type="classification",kernel="polydot", kpar=list(degree=2))
Any idea what is going on here? Many thanks!