Skip to content

[python-package] add validate_features argument to refit - #5331

Merged
StrikerRUS merged 1 commit into
masterfrom
validate-features-refit
Jul 3, 2022
Merged

StrikerRUS merged 1 commit into
masterfrom
validate-features-refit

Conversation

@jmoralez

Copy link
Copy Markdown
Collaborator

Builds on #4909 adding the validate_features argument to the Booster.refit method.

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice, thank you!

@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!

@StrikerRUS

Copy link
Copy Markdown
Collaborator

What do you think about this predict() call?
https://github.com/microsoft/LightGBM/blob/ab9236baa06c3f071acf6b45a771c2a09661f146/python-package/lightgbm/basic.py#L1402-L1404

Do we need validate_features param there?

@StrikerRUS
StrikerRUS merged commit 25e32e9 into master Jul 3, 2022
@StrikerRUS
StrikerRUS deleted the validate-features-refit branch July 3, 2022 16:04
@jmoralez

jmoralez commented Jul 7, 2022

Copy link
Copy Markdown
Collaborator Author

We could try to add it to _set_init_score_by_predictor but it has to go through a lot of places, I'm not sure if it's worth it. WDYT?

@StrikerRUS

Copy link
Copy Markdown
Collaborator

OK, let's not add it into the Dataset constructor.

@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