Learn R Programming

forestControl (version 0.2.2)

fpr_fs: False Postivie Rate Feature Selection

Description

Calculate the False Positive Rate (FPR) for each feature using it's selection frequency

Usage

fpr_fs(x)

Arguments

x

a randomForest or ranger object

Value

a tibble of selection frequencies and their false positive rate

Examples

Run this code
# NOT RUN {
library(randomForest)
data(iris)
iris.rf <- randomForest(iris[,-5], iris[,5], forest = TRUE)

iris.features <- fpr_fs(iris.rf)
print(iris.features)
# }

Run the code above in your browser using DataLab