XGDMatrixCreateFromCSREx, which was removed from the C API after 3.0 and broke ctypes stub compilation on newer libxgboost (e.g. Homebrew's 3.4.1). The sparse-CSR path already uses the modern XGDMatrixCreateFromCSR.First opam release.
pkg-config finds one (installed via opam depexts on platforms that package it), and otherwise compiles a pinned, vendored copy of XGBoost from source (bundled under vendor/xgboost, CMake, static link, no network required). This lets opam install xgboost work on any platform, including those without a distro package.Xgboost.Eval — parse eval_one_iter metric strings; compute AUC and ROC directly from prediction/label Bigarrays.Xgboost.Cv.k_fold — k-fold cross validation with optional group-coherent splitting (?group_ids) and summarise.Xgboost.DMatrix.slice — row-subset a DMatrix.Initial release. Native OCaml bindings to libxgboost ≥ 3.0 covering:
DMatrix construction
XGDMatrixCreateFromDense array_interface path)XGDMatrixCreateFromCSR)DMatrix.of_iterator) backed by XGProxyDMatrixCreate + XGDMatrixCreateFromCallback, with optional external-memory caching via cache_prefixBooster lifecycle, training, prediction
update_one_iter, boost_one_iter (custom gradient/hessian), eval_one_iter, resetpredict (eager copy), predict_dense (in-place from Bigarray), Unsafe.predict_borrowed (no-copy expert variant)feature_score with selectable importance typeGc.finalise_lastd handles, scoped combinators (with_), idempotent free