-
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
[R-package] Turn matrix to storage mode "double" #3140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the investigation and PR @mayer79 ! Could you please add a new file R-package/tests/test_Predictor.R
and add a unit test on this behavior? Whenever we fix a bug, we should also include tests to be sure we don't re-introduce it in the future.
@jameslamb This issue will also solve #3094 |
…de during prediction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test looks good! I left a few additional small requests
Co-authored-by: James Lamb <jaylamb20@gmail.com>
thanks for the contribution and for using |
* Turn matrix to storage mode "double" * added "test_Predictor.R" to R tests with check for integer storage mode during prediction * Explicit integers in test_Preditor to avoid TravisCI failure * properly aligning comment on storage.mode Co-authored-by: James Lamb <jaylamb20@gmail.com> * split double assignment into two lines Co-authored-by: James Lamb <jaylamb20@gmail.com>
* Turn matrix to storage mode "double" * added "test_Predictor.R" to R tests with check for integer storage mode during prediction * Explicit integers in test_Preditor to avoid TravisCI failure * properly aligning comment on storage.mode Co-authored-by: James Lamb <jaylamb20@gmail.com> * split double assignment into two lines Co-authored-by: James Lamb <jaylamb20@gmail.com>
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. |
Fixes #3139
Just copy-pasted code snippet from lgb.Dataset initalizer.
As I am still not very familiar with the LightGBM data logic, @Laurae2 and @jameslamb would need to confirm that this makes any sense.