简体   繁体   English

游侠package中是否有一个R function可以组合两个随机森林Z20F35E630DAF3994DBFA8

[英]Is there an R function in the ranger package that can combine two random forest model?

Due to the size of my RAM, I decided to split my data into two and fit two different random forest models using the ranger r package.由于我的 RAM 的大小,我决定将我的数据分成两个并使用游侠 r package 拟合两个不同的随机森林模型。 Is there a function in ranger that allows me to combine these two models into onefor prediction? ranger 中是否有 function 允许我将这两个模型组合成一个进行预测?

Try using the stacks packages to create an ensemble model.尝试使用堆栈包创建一个集成 model。 Alternatively, do cross validation on with a sample of your data to train a number of models at a time and find the one that performs best on a holdout set.或者,对您的数据样本进行交叉验证,以一次训练多个模型,并找到在保持集上表现最佳的模型。 Check out parsnip from the tidymodels ecosystem.查看 tidymodels 生态系统中的欧洲防风草。

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

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