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

WIP: [R-package] require lgb.Dataset, remove support for passing 'colnames' and 'categorical_feature' for lgb.train() and lgb.cv() #6714

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jameslamb
Copy link
Collaborator

Fixes #6435

Enforces deprecations that have been in {lightgbm} sinvce v4.4.0:

  • removes support for passing anything other than an lgb.Dataset to data argument of lgb.cv()
  • removes colnames and categorical_feature arguments from lgb.train() and lgb.cv()

Notes for Reviewers

Still need to do reverse dependency checks

Before this is merged, we should check that it won't break any projects on CRAN that depend on {lightgbm}. I might propose introducing a comment-triggered CI job we can use for this purpose, maybe with https://github.com/r-lib/revdepcheck.

xgboost did something similar recently

As @mayer79 mentioned on #6435. See dmlc/xgboost#10031

…ing 'feature_name' and 'categorical_feature' to lgb.train() and lgb.cv()
@jameslamb jameslamb changed the title WIP: [R-package] require lgb.Dataset for lgb.cv(), remove support for passing 'colnames' and 'categorical_feature' to lgb.train() and lgb.cv() WIP: [R-package] require lgb.Dataset, remove support for passing 'colnames' and 'categorical_feature' for lgb.train() and lgb.cv() Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC] remove 'categorical_feature' and 'feature_name' parameters in cv() and train()
1 participant