随机森林中需要多少棵树?一种结合平台搜索与Optuna集成的重新审视方法
How Many Trees in a Random Forest? A Revisited Approach with Plateau Search and Optuna Integration
AI总结:
提出一种基于三元组平台搜索的算法,通过监控袋外分数的相对变化自动确定随机森林的树数量,避免预设搜索范围,并提供了理论分析和实验验证。
摘要:
随机森林的超参数优化在调整树数量时面临一个特定困难:预测分数通常随集成规模单调提升,因此诸如树结构Parzen估计器(TPE)和Hyperband等标准方法需要预定义搜索范围,且往往将估计推向其右边界。早停策略避免了固定这样的范围,但对分数噪声敏感且容易过早停止。为解决此问题,我们提出一种集成的基于三元组的平台搜索算法,该算法将树数量从直接TPE搜索空间中移除,同时仍利用跨HPO试验积累的信息。该方法通过监控三个森林规模上的袋外(OOB)分数相对变化,自适应地跟踪接近最小的充分集成规模,并相应移动该三元组。这产生了一个基于容差参数的自动化且用户可解释的过程。我们还提供了理论分析:我们将所提出的相对OOB分数准则与当前分数和极限分数之间的差距联系起来,并推导了相应的基于OOB的绝对相对差异的渐近方差估计。实验表明,所选树数量可能与常见启发式方法有显著差异:对于大多数经典基准数据集,它更小;而对于一些高维生物信息学数据集(如Arcene和Dorothea),则更大。源代码和可重复实验可在以下网址获取:https://github.com/your-repo。
英文摘要:
Hyperparameter optimization (HPO) for Random Forest faces a specific difficulty in tuning the number of trees: the predictive score typically improves monotonically with ensemble size, so standard methods such as Tree-structured Parzen Estimator (TPE) and Hyperband require a predefined search range and often drive the estimate toward its right boundary. Early-stopping strategies avoid fixing such a range, but can be sensitive to score noise and prone to premature stopping. To address this, we propose an integrated triplet-based plateau-search algorithm that removes the number of trees from the direct TPE search space and still exploits information accumulated across HPO trials. The method adaptively tracks a near-minimal sufficient ensemble size by monitoring relative changes in the out-of-bag (OOB) score across a triplet of forest sizes and shifting this triplet accordingly. This yields an automated and user-interpretable procedure based on a tolerance parameter. We also provide a theoretical analysis: we relate the proposed relative OOB-score criterion to the gap between the current and limiting scores, and derive an asymptotic variance estimate for the corresponding OOB-based absolute relative difference. Experiments show that the selected number of trees can differ substantially from the common heuristic: for most classical benchmark datasets it is smaller, whereas for some high-dimensional bioinformatics datasets, such as Arcene and Dorothea, it is larger. The source code and reproducible experiments are available at https://github.com/lange-am/rf_plateau_hpo.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。