树外分离准则

2024-05-20 16:05:52 发布

您现在位置:Python中文网/ 问答频道 /正文

据我所知,来自{}的{}通过进行随机拆分而工作,而不是最小化分类的基尼或回归的mae等度量

我不明白为什么会有criterion参数,因为分割的标准应该是随机的

这仅仅是为了代码兼容性,还是我遗漏了什么


Tags: 代码参数标准度量分类maecriterion遗漏
1条回答
网友
1楼 · 发布于 2024-05-20 16:05:52

我想你误解了这些分裂是随机的。根据User Guide对于极随机树:

As in random forests, a random subset of candidate features is used, but instead of looking for the most discriminative thresholds,

thresholds are drawn at random for each candidate feature

and

the best of these randomly-generated thresholds is picked as the splitting rule.

附加的ExtraTreesRegressor随机化涉及候选特征的阈值。但仍然必须确定哪一个提供了最佳分割。这就是为什么您仍然需要一个criterion来指定函数来评估分割的质量

相关问题 更多 >