@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).
>
>
Yes. A custom method is how you do that.


> Thanks,
>
> James
>
>
>
>
>
>
> On Wed, Feb 13, 2013 at 1:07 PM, Max Kuhn <mxk...@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 <ribonucle...@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
>>
>
>


-- 

Max

        [[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.

Reply via email to