Thank you David and Max,

@David -  Thanks, I am already aware that I cannot *directly* pass
arguments to train to specify parameters controlling the method, and that
one has to pass those parameters via the tuneGrid argument to caret::train.
My question is about the method parameters that are *not* listed in the
CARET documentation but that the *original methods* support, such as
sampsize, nodesize (i.e. not just mtry) for randomForest.

Also, I don't think trainControl and preProcess are related to my question.
The function trainControl specifies the parameters that train uses for
model selection and preProcess is about preparing the data (regardless of
whatever method I use later for class or reg.)

@Max - Thanks a lot for your help. I have already been using that website
as a reference, and it's incredibly helpful. I have also been experimenting
with tuneGrid already. My question was specifically if tuneGrid (or caret
in general) supports passing method parameters to the method functions from
each package other than those listed in the CARET documentation (e.g. I
would like to specify sampsize and nodesize for randomForest, and not just
mtry).

Thanks,

James






On Wed, Feb 13, 2013 at 1:07 PM, Max Kuhn <mxkuhn@gmail.com> wrote:

> 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]]

