Description Usage Arguments Value See Also
View source: R/conditionalPrediction.R
Computes the prediction accuracy of a fitted Random Forest using only the leaf nodes for which the specified interaction falls on the decision path. For classification, accuracy is measured by AUROC. For regression, accuracy is measured by decrease in variance.
1 2 3 4 | conditionalPred(rfobj, rd.forest, x, y, ints,
varnames.group=NULL,
n.cores=1,
)
|
rfobj |
Fitted randomForest object |
rd.forest |
list as returned by |
x |
numeric matrix of predictors |
y |
response vector |
ints |
a character vector specifying interactions, features separated by
'_', as returned by |
n.perms |
number of times to permute data matrix |
varnames.grp |
If features can be grouped based on their demographics or correlation patterns, use the group of features or “hyper-feature”s to conduct random intersection trees |
n.cores |
number of cores to parallelize over |
A numeric vector of the same length as ints
giving the conditional
prediction accuracy for each interaction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.