Worked examples of libKriging, one per
use case: every model class (Kriging with its noise models and approximate fit
methods, NestedKriging, WarpKriging, MLPKriging) on classical test problems,
explained, plotted and tabulated, next to the packages it is usually compared with.
Each example is also a validation: what it shows is checked against a reference (finite differences, a fit from scratch, the exact model an approximation converges to, another kriging package at the same hyperparameters, the other bindings). CI runs every notebook against the development head of libKriging and of its bindings (and weekly against the releases), saves it with its outputs, and turns the checks into a report: the gallery is libKriging's end-to-end acceptance test.
Every notebook starts with its idea, its reference and its tags, and ends with a summary of its checks; error-level checks fail the run, warn-level ones are reported (see Checks and statuses).
Gallery site: https://libkriging.github.io/gallery/: one card per notebook
(first figure, title, idea, tags: language, Kriging class, kernel, objective, method,
noise/nugget, warping, aggregation, compared packages; status of its checks), tag
filters; a card opens its notebook, executed by the last CI run on main, in nbviewer
(Python cards also link to Colab and Binder). Built by tools/site.py,
published on the gh-pages branch.
executed: the notebook as run by the last CI run on main against libKriging
master, with its outputs (a zip of the executed-master-<notebook> artifact through
nightly.link, which serves the last artifact of a branch at a
stable URL; all runs on main
keep them 90 days; all of a run at once:
executed-notebooks-master,
and the aggregated report: report-master).
open in: the executed notebook of the site, run in a free hosted service (see
below), or read in nbviewer. The
notebook column links to its source in src/: the notebooks themselves
are generated and executed by CI only, never committed.
One binding per use case: Python, the most complete binding, unless the reference belongs to another language (DiceKriging and RobustGaSP in R, STK in Octave, GaussianProcesses.jl in Julia); the cross-binding notebooks check that every binding gives the same numbers as Python, for every class and fit method.
| notebook | binding | kriging type | what it shows | validated against | executed | open in |
|---|---|---|---|---|---|---|
| update-simulate_Kriging_python | python | Kriging |
the workflow on 1D to 6D functions: fit, predict, conditional paths, update with new data, update_simulate, in pictures |
fit from scratch, Monte Carlo moments | zip | Colab · Binder |
| kernels-trends-interpolation_Kriging_python | python | Kriging |
choosing a kernel and a trend: 4 × 4 combinations on 8 functions, interpolation, predicted covariance and derivatives | finite differences, Q² floors | zip | Colab · Binder |
| objectives-LL-LOO-LMP-gradients_Kriging_python | python | Kriging |
choosing the estimation criterion (LL, LOO, LMP), its profile around θ̂, multistart |
finite differences, explicit leave-one-out refits | zip | Colab · Binder |
| high-dimension-normalize-screening_Kriging_python | python | Kriging |
6 to 20 inputs in physical units: normalize, reading the fitted θ to screen inputs (Welch) |
explicit rescaling, known active inputs | zip | Colab · Binder |
| save-load-pickle-copy-accessors_Kriging_python | python | Kriging |
saving, loading, pickling, copying a model; reading its settings back | the original model (to 1e-12) | zip | Colab · Binder |
| sklearn-estimators_Kriging_python | python | Kriging |
libKriging inside scikit-learn: Pipeline, GridSearchCV over kernels, cross_val_score, sample_y |
the native class | zip | Colab · Binder |
| notebook | binding | kriging type | what it shows | validated against | executed | open in |
|---|---|---|---|---|---|---|
| noisy-data_Kriging-nugget-noise_python | python | Kriging with noise="nugget" or variances |
estimated nugget vs known noise variances, replicates, calibrated intervals on the noise-free function | true noise, replicate averaging, interpolating fit | zip | Colab · Binder |
| notebook | binding | kriging type | what it shows | validated against | executed | open in |
|---|---|---|---|---|---|---|
| large-n_Kriging-vecchia-nystrom_python | python | Kriging with method="vecchia(m)" / "nystrom(k)" |
n up to 5000: Vecchia and Nyström fits, their convergence to the exact model as m and k grow, subsetOfData |
exact model (limits m = n − 1, k = n), exact fit | zip | Colab · Binder |
| aggregations-large-n_NestedKriging_python | python | NestedKriging |
splitting a design into groups: NK, PoE, gPoE, BCM, rBCM, from 1 group to 32 |
exact predictor (limit: 1 group), exact fit | zip | Colab · Binder |
| notebook | binding | kriging type | what it shows | validated against | executed | open in |
|---|---|---|---|---|---|---|
| warpings-categorical-ordinal_WarpKriging_python | python |