Skip to content

Instantly share code, notes, and snippets.

@smly
Created February 19, 2020 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smly/ff61bb5f4b60c68418dddeadaf9bc7ed to your computer and use it in GitHub Desktop.
Save smly/ff61bb5f4b60c68418dddeadaf9bc7ed to your computer and use it in GitHub Desktop.
best_params, tuning_history = dict(), list()
booster = lgb.train(params, dtrain, valid_sets=dval,
verbose_eval=0,
best_params=best_params,
tuning_history=tuning_history)
print(‘Best Params:’, best_params)
print(‘Tuning history:’, tuning_history)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment