def gradient_boost_grid_search():
gradient_boost_grid = {
'loss': ['ls', 'lad', 'huber', 'quantile'],
'learning_rate': [.0001, .001, .01, .1, 1],
'n_estimators': [50, 100, 1000, 10000],
'max_depth': [1, 3],
'min_samples_split': [2, 4, 10],
'max_features': ['sqrt', 'log2'],
}
gb = GradientBoostingRegressor()
return gradient_boost_grid, gb
model_comparison.py 文件源码
python
阅读 36
收藏 0
点赞 0
评论 0
评论列表
文章目录