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

XGBoosterPredict_f #1

Open
Taram80 opened this issue Feb 9, 2022 · 0 comments
Open

XGBoosterPredict_f #1

Taram80 opened this issue Feb 9, 2022 · 0 comments

Comments

@Taram80
Copy link

Taram80 commented Feb 9, 2022

New argument in the function XGBoosterPredic -> test in the master after the release 1.5.1 . New interface proposed :

interface
integer(c_int) function XGBoosterPredict_f(handle, dmat, option_mask, ntree_limit,training, length, prediction) bind(C, name="XGBoosterPredict")
use iso_c_binding, only: c_int, c_ptr, c_int64_t, c_float, c_double
type(c_ptr), value :: handle ! BoosterHandle
type(c_ptr), value :: dmat ! DMatrixHandle
integer(c_int), value :: option_mask ! option mask
integer(c_int), value :: ntree_limit ! limit number of trees in the prediction
integer(c_int), value :: training ! Prediction scenarios
integer(c_int64_t) :: length ! length of prediction
type(c_ptr) :: prediction ! prediction
end function
end interface

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

No branches or pull requests

1 participant