Skip to content
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

Feature request - C API - support raw data as input for in-place prediction #10910

Open
tlkhm opened this issue Oct 18, 2024 · 0 comments
Open

Comments

@tlkhm
Copy link

tlkhm commented Oct 18, 2024

In-place prediction is supposed to be fast and efficient according to https://xgboost.readthedocs.io/en/stable/prediction.html#in-place-prediction

C API only supports JSON string as input for in-place prediction which requires conversion from raw data to char array which later is converted back to raw data. It would be more efficient to support raw data without JSON conversion. In my case, the input is a simple 1D float array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants