-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Should use other->numeric_feature_map_[i] in AddFeaturesFrom #5410
Comments
@guolinke @shiyu1994 can you please share your thoughts on this? |
thank you, I think it is a bug |
Thanks! Do you agree with the proposed change? |
yeah, the fix looks good to me! |
@EdmondElephant would you like to submit a PR with your proposed fix and your example as a test? |
This issue 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. |
Description
In this line: https://github.com/microsoft/LightGBM/blob/master/src/io/dataset.cpp#L1486
I think
int feat_ind = numeric_feature_map_[i];
should be
int feat_ind = other->numeric_feature_map_[i];
The loop condition
i < (other->numeric_feature_map_).size()
tells the same story.Reproducible example
Code
Output
Environment info
Command(s) you used to install LightGBM
The text was updated successfully, but these errors were encountered: