extract_params: Extract forest parameters

Description Usage Arguments Value Author(s) Examples

View source: R/extract_params.R

Description

For a randomForest or ranger classification object, extract the parameters needed to calculate an approximate selection frequency threshold

Usage

1

Arguments

x

a randomForest, ranger or parsnip object

Value

a list of four elements

Author(s)

Tom Wilson tpw2@aber.ac.uk

Examples

1
2
3
4
5
6
library(randomForest)
data(iris)
iris.rf <- randomForest(iris[,-5], iris[,5], forest = TRUE)

iris.params <- extract_params(iris.rf)
print(iris.params)

aberHRML/forestControl documentation built on Feb. 14, 2022, 11:56 p.m.