gpt4 book ai didi

r - R : regression vs classification 中的树

转载 作者:行者123 更新时间:2023-12-02 22:11:24 25 4
gpt4 key购买 nike

我在 R 中使用树库,但是当我将数据放入树命令时,有时会得到回归树,有时会得到分类树。这是关于什么的?谢谢!

最佳答案

来自帮助页面(?tree)

The left-hand-side (response) should be either a numerical vector when a regression tree will be fitted or a factor, when a classification tree is produced.

关于r - R : regression vs classification 中的树,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15249608/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com