Displaying 6 results from an estimated 6 matches for "polydot".
2012 May 05
2
Pasting with Quotes
Hello useRs!
So, I have a random question. I'm trying to build a character string, then
evaluate it. I think an example would be the easiest way to explain:
kern.vec = c("rbfdot","polydot")
for( j in 1:length( kern.vec ) )
{
formula = paste("ksvm( ind ~ . ,
data=d.temp[,c(ind_col,dep_cols)], kernel =",kern.vec[j],", prob.model=T )")
svm = eval( parse( text=formula ) )
...
}
The problem I always seem to have is that in the...
2008 Jun 25
1
stringdot
...ene.rbf <- ksvm(Class~.,data=promotergene,kernel="rbfdot",C=10,cross=5)# works fine with the rbf kernel
gene.string <- ksvm(Class~.,data=promotergene,kernel="stringdot",C=10,cross=5) # this give the following error
#Error in match.arg(kernel, c("rbfdot", "polydot", "tanhdot", "vanilladot", :
# 'arg' should be one of ?rbfdot?, ?polydot?, ?tanhdot?, ?vanilladot?, ?laplacedot?, ?besseldot?, ?anovadot?, ?splinedot?, ?matrix?
What am I doing wrong here?
Thanks ../Murli
2012 Aug 19
1
kernlab | ksvm error
Dear list,
I am using the ksvm function from kernlab as follows:
(1) learning
> svm.pol4 <- ksvm(class.labs ~ ., data = train.data, prob.model = T, scale
= T, kernel = "polydot")
(2) prediction
> svm.pol.prd4 <- predict(svm.pol4, train.data, type = "probabilities")[,2]
But unfortunately, when calling the prediction, once in every 10s of times
(using the exact same data), it returns the following error message:
Error in prob.model(object)[[p]]$A :...
2012 Nov 15
1
Can't see what i did wrong..
with
pred.pca<-predict(splits[[i]]$pca,trainingData at samples)[,1:nPCs]
dframe<-as.data.frame(cbind(pred.pca,class=isExplosive(trainingData,2)));
results[[i]]$classifier<-ksvm(class~.,data=dframe,scaled=T,kernel="polydot",type="C-svc",
C=C,kpar=list(degree=degree,scale=scale,offset=offset),prob.model=T)
and a degree of 5 i get an error of 0 reported by the ksvm object. But when doing
pred.pca<-predict(splits[[i]]$pca,trainingData at samples)[,1:nPCs]
pred.svm<-kernlab::predict(results[[i]]$...
2011 Jan 24
5
Train error:: subscript out of bonds
Hi,
I am trying to construct a svmpoly model using the "caret" package (please
see code below). Using the same data, without changing any setting, I am
just changing the seed value. Sometimes it constructs the model
successfully, and sometimes I get an ?Error in indexes[[j]] : subscript out
of bounds?.
For example when I set seed to 357 following code produced result only for 8
2010 Sep 24
0
kernlab:ksvm:eps-svr: bug?
...tol = 0.001,
63 shrinking = TRUE,
64 ...
65 ,subset
66 ,na.action = na.omit)
67 {
...
74 sparse <- FALSE
75
76 if(is.character(kernel)){
77 kernel <- match.arg(kernel,c("rbfdot","polydot","tanhdot","vanilladot","laplacedot","besseldot","anovadot","splinedot","matrix"))
78
79 if(kernel == "matrix")
80 if(dim(x)[1]==dim(x)[2])
81 return(ksvm(as.kernelMatrix(x), y =...