简体   繁体   English

R中的增强树和可变交互

[英]Boosted trees and Variable Interactions in R

How can one see in a Boosted trees classification model for machine learning (adaboost), which variables interact with each other and how much? 人们如何在用于机器学习的Boosted树分类模型中看到(adaboost),哪些变量相互影响以及相互作用多少? I would like to make use of this in R gbm package if possible. 如果可能的话,我想在R gbm包中使用它。

To extract the interaction between input variables, you can use any package like lm. 要提取输入变量之间的交互,可以使用lm之类的任何程序包。 http://www.r-bloggers.com/r-tutorial-series-regression-with-interaction-variables/ http://www.r-bloggers.com/r-tutorial-series-regression-with-interaction-variables/

You can use ?interact.gbm. 您可以使用?interact.gbm。 See also this cross-validated question, which directs to a vignette of a related technique from the package dismo . 参见交叉验证问题,其引导到一个小插图从封装dismo相关技术的。

In general, these interactions may not necessarily agree with the interaction terms estimated in a linear model. 通常,这些交互可能不一定与线性模型中估计的交互项一致。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM