Guest User

Untitled

a guest
Apr 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. def new_cost(y_pred, y_true):
  2. # perform calculation for new cost
  3. return 'new_cost', score
  4.  
  5. model = xgboost.train(params, dtrain, num_rounds, watchlist, feval=new_cost)
Add Comment
Please, Sign In to add comment