tests/testthat/test_featrank_randomForest.R

# TODO: switch to a less problematic demo dataset.
data(Boston, package = "MASS")

# Use "chas" as our outcome variable, which is binary.
x = subset(Boston, select = -chas)
y = Boston$chas
family = binomial()

# random forest
# These aren't named currently.
(res2 = featrank_randomForest(y, x, family, ntree = 10))
ck37/featurerank documentation built on April 12, 2022, 12:24 a.m.