gpt4 book ai didi

r - 随机森林参数 "keep.forest"的含义

转载 作者:行者123 更新时间:2023-11-30 09:53:25 28 4
gpt4 key购买 nike

在R包randomForest中,将参数keep.Forest设置为True有什么作用?

library(randomForest)
rf_model <- randomForest(rf_train_data$revenue ~ ., data= train_merged, keep.forest=TRUE, ntree=30)

最佳答案

来自RandomForest documentation :

keep.forest: If set to FALSE, the forest will not be retained in the output object. If xtest is given, defaults to FALSE.

关于r - 随机森林参数 "keep.forest"的含义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40419686/

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