[英]Reducing the size of Random Forest tree plot in R
I plotted random forest tree using reprtree package as below,我使用 reprtree 包绘制了随机森林树,如下所示,
model23 <- randomForest(active ~ total_gross_amt + frequency + t_shirt, data = mydata)
reprtree:::plot.getTree(model23)
Random Forest Tree Plot :随机森林树图:
But I am not able to interpret anything from the tree.但是我无法从树中解释任何内容。
Is there anyway by which the tree size could be reduced or any other method by which a single random forest tree could be plotted in R with code?无论如何可以减少树的大小或任何其他方法可以使用代码在R中绘制单个随机森林树?
Thanks in advance.提前致谢。 Balaji
巴拉吉
2 years late, but it might help someone else.晚了 2 年,但它可能会帮助其他人。
Go to plots tab > export > save as image > width = 1500, height = 900, don't forget to tick "view plot after saving" and click save转到绘图选项卡 > 导出 > 另存为图像 > 宽度 = 1500,高度 = 900,不要忘记勾选“保存后查看绘图”并单击保存
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.