build_model: Build a model with feature selection and tuning

Description Usage Arguments Details Value

View source: R/build_model.R

Description

build_model integrates caret's recursive feature elimination with tuning from [tune()].

Usage

1
build_model(model_method, ...)

Arguments

model_method

The method used. See [eval_model()] for options.

...

Additional arguments to pass to model-building. Includes the parameters to test as well as details for resampling. Can also include controls for [caret::rfe()] passed as objects created from [caret::rfeControl()] to the argument rfe_ctrl.

Details

This tends to be very time-consuming. It is only implemented for "rf". It is suggested to run recursive feature elimination for all model methods once and use those predictors for future model-building.

Value

An object of S3 class "tune". See [tune()] for more details.


awqx/qsarr documentation built on Oct. 2, 2021, 7:05 a.m.