Advertisement
Guest User

Untitled

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