Description Usage Arguments Value Examples
View source: R/hyperparameters.R
Tuning number of trees hyperparameter. Trains random forests with a range of number of trees so the optimal number can be identified (using the resulting plot) with cross validation
1 2 3 4 5 6 7 | selectrfnumtrees(
data,
maxnum = 100,
title = "",
showplots = TRUE,
output_prefix = ""
)
|
data |
Dataset: dataframe containing classification column and all other column features. Both the training and test datasets will be taken from this dataset. |
maxnum |
Maximum number of trees to be considered. All numbers between 1 and maxnum will be considered. Default: 100. |
title |
Title to be used for the resulting boxplot |
showplots |
TRUE if plots should be shown in standard output, FALSE is plots should be saved as jpg files. Default: TRUE. |
output_prefix |
Prefix used for saving plots. If showplots==FALSE then plots are saved here. Otherwise, standard output. |
Dataframe containing test and training accuracy, sensitivity and specificity
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.