【发布时间】:2016-09-02 14:55:46
【问题描述】:
我正在研究一个预测模型,最初使用的是随机森林算法。我想将不同的预测算法组合成一个来提高我的准确性。
我试过这个,但我得到一个错误:
models = [RandomForestClassifier(n_estimators=200), GradientBoostingClassifier(n_estimators=100)]
%time cross_val_score(models, X2, Y_target).mean()
错误:
estimator should a be an estimator implementing 'fit' method
有没有办法做到这一点? (有没有比 bagging 更简单的方法?)
【问题讨论】:
标签: python model machine-learning classification