我很困惑随机森林是否需要显式交叉验证?在随机森林中,我们有 Out of Bag 样本,这可用于计算测试精度。是否需要显式交叉验证。在随机森林中明确使用 CV 有什么好处吗?我发现根据此代码理解随机森林中的 CV 是如何工作的很令人困惑这是我的代码:
model = BaggingClassifier(base_estimator=cart, n_estimators=num_trees, random_state=seed)
results = cross_validation.cross_val_score(model, X, Y, cv=kfold)
print(results.mean())
梵蒂冈之花
慕森卡
阿波罗的战车
相关分类