Skip to content

Instantly share code, notes, and snippets.

@thigm85
Created July 15, 2022 14:48
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 thigm85/b2030acbcbfcd9b1a298175c413e9e2d to your computer and use it in GitHub Desktop.
Save thigm85/b2030acbcbfcd9b1a298175c413e9e2d to your computer and use it in GitHub Desktop.
training_set = lgb.Dataset(features, targets)
# Train the model
params = {
'objective': 'binary',
'metric': 'binary_logloss',
'num_leaves': 3,
}
model = lgb.train(params, training_set, num_boost_round=5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment