search for: cvtype

Displaying 2 results from an estimated 2 matches for "cvtype".

Did you mean: ctype
2007 Jan 22
0
Recursive-SVM (R-SVM)
...<- vector() x[1] <- Ntotal for( i in 1:100 ) { pp <- round(x[i] * pRatio) if( pp == x[i] ) { pp <- pp-1 } if( pp >= Nmin ) { x[i+1] <- pp } else { break } } x } ## R-SVM core code ## input: ## x: row matrix of data ## y: class label: 1 / -1 for 2 classes ## CVtype: ## integer: N fold CV ## "LOO": leave-one-out CV ## "bootstrape": bootstrape CV ## CVnum: number of CVs ## LOO: defined as sample size ## Nfold and bootstrape: user defined, default as sample size ## output: a named list ## Error: a vector of CV error on each level ##...
2008 Feb 05
0
Uninformative error msgs w/ svm.default - Error in svm.default ... y must be a vector or a factor -
...1 1 > > m.cl.f [1] 1 1 1 1 1 -1 -1 -1 -1 -1 Levels: -1 1 > mode(m.cl.f) [1] "numeric" the rSVM function is called as such (it is a wrapper for svm in e1071, which then calls low-level svm.default ) - > rsvm_output <- RSVM(x=svm_num_mat, y=m.cl.f, ladder=laddy, CVtype="LOO" ) Error in svm.default(xTrain[, SelInd], yTrain, scale = F, type = "C-classification", : y must be a vector or a factor. ....the 'laddy' variable just specifies a recursive parameter for the overlying rSVM procedure - here, it calls the 1st round w/ all 123...