Description Usage Arguments Value
Iteratively grow feature weighted random forests and search for prevalent interactions on decision paths.
1 2 3 4 5 6 7 8 | iRF(x, y, xtest = NULL, ytest = NULL, n.iter = 5, ntree = 500,
mtry.select.prob = rep(1, ncol(x)), iter.return = n.iter,
int.return = NULL, select.iter = FALSE, rit.param = list(depth = 5,
ntree = 500, nchild = 2, class.id = 1, min.nd = 1, class.cut = NULL),
varnames.grp = colnames(x), n.bootstrap = 1, bs.sample = NULL,
weights = rep(1, nrow(x)), signed = TRUE, oob.importance = TRUE,
type = "randomForest", verbose = TRUE, n.core = 1,
interactions.return = NULL, wt.pred.accuracy = NULL, ...)
|
x |
numeric feature matrix. |
y |
response vector. If factor, classification is assumed. |
xtest |
numeric feature matrix for test set. |
ytest |
response vector for test set. |
n.iter |
number of iterations to run. |
ntree |
number of random forest trees. |
mtry.select.prob |
feature weights for first iteration. Defaults to equal weights |
iter.return |
which iterations should the RF be returned for. Defaults to iteration with highest OOB accuracy. |
int.return |
which iterations should interacitons be returned for. |
select.iter |
if TRUE, returns interactions from iteration with highest OOB accuracy. |
rit.param |
named list specifying RIT parameters. Entries include
|
varnames.grp |
grouping "hyper-features" for RIT search. Features with the same name will be treated as identical for interaction search. |
n.bootstrap |
number of bootstrap samples to calculate stability scores. |
bs.sample |
list of observation indices to use for bootstrap samples. If NULL, iRF will take standard bootstrap samples of observations. |
weights |
numeric weight for each observation. Leaf nodes will be sampled for RIT with probability proprtional to the total weight of observations they contain. |
signed |
if TRUE, signed interactions will be returned. |
oob.importance |
if TRUE, importance measures are evaluated on OOB samples. |
verbose |
if TRUE, display progress of iRF fit. |
n.core |
number of cores to use. If -1, all available cores are used. |
... |
additional arguments passed to iRF::randomForest. |
A list containing the following entries:
rf.lista list of randomForest objects
interactiona data table containing recovered interactions and importance scores
selected.iteriterations returned by iRF
weightsfeature weights used to fit each entry of rf.list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.