View source: R/estimate_numtrees.R
estimate_numtrees | R Documentation |
Estimate the number of trees required to achieve certain stability of random forest
estimate_numtrees(
optRF_object,
measure = c("selection", "importance", "prediction"),
for_stability = 0.95
)
optRF_object |
An optRF_object, either the result from the opt_importance or the opt_prediction function. |
measure |
A character string indicating which stability measure is to be analysed. One of "selection" (default, analyses selection stability), "prediction" (analyses prediction stability) or "importance" (analyses variable importance stability). |
for_stability |
Either a single stability value or a vector containing multiple stability values for which the number of trees should be estimated. |
A data frame summarising the estimated stability and run time in seconds for the given num.trees values.
## Not run:
data(SNPdata)
set.seed(123)
result_optpred = opt_prediction(y = SNPdata[,1], X=SNPdata[,-1]) # optimise random forest
estimate_numtrees(result_optpred, measure="prediction", for_stability=0.95)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.