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

[python-package] fix _LGBM_CustomMetricFunction typing #5736

Merged
merged 1 commit into from
Feb 25, 2023

Conversation

Deimos357
Copy link
Contributor

@Deimos357 Deimos357 commented Feb 23, 2023

Contributes to #3756.

Fixed custom evaluation function typing according to train documentation: "Each evaluation function should accept two parameters: preds, eval_data, and return (eval_name, eval_result, is_higher_better) or list of such tuples."

@Deimos357 Deimos357 changed the title fixed _LGBM_CustomMetricFunction typing [python-package] fix _LGBM_CustomMetricFunction typing Feb 23, 2023
Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Thanks for the help! I agree with these changes.


Some tips to help you in future open source contributions:

  1. Link to the documentation you're referring to instead of just typing it out.

and return (eval_name, eval_result, is_higher_better) or list of such tuples.

  1. Make pull requests from a branch other than the target branch (see [python-package] prefix is_numpy_1d_array with _ #5520 (comment) for an explanation)

@jameslamb jameslamb merged commit 1f828f4 into microsoft:master Feb 25, 2023
@github-actions
Copy link

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 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants