Skip to content

[python-package] remove Booster.set_attr() and Booster.attr() - #5272

Merged
StrikerRUS merged 1 commit into
masterfrom
remove-booster-methods
Jun 12, 2022
Merged

StrikerRUS merged 1 commit into
masterfrom
remove-booster-methods

Conversation

@jameslamb

@jameslamb jameslamb commented Jun 7, 2022 •

Copy link
Copy Markdown
Member

Proposes removing Booster.set_attr() and Booster.attr().

Per #5255 (comment) those functions are not used anywhere. It looks like they may have been copied from xgboost around when LightGBM's Python package was first created.

This PR proposes removing them to simplify the interface for Booster and reduce the maintenance burden of the project.

@guolinke guolinke left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StrikerRUS StrikerRUS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for simplifying the codebase!

@StrikerRUS
StrikerRUS merged commit 11110c5 into master Jun 12, 2022
@StrikerRUS
StrikerRUS deleted the remove-booster-methods branch June 12, 2022 17:18
@jameslamb jameslamb mentioned this pull request Oct 7, 2022
39 of 40 tasks
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants