[R] caret - prevent resampling when no parameters to find

pdb philb at philbrierley.com
Sun May 1 23:57:52 CEST 2011


I want to use caret to build a model with an algorithm that actually has no
parameters to find. 

How do I stop it from repeatedly building the same model 25 times?


library(caret)
data(mdrr)
LOGISTIC_model <- train(mdrrDescr,mdrrClass
                        ,method='glm'
                        ,family=binomial(link="logit")
                        )
LOGISTIC_model

528 samples
342 predictors
  2 classes: 'Active', 'Inactive' 

Pre-processing: None 
Resampling: Bootstrap (25 reps) 

Summary of sample sizes: 528, 528, 528, 528, 528, 528, ... 

Resampling results

  Accuracy  Kappa   Accuracy SD  Kappa SD
  0.552     0.0999  0.0388       0.0776  --
View this message in context: http://r.789695.n4.nabble.com/caret-prevent-resampling-when-no-parameters-to-find-tp3488761p3488761.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list