View source: R/RandomForest_Functions.R
sa_rfreg | R Documentation |
Run random forest regression for train/hold sets labeled train.1 to train.i and hold.1 to hold.i. This function is built to run with Split dataset function in the rf_standard wrapper. If the user does not provide a custom directory name (requires input of date, dataframe.name, and predictors.name), this function requires interaction in the R console.
sa_rfreg(
vpred,
custom.name = FALSE,
date = "",
dataframe.name = "",
predictors.name = "",
mtry = 1:10,
ntree = (1:10) * 500,
nset = 10,
wd = getwd()
)
vpred |
Predictor variable as string. |
custom.name |
(Optional) |
date |
(Optional). If |
dataframe.name |
(Optional). If |
predictors.name |
(Optional). If |
mtry |
(Optional) Set range for optimization of mtry in randomForest function (predictor variables to use at each split). Recommend to determine using mtry.guide() Default: 1:10 |
ntree |
(Optional) Set range for optimization of ntrees in randomForest function, Default: (1:10)*500 |
nset |
Number of train/hold sets to try. |
wd |
[randomForest()], [mtry.guide()], [split.ratio()],[rf_standard()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.