Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable bagging with lightgbm #32

Merged
merged 3 commits into from
Aug 17, 2022
Merged

enable bagging with lightgbm #32

merged 3 commits into from
Aug 17, 2022

Conversation

simonpcouch
Copy link
Contributor

PR 2/2 to close #30, PR 1/2 is tidymodels/parsnip#768. More discussion in the PRed docs there.

Will draft as PR and we can come back to this after conf. :)

With these changes:

library(tidymodels)
library(bonsai)

data(penguins, package = "modeldata")

bt <-
  boost_tree(sample_size = tune()) %>%
  set_engine(engine = "lightgbm") %>%
  set_mode(mode = "classification")

grid <-
  tune_grid(
    bt,
    species ~ flipper_length_mm + island,
    bootstraps(penguins)
  )

autoplot(grid)

Created on 2022-07-14 by the reprex package (v2.0.1)

@simonpcouch simonpcouch marked this pull request as ready for review August 8, 2022 13:10
@simonpcouch simonpcouch requested a review from topepo August 8, 2022 13:17
@simonpcouch simonpcouch merged commit 9b2abab into main Aug 17, 2022
@simonpcouch simonpcouch deleted the lightgbm-bagging-30 branch August 17, 2022 13:15
@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lightgbm model doesn't see sample_size parameter from boost_tree
1 participant