-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix bug with Lrnr_grf predictions #411
base: devel
Are you sure you want to change the base?
Conversation
The .predict method for Lrnr_grf had an incorrect argument name for grf::predict.quantile_forest: the argument for supplying new data should be called "newdata", not "new_data" (see https://grf-labs.github.io/grf/reference/predict.quantile_forest.html).
Thank you! This is great. Could you please add test to “tests/testthat/“ to make sure this is functioning as expected? Then I’ll merge PR |
i'm confused by the diff including changes beyond the fix to |
Ah yes my mistake -- looks like I added an extra commit to the pull request by mistake, the only relevant one for this is 74f7538. Is there an easy way to fix this, or should I submit a new pull request? Thanks! |
ok, thanks for clarifying @herbps10 -- depending on your level of comfort with git, you could rebase (e.g., https://stackoverflow.com/questions/36168839/how-to-remove-commits-from-a-pull-request), but opening up a new pull request is totally fine too |
Great, thanks for the tip -- I just fixed the PR. I can work on adding a unit test as well. |
great, thanks! adding a unit test would be very helpful. i may periodically make some edits here and/or to the |
Quick question about how you would like Lrnr_grf to work: With As a consequence, if you supply the original training set as newdata (e.g. The question is: when the predict method of Lrnr_grf is called with the same task as was used for training, should it return out-of-bag predictions or not? (The current behavior, before the bugfix, is that the predict method of Lrnr_grf always returns the out-of-bag predictions for the training set, because |
The .predict method for Lrnr_grf had an incorrect argument name for
grf::predict.quantile_forest
: the argument for supplying new data should be callednewdata
instead ofnew_data
(see https://grf-labs.github.io/grf/reference/predict.quantile_forest.html).