Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 16 from sklearn.ensemble import GradientBoostingRegressor
- 17 # enabled early stopping: stops if the change doesn't go above the threshold for n_iter_no_change iterations
- ---> 18 base_gbr = GradientBoostingRegressor(n_iter_no_change=10,random_state=4)
- 19 base_gbr.fit(features, labels)
- 20 return base_gbr
- TypeError: __init__() got an unexpected keyword argument 'n_iter_no_change'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement