【发布时间】:2016-06-22 02:33:11
【问题描述】:
我在 python scikit-learn 中使用 RandomForestRegressor。
据我所知,随机森林算法采用随机引导样本。但我不确定如何设置和调整引导程序的数量。
n_estimators 是设置引导次数的参数吗?是否有任何设置该值的好值的技巧?
【问题讨论】:
标签: python scikit-learn random-forest
我在 python scikit-learn 中使用 RandomForestRegressor。
据我所知,随机森林算法采用随机引导样本。但我不确定如何设置和调整引导程序的数量。
n_estimators 是设置引导次数的参数吗?是否有任何设置该值的好值的技巧?
【问题讨论】:
标签: python scikit-learn random-forest
子样本大小始终与原始输入样本大小相同,但如果 bootstrap=True(默认),则使用替换抽取样本。 看看这里。 http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html
【讨论】: