Examples#
Minimal, focused worked examples — one concept per file. Each is
runnable end-to-end under myst-nb (cells execute during
sphinx-build; outputs render inline in the rendered HTML).
By capability#
Example |
Demonstrates |
Minimum extras |
|---|---|---|
|
none |
|
|
|
|
Platt + isotonic recalibration, ECE before/after |
none |
|
Exact dupe, normalized-form, label-conflict checks |
|
|
|
|
|
|
none |
|
Full pipeline on synthetic OWASP fixtures |
|
|
Wrapping a PyTorch model as a |
|
|
LODO k-fold × multi-seed × stratified train/val composition |
none |
|
|
|
|
|
none |
|
ROC rendering with threshold marker + baseline overlay |
|
|
Cost-vs-performance scatter with frontier overlay |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
none |
|
|
|
How these run#
Since v0.38.0, examples are myst-nb notebooks (Markdown source with
{code-cell} directives). Cells execute during sphinx-build with
nb_execution_mode = "cache" — re-execution is triggered only when
the source page changes. Cell outputs (printed text, tables, figures)
render inline in the published HTML, so the docs site reflects the
actual library behavior.
Two pages have execution disabled at page level because they require
optional dependencies that aren’t in [dev]:
pytorch_scorer_example.mdneedstorch(~700MB transitive)callable_embedder_dedup.mdneeds[embeddings](sentence-transformers)
These pages render their code statically.