-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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 interface could use inplace prediction #7616
Comments
Do you think we should add a parameter for the predict function to use inplace prediction optionally? The prediction using |
Bu whether it's cached or not, it first needs to produce a data copy when it casts the |
Would you like to work on the interface? :-). The R package can use a lot of help. |
I'll pass on this specific feature. |
The Python interface where possible uses
inplace_predict
, which is fater than creating aDMatrix
object for making predictions. The R interface OTOH always usesDMatrix
, which requires 2 redundant copies of the data. It should be possible to use functions such asXGBoosterPredictFromDense
in the R interface too, avoiding an extra data copy, and wrapping them should be even simpler since R does not support as many array configurations as numpy (e.g. no strided array views).The text was updated successfully, but these errors were encountered: