简体   繁体   English

使用条形图在 R 中绘制 CART 的变量重要性

[英]Plotting variable importance for CART in R using bar graphs

How can I plot variable importance for a decision tree (CART) in R?如何在 R 中对决策树 (CART) 进行 plot 变量重要性? Since I am new to R, I need the code (if possible, I want to plot the relative importance score for each variable using bar graphs).由于我是 R 的新手,我需要代码(如果可能,我想使用条形图 plot 每个变量的相对重要性得分)。 Thanks in advance!提前致谢!

Noel O'Boyle has published some R code that implements variable importance in CART, here: Noel O'Boyle 发布了一些在 CART 中实现可变重要性的 R 代码,这里:

https://noel.redbrick.dcu.ie/R_classification.html https://noel.redbrick.dcu.ie/R_classification.html

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

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