def ada_boost_tree_grid_search():
ada_boost_tree_grid = {
'base_estimator__max_features': ['sqrt'],
'base_estimator__splitter': ['best', 'random'],
'base_estimator__min_samples_split': [2, 4],
'base_estimator__max_depth': [1, 3],
'n_estimators': [50, 100, 1000],
'learning_rate': [.001, .01, .1],
'loss': ['linear', 'square', 'exponential']
}
abr = AdaBoostRegressor(DecisionTreeRegressor())
return ada_boost_tree_grid, abr
model_comparison.py 文件源码
python
阅读 33
收藏 0
点赞 0
评论 0
评论列表
文章目录