package modelkit-xgboost

All checked builds pass
  1. Overview
  2. Docs
CPU histogram-tree estimators with XGBoost for ModelKit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

modelkit-0.6.3.tbz
sha256=a70c1c95bdc13e7abff028394a14300e2847e3f3931d6e1476394cbcdfb05407
sha512=eb186a5a919a43006ea350e8ab49845d230dc1de8f61d83c06f4d1aa2371930ea0239dcf9dbb3337e18867301422c6dc5af4d569afaf187bde5d1a2368b7bbe4

doc/CHANGES.html

0.6.3 (2026-11-02)

  • Refresh all five macOS package locks together, including XGBoost, document matching the lock-refresh scope to the packages being installed, and add a complete-workspace CI job using those locks.
  • Declare Unix explicitly in both executable-documentation stanzas, fixing MDX 2.7 generated-code compilation with Dune 3.23 and strict dependency visibility.
  • Compare every XGBoost training fixture with independently configured native calls. Restrict additional frozen Python comparisons to verified releases, covering native 3.1 training changes without loosening numerical tolerances.
  • Apply OpenMP limits to all adapter test processes, including executable odoc examples, and verify the documentation process environment at startup.
  • Exercise Linux system/vendored providers, musl, arm64, s390x, compiler bounds, and compatible minimum dependencies in CI; avoid duplicate vendored builds.
  • Resolve deployment-test worker paths explicitly, including Dune 3.23's bare executable paths, without depending on the current directory being in PATH.
  • Require ctypes/ctypes-foreign 0.22, the first release pair supporting the package's OCaml 5.2 compiler floor.
  • Use POSIX dynamic symbol lookup in the test-only OpenMP probe, fixing builds where GNU RTLD_DEFAULT is unavailable.
  • Treat binding and native writer versions as provenance within the supported native major rather than rejecting version differences before model loading. Preserve original training versions when resaving on an older native runtime.
  • Check that native loading preserves the scalar/vector model intercept, rejecting silent base_score replacement with a typed compatibility error. Retain bounded envelope, schema, objective, and inference checks.
  • Exercise native 3.0.0 in CI and distinguish genuine representation failures from compatible version differences in artifact deployment tests.
  • Update all package versions, platform locks, current documentation, and artifact producer versions to 0.6.3 without changing persisted formats.

0.6.2 (2026-10-30)

  • Require OCaml XGBoost binding 0.2.6, including relocatable vendored archives, bounded native-build parallelism, musl serialization, and native dependency packaging fixes. Record binding 0.2.6 in new fitted-model provenance while retaining readers and provenance for existing 0.2.1 artifacts.
  • Wrap already-fitted regressors in serializable inference pipelines through Artifact.Codec.regression_pipeline and the XGBoost Regressor.to_pipeline helper, without refitting or copying native state. Preserve original fit provenance, schemas, and streaming diagnostics with existing artifact formats.
  • Add CPU external-memory regression fitting from checked replayable batches, with optional weights, typed callback failures, owned disk caches, and bounded adapter staging. A private iterator bridge manages native training handles without depending on the high-level binding's iterator cleanup behavior.
  • Persist streaming diagnostics in a version-two regression payload while retaining version-one readers and ordinary fit/classification writers.
  • Record producer version 0.6.2 in newly written artifacts while preserving existing formats, readers, and historical fitted-model provenance.

0.6.1 (2026-10-12)

  • Collect concurrent XGBoost test results before running Alcotest assertions, avoiding races in its shared formatters during serialization and inference checks while preserving concurrent native operations and exact comparisons.
  • Record producer version 0.6.1 in newly written artifacts while preserving existing formats, readers, and historical golden compatibility.

0.6.0 (2026-10-12)

  • Publish the XGBoost compatibility evidence and executable provenance/artifact support inspection. Add optional conversion/fit/prediction smoke measurements for all three tasks, committed native-version reports, and per-platform CI evidence. Keep developer measurement tools outside package installations.
  • Check sampled XGBoost fits against direct upstream calls on the linked native build, retaining frozen macOS Python references and strict tolerances while respecting C++ standard-library sampling differences. Use Dune's installer for isolated deployment checks without an extra opam-installer dependency.
  • Keep native test probes out of portable package builds and install a persistent XGBoost shared library in Linux CI, avoiding binding 0.2.1's temporary-archive linker defect. Document the corresponding native installation requirement.
  • Attach native model serialization to the XGBoost estimator helpers, preserving supported fitted preprocessing in complete pipeline artifacts. Add native and pipeline goldens, fresh-process/isolated-package deployment checks, backward native-version evidence, and an executable search-refit/save/load recipe.
  • Add trusted XGBoost fitted-model byte/file persistence for regression and binary/multiclass classification, retaining schemas, class mappings, parameters, reports, and provenance. Validate bounded envelopes and native consistency, apply explicit inference thread caps, and expose public codec factories.
  • Add the optional modelkit-xgboost package with immutable CPU histogram-tree specifications, checked float32 input conversion, allocation/rounding reports, and scoped native interoperability.
  • Add weighted squared-error XGBoost regression with native missing-value routing, deterministic seeds, schema-checked prediction, pipeline packaging, provenance, and pinned parity coverage for tested native versions.
  • Add binary/multiclass XGBoost classification with reversible integer-label encoding, sorted effective classes, sample weights, normalized probabilities, deterministic ties, zero-weight row exclusion, typed degenerate-target failures, pipeline dispatch, and pinned native-version parity coverage.
  • Verify weighted/group-aware XGBoost CV, fold-local preprocessing, grid/randomized search, multiple-metric refit, and training-row-budget halving across sequential and bounded parallel folds. Add executable search recipes and fresh-process verification of the single-thread OpenMP startup contract.
  • Record producer version 0.6.0 in newly written built-in artifacts while retaining the existing schema, readers, and golden-artifact compatibility.
  • Add explicit, task-typed external terminal-estimator codecs with package-qualified identities, per-call decoder selection, provenance, and bounded envelope validation. Add generalized classification persistence and class-count limits in container version two while retaining built-in version-one writers/readers.

0.5.0 (2026-09-09)

  • Publish the third-party estimator authoring guide, metadata-aware conformance checks, component provenance, and explicit fitted-pipeline artifact-support reports. A separately built public-only consumer participates unchanged in nested composition, metadata routing, parallel cross-validation, and randomized search; external codecs remain opt-in reviewed work and unsupported encoding returns a typed error.
  • Add candidate-boundary search checkpoints with partial evaluation reports, bounded data-only serialization, full data/split/configuration identity checks, and deterministic resumption across process restarts and execution backends.
  • Add successive-halving search over grid or randomized candidates with nested training-row budgets, deterministic promotion, class and weight feasibility checks, fresh fits, per-round reports, and optional bounded full-data refitting.
  • Add typed randomized parameter distributions and search with finite sampling without replacement, distribution sampling, and deterministic candidate streams.
  • Share named-score, no-refit, and custom multi-metric selection policies across grid and randomized search while preserving existing named-refit entry points.
  • Add typed supervised pipelines, dense column transformation, feature unions, and nested preprocessing chains with fold-local fitting.
  • Route requested weights, groups, and callbacks through nested consumers, cross-validation, search, and full-data refit with bounded cancellation.
  • Add stratified-group K-fold, predefined, leave-one-out, and leave-one-group-out splitters with explicit coverage, feasibility, and group-exclusion contracts.
  • Add shuffle, stratified-shuffle, holdout, and repeated K-fold splitters, plus aligned train/test dataset splitting with explicit counts and fractional sizes.
  • Add transformed-target regression with fold-local target fitting, metadata requests, checked inverse transforms, and original-space predictions.
  • Record producer version 0.5.0 in newly written artifacts while retaining compatibility with existing readers and golden artifacts.

0.4.1 (2026-09-04)

  • Add checked immutable CSR matrices with canonical structure validation, zero-copy indexed row views, explicit materialization, payload-memory accounting, and dense/CSR numerical-kernel dispatch through Feature_matrix.
  • Add min-max, max-absolute, and robust scalers, per-sample normalization, one-hot and ordinal encoders with explicit unknown-category policies and direct CSR one-hot output, reversible label encoding, polynomial features, and missing indicators as immutable transforms with feature-name propagation.
  • Add lasso and elastic-net regression with deterministic weighted coordinate descent and warm-started descending regularization paths, binary and multiclass ridge classification, multinomial logistic regression with stable softmax probabilities and matrix-valued decision scores, and Poisson and Tweedie generalized linear models with target-domain validation and damped IRLS, each with solver diagnostics and parity fixtures.
  • Add SGD regression and binary/multiclass SGD classification with hinge and logistic losses under an immutable incremental-training contract: explicit initial class registration, ordered streams, optional shuffling, checkpoints, and continuation equivalence.
  • Finish sample-weight and class-weight propagation with fold-local balanced and explicit class weights for classifier terminals, opt-in sample-weight routing to transformers, and a weighted standard scaler.
  • Add confusion-matrix and multiclass classification metrics with micro, macro, and weighted averaging, average precision, one-versus-rest and one-versus-one ROC AUC, top-k accuracy, DCG and NDCG ranking metrics, and multiclass scorers with multiclass cross-validation and grid search.
  • Add the separately installable modelkit-nx and modelkit-talon adapter packages for checked admission of explicitly typed Nx tensors and explicitly selected Talon dataframe columns, with shared Admission result records, conversion and allocation reports, a source-neutral adapter conformance suite, and macOS arm64 lockfiles; the adapters build on Linux and macOS only at the pinned Raven 1.0.0~alpha3 release.
  • Rewrite the reference numerical kernels to read immutable Bigarray storage directly with unboxed compensated sums, verified bit for bit against an independent Neumaier fold.
  • Add deterministic comparative benchmark reports for regularized linear models, ridge classification, multinomial logistic regression, generalized linear models, SGD, adapter admission, sparse kernel dispatch, and solver convergence and scale across tall, square, wide, and rank-deficient shapes; every report remains development evidence with no performance claim.
  • Defer the optional Lacaml numerical backend to a later release, where LAPACK factorizations first have a consumer.
  • Artifacts written by this release record producer version 0.4.1; the artifact schema is unchanged and 0.3.x artifacts continue to load.

0.3.2 (2026-08-17)

  • Add immutable dense dataset admission with explicit finiteness policies, aligned zero-copy row views, stable schema fingerprints, and observable copy/view reporting.
  • Add immutable mean, median, and constant imputation, population standardization, and variance-based feature filtering while preserving feature identities.
  • Add leakage-safe sequential pipelines that fit preprocessing only on training input, propagate schemas, derive stage-local random streams, and dispatch prediction, decision, and probability operations.
  • Add portable weighted ordinary least squares, ridge regression, and binary logistic regression with stable numerical methods, fitted coefficients, and solver diagnostics.
  • Add deterministic K-fold, stratified K-fold, group K-fold, and expanding-window time-series splitters with validated row views and explicit aligned dataset materialization.
  • Add weighted regression and binary classification metrics, plotting-neutral residual, ROC, and precision-recall data, higher-is-better scorers, stable score aggregation, and explicit undefined-result policies.
  • Add deterministic cross-validation with ordered train and test scores, CPU timings, optional fitted models and row indices, structured failures, and independent split and fit seeds.
  • Add the separately installable modelkit-parallel package for bounded Domainslib fold execution with sequential fallback, stable logical results, and oversubscription diagnostics.
  • Add typed finite grid search over immutable configurations with shared splits, failure-aware candidate reports, named-scorer ranking, deterministic tie handling, and best-model refitting on all training data.
  • Add versioned data-only artifacts for fitted built-in regression and binary classification pipelines with feature-schema identity, bounded readers, accidental-corruption detection, file conveniences, and golden compatibility coverage.
  • Add committed scikit-learn parity fixtures and deterministic comparative benchmark reports for preprocessing, linear models, splitters, metrics, cross-validation, parallel execution, and grid search without adding a Python runtime dependency or making performance claims.
  • Expand executable documentation and the end-to-end evaluation example to cover the complete supervised workflow.
  • Decompose the portable implementation into private cohesive source units while retaining the existing flat Modelkit.* public API and optional-package dependency boundaries.

0.2.1 (2026-08-11)

  • Restore package builds on OCaml 5.5 by making typed target accessor specializations explicit.
  • Test OCaml 5.5 on Linux, macOS, and Windows in addition to the existing OCaml 5.2 and 5.3 matrix.

0.2.0 (2026-08-10)

  • Add immutable float64 vectors and matrices, row views, typed targets, feature schemas, sample weights, groups, and validation errors over portable Bigarray storage.
  • Define common contracts for immutable specifications, fitted estimators, classifiers, regressors, transformers, scorers, splitters, execution, random-number generation, and numerical backends.
  • Add deterministic seeds and random streams, stable sequential execution, and a portable reference backend with cancellation-safe reductions and matrix-vector kernels.
  • Establish unit, property, metamorphic, mdx, public API compatibility, sklearn fixture, and reusable numerical-backend conformance tests.
  • Add pinned development-only Python tooling and committed metadata for reproducible sklearn reference fixtures and comparative benchmark collection without introducing a runtime Python dependency.
  • Verify build, tests, package installation targets, and odoc generation on Linux x86-64, macOS arm64, and Windows x86-64 with OCaml 5.2 and 5.3 in GitHub Actions.

0.1.0 (2026-08-04)

  • Establish the initial ModelKit package with an OCaml 5.2 compiler floor and Apache-2.0 licensing.
  • Add the portable library skeleton and reserved package boundaries for optional adapters and accelerated backends.
  • Add the Dune workspace, generated odoc documentation, formatting checks, and platform-specific opam lock workflow.
  • Document project governance, support, and maintenance policies.