powered by
Extract variable selection frequencies from randomForest and ranger model objects
randomForest
ranger
selection_freqs(x)
a randomForest or ranger object
tibble of variable selection frequencies
tibble
# NOT RUN { library(randomForest) data(iris) iris.rf <- randomForest(iris[,-5], iris[,5], forest = TRUE) iris.freqs <- selection_freqs(iris.rf) print(iris.freqs) # }
Run the code above in your browser using DataLab