-
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
Fixed Predictor lifecycle and trees initialization in Contrib mode #6778
base: master
Are you sure you want to change the base?
Conversation
2) Fixed Boosting trees initialization microsoft#5482
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 this! Will defer to other reviewers with more C++ experience but one question... is it possible to test that correctness of this by adding test cases in https://github.com/microsoft/LightGBM/tree/master/tests/cpp_tests?
There are tests on prediction there, but I specifically mean testing that this previously-not-thread-safe behavior remains thread-safe.
That'd reduce the risk of issues be re-introduced in future refactorings.
@jameslamb, I've tried to. Unfortunately, the tests fail (not my tests, I reverted my changes ensure that it's not my code). Where should I add the test? In test_single_row.cpp ? |
Ah interesting. Looking at that error, I suspect the issue is the working directory you're running from. That test has hard-coded relative paths from the root of the repo, so the Here's how we run the tests in continuous integration: Lines 61 to 63 in e0c34e7
Yep that seems like a good place, thanks! |
/gha run r-valgrind Workflow R valgrind tests has been triggered! 🚀 Status: success ✔️. |
Is there anything else I should do to push the PR? |
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.
I have no other comments. Hoping @shiyu1994 or @guolinke can review this when they have time.
@shiyu1994, @guolinke Could you review the PR? |
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.
Thank you!
#5482