How to perform random forest/cross validation in R

后端 未结 2 1756
误落风尘
误落风尘 2021-01-31 05:08

I\'m unable to find a way of performing cross validation on a regression random forest model that I\'m trying to produce.

So I have a dataset containing 1664 explanatory

2条回答
  •  无人及你
    2021-01-31 05:53

    From the source:

    The out-of-bag (oob) error estimate

    In random forests, there is no need for cross-validation or a separate test set to get an unbiased estimate of the test set error. It is estimated internally , during the run...

    In particular, predict.randomForest returns the out-of-bag prediction if newdata is not given.

提交回复
热议问题