SHARE
TWEET

Untitled

a guest Jun 18th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top