SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
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