tobigithub / caret-machine-learning

Practical examples for the R caret machine learning package
MIT License
67 stars 50 forks source link

rvmPoly #7

Open tobigithub opened 9 years ago

tobigithub commented 9 years ago

require(caret); data(BloodBrain); cvMethods <- c("boot632","LGOCV","LOOCV","cv","repeatedcv", "boot"); all <- lapply(cvMethods ,function(x) {set.seed(123); print(x); tc <- trainControl(method=(x))

  • fit1 <- train(bbbDescr, logBBB, trControl=tc, method="rvmPoly") }); all; [1] "boot632" Loading required package: kernlab [1] "LGOCV" [1] "LOOCV" Error in { : task 2 failed - "the leading minor of order 87 is not positive definite" In addition: There were 50 or more warnings (use warnings() to see the first 50)