【问题标题】:The number of bootstraps in Random Forest (scikit-learn)随机森林中的引导数(scikit-learn)
【发布时间】:2016-06-22 02:33:11
【问题描述】:

我在 python scikit-learn 中使用 RandomForestRegressor。

据我所知,随机森林算法采用随机引导样本。但我不确定如何设置和调整引导程序的数量。

n_estimators 是设置引导次数的参数吗?是否有任何设置该值的好值的技巧?

【问题讨论】:

    标签: python scikit-learn random-forest


    【解决方案1】:

    子样本大小始终与原始输入样本大小相同,但如果 bootstrap=True(默认),则使用替换抽取样本。 看看这里。 http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html

    【讨论】:

    • 抱歉,我所说的“子样本数量”是“随机引导的数量”。我更新了我的问题。
    猜你喜欢
    • 2015-03-28
    • 2013-04-26
    • 2017-03-26
    • 2015-08-28
    • 2015-09-16
    • 2012-03-10
    • 2017-12-10
    • 2016-05-27
    • 2016-01-21
    相关资源
    最近更新 更多