coverforest: 使用Python中的随机森林进行符合预测
coverforest: Conformal Predictions with Random Forest in Python
AI总结:
coverforest是一个基于Python的高效随机森林符合预测工具,通过并行计算和优化实现快速的out-of-bag计算,提升预测效率和覆盖性能。
摘要:
符合预测提供了一个用于不确定性量化框架,特别是以预测区间和分布自由保证覆盖的预测集形式。尽管最近的交叉符合技术如CV+和Jackknife+-after-bootstrap在数据效率方面优于传统分割符合方法,但它们由于需要在训练样本和测试样本的out-of-bag分数之间进行成对比较而带来了显著的计算成本。观察到这些方法自然扩展自集成模型,特别是随机森林,我们利用已有的优化随机森林实现,以实现高效的交叉符合预测。我们提出了coverforest,一个实现高效符合预测方法的Python包,特别针对随机森林进行了优化。coverforest通过各种符合预测方法支持回归和分类任务,包括分割符合、CV+、Jackknife+-after-bootstrap和自适应预测集。我们的包利用并行计算和Cython优化来加速out-of-bag计算。我们的实验表明,coverforest的预测达到了期望的覆盖水平。此外,其训练和预测时间可以比现有实现快2-9倍。coverforest的源代码托管在GitHub上,网址为https://github.com/donlap/coverforest。
英文摘要:
Conformal prediction provides a framework for uncertainty quantification, specifically in the forms of prediction intervals and sets with distribution-free guaranteed coverage. While recent cross-conformal techniques such as CV+ and Jackknife+-after-bootstrap achieve better data efficiency than traditional split conformal methods, they incur substantial computational costs due to required pairwise comparisons between training and test samples' out-of-bag scores. Observing that these methods naturally extend from ensemble models, particularly random forests, we leverage existing optimized random forest implementations to enable efficient cross-conformal predictions. We present coverforest, a Python package that implements efficient conformal prediction methods specifically optimized for random forests. coverforest supports both regression and classification tasks through various conformal prediction methods, including split conformal, CV+, Jackknife+-after-bootstrap, and adaptive prediction sets. Our package leverages parallel computing and Cython optimizations to speed up out-of-bag calculations. Our experiments demonstrate that coverforest's predictions achieve the desired level of coverage. In addition, its training and prediction times can be faster than an existing implementation by 2--9 times. The source code for the coverforest is hosted on GitHub at https://github.com/donlap/coverforest.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。