Skip to content

Instantly share code, notes, and snippets.

@smly
Created February 19, 2020 04:52
Show Gist options
  • Select an option

  • Save smly/ff61bb5f4b60c68418dddeadaf9bc7ed to your computer and use it in GitHub Desktop.

Select an option

Save smly/ff61bb5f4b60c68418dddeadaf9bc7ed to your computer and use it in GitHub Desktop.

Revisions

  1. smly created this gist Feb 19, 2020.
    8 changes: 8 additions & 0 deletions with_ext_args.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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)