gbm_2way | R Documentation |
Computes Friedman's H-statistic (Friedman & Popescu, 2008) for all pairwise
interaction effects in a gbm
model.
gbm_2way(object, data, var.names = object$var.names, n.trees = object$n.trees)
object |
A |
data |
Data frame containing the original training data (or representative sample thereof). |
var.names |
Character string specifying the predictor names to consider. |
n.trees |
Integer specifying the number of trees to use. |
A data frame with the following three columns:
The name of the first feature.
The name of the second feature.
The corresponding H-statistic.
The resulting rows are sorted in descending order of h
.
Friedman, J. H., & Popescu, B. E. (2008). Predictive Learning via Rule Ensembles. The Annals of Applied Statistics, 2(3), 916–954. http://www.jstor.org/stable/30245114
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.