package xgboost

  1. Overview
  2. No Docs
OCaml bindings for the XGBoost gradient boosting library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.2.6.tar.gz
md5=9f3bfc144e2c80e3e4848db6a85ed0a9
sha512=a96612c6f855e9508ae00b10d892e6085b5ad431b0e48651807f540fef9f22ba0905c721f921a487f14b6096992850845011c68a0c7f2c98c540fb6b73570322

Description

Native OCaml bindings to libxgboost (>=3.0). Three-layer FFI: the upstream stable C ABI, statically generated ctypes stubs, and a high-level GC-aware OCaml API. Supports dense and sparse DMatrix construction (Bigarray, zero-copy), training, prediction, JSON config, and external-memory streaming via a callback iterator.

The native libxgboost dependency is satisfied in one of two ways, decided at build time: a system libxgboost >= 3.0 discovered through pkg-config (installed through conf-libxgboost where the platform packages it), or, failing that, a vendored copy of XGBoost built from source with CMake and linked statically (needs no network).

Dependencies (8)

  1. ctypes-foreign >= "0.20"
  2. ctypes >= "0.20"
  3. conf-libxgboost (os-distribution = "debian" & os-version >= "13") | (os-distribution = "ubuntu" & os-version >= "25.10") | (os = "macos" & os-distribution = "homebrew") | os = "freebsd"
  4. conf-c++ build
  5. conf-cmake build
  6. dune-configurator build
  7. ocaml >= "4.11"
  8. dune >= "3.18"

Dev Dependencies (4)

  1. odoc with-doc
  2. qcheck-alcotest with-test & >= "0.20"
  3. qcheck-core with-test & >= "0.20"
  4. alcotest with-test

Used by

None

Conflicts

None