Displaying 2 results from an estimated 2 matches for "modelindex".
2003 Oct 17
1
Modifying dim attribute of elements of a list
...am creating lists of vectors withing a loop. I also would like to
change the dim attribute to the vectors in order to make them
matrices.
I have tried the following, but it doesn't work...
> sim <- c('simMeans','simVars','simWeights')
> indexTable <- table(modelIndex)
> for (i in sim) {
+ assign(tmp <- paste(i,'By',sep=''),split(get(i), modelIndex))
+ lapply(seq(along=indexTable),function(j) attr(get(tmp)[[j]],'dim') <<- c(indexTable[j],K))
+ }
Error in FUN(X[[1]], ...) : couldn't find function "get<-"...
2013 Nov 15
1
Inconsistent results between caret+kernlab versions
I'm using caret to assess classifier performance (and it's great!). However, I've found that my results differ between R2.* and R3.* - reported accuracies are reduced dramatically. I suspect that a code change to kernlab ksvm may be responsible (see version 5.16-24 here: http://cran.r-project.org/web/packages/caret/news.html). I get very different results between caret_5.15-61 +