-
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] predict
ignores predict_raw_score
#4670
Comments
Thanks for raising this! This is an inconsistency we should resolve. As documented in the R package docs or in However, we should consider raising warnings on inconsistencies between those keyword arguments and the equivalent core-LightGBM parameters, and clearly document the expectation for which value "wins" when both are supplied. |
…dict() (fixes #4670) (#5122) * fix predict() params * [R-package] ensure values in params override keyword arguments to predict() (fixes #4670) * revert accidentally-introduced unrelated test changes * Update R-package/tests/testthat/test_Predictor.R Co-authored-by: José Morales <[email protected]> * Update R-package/tests/testthat/test_Predictor.R Co-authored-by: José Morales <[email protected]> * linting * remove nammes in shap test * changes to tests Co-authored-by: José Morales <[email protected]>
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. |
After fitting a binary classification model, calling
predict
withpredict_raw_score=TRUE
or its aliases as explained in the docs will not output the raw score, only a probability as it would without this parameter:The text was updated successfully, but these errors were encountered: