The documentation for caret::train shows a list of parameters that one can tune for each method classification/regression method. For example, for the method randomForest one can tune mtry in the call to train. But the function call to train random forests in the original package has many other parameters, e.g. sampsize, maxnodes, etc. Is there **any** way to access these parameters using train in caret? (Is the function caret::createGrid limited to the list of parameters specified in the caret documentation, it's not super clear if the list of parameter is for all the caret APIs). Thanks, James, [[alternative HTML version deleted]]
David Winsemius
2013-Feb-13 17:50 UTC
[R] CARET: Any way to access other tuning parameters?
On Feb 13, 2013, at 6:58 AM, James Jong wrote:> The documentation for caret::train shows a list of parameters that one can > tune for each method classification/regression method. For example, for > the method randomForest one can tune mtry in the call to train. But the > function call to train random forests in the original package has many > other parameters, e.g. sampsize, maxnodes, etc. > > Is there **any** way to access these parameters using train in caret? (Is > the function caret::createGrid limited to the list of parameters specified > in the caret documentation, it's not super clear if the list of parameter > is for all the caret APIs).Have you looked at the argument list in ?train: ... arguments passed to the classification or regression routine (such as randomForest). Errors will occur if values for tuning parameters are passed here. Also look at: ? trainControl ? preProccess -- David Winsemius Alameda, CA, USA
James, You really need to read the documentation. Almost every question that you have has been addressed in the existing material. For this one, there is a section on custom models here: http://caret.r-forge.r-project.org/training.html Max On Wed, Feb 13, 2013 at 9:58 AM, James Jong <ribonucleico@gmail.com> wrote:> The documentation for caret::train shows a list of parameters that one can > tune for each method classification/regression method. For example, for > the method randomForest one can tune mtry in the call to train. But the > function call to train random forests in the original package has many > other parameters, e.g. sampsize, maxnodes, etc. > > Is there **any** way to access these parameters using train in caret? (Is > the function caret::createGrid limited to the list of parameters specified > in the caret documentation, it's not super clear if the list of parameter > is for all the caret APIs). > > Thanks, > > James, > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Max [[alternative HTML version deleted]]