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

Rename Metadata num_classes to be more clear #5461

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

svotaw
Copy link
Contributor

@svotaw svotaw commented Sep 1, 2022

A recent completed PR (#5299) created a new Metadata method num_classes(), but this can be confused with the actual num_classes in a Dataset. It should definitely be the same number, but the new method is specifically returning the num_classes as configured and allocated in Metadata. Reviewers requested to rename this method to be clearer. New name is num_init_score_classes().

Copy link
Collaborator

@guolinke guolinke left a comment

Choose a reason for hiding this comment

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

Thank you!

@shiyu1994 shiyu1994 merged commit 7d1276a into microsoft:master Sep 2, 2022
@svotaw svotaw deleted the nclasses-rename branch September 2, 2022 04:59
@jameslamb jameslamb mentioned this pull request Oct 7, 2022
40 tasks
@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 19, 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.

4 participants