全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
5173 6
2018-06-13
用R语言中randomForest包做回归预测时没发现oob error,请问是什么原因呢?怎么求oob error?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2018-6-13 13:59:53
randomForest()函数的参数设置正确吗?截图看看~‘
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2018-6-13 15:05:57
ckevinit 发表于 2018-6-13 13:59
randomForest()函数的参数设置正确吗?截图看看~‘
新手,参数也不知道怎么设置,照着例子学的,还请您多多帮忙。
复制代码
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2018-6-13 16:42:51
新手,参数也不知道怎么设置???得到randomForest包做回归预测时没发现oob error,与参数设定有啥子关系??

(randomForest) Value
An object of class randomForest, which is a list with the following components:
。。。
。。
err.rate    (classification only) vector error rates of the prediction on the input data, the i-th
               element being the (OOB) error rate for all trees up to the i-th.
confusion   (classification only) the confusion matrix of the prediction (based on OOB data).
votes         (classification only) a matrix with one row for each input data point and one
                 column for each class, giving the fraction or number of (OOB) ‘votes’ from the
                   random forest.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2018-6-13 16:44:33
西湖断桥 发表于 2018-6-13 15:05
新手,参数也不知道怎么设置,照着例子学的,还请您多多帮忙。
你的最后预测结果是 test 集的预测,非OOB 预测结果。。。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2018-6-13 16:49:51
jgchen1966 发表于 2018-6-13 16:44
你的最后预测结果是 test 集的预测,非OOB 预测结果。。。
randomForest 模型结果中必会有 :
predicted    the predicted values of the input data based on out-of-bag samples.

这个predicted才是OOB预测结果。。。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群