Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. focal_loss = lambda x,y: focal_loss_lgb(x, y, alpha=0.25, gamma=1.)
  2. cv_result = lgb.cv(
  3. params,
  4. train,
  5. num_boost_round=num_boost_round,
  6. fobj = focal_loss,
  7. feval = focal_loss_lgb_f1_score,
  8. nfold=3,
  9. stratified=True,
  10. early_stopping_rounds=20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement