Examples#
Examples are executable scripts that compare constrained and unconstrained models under controlled synthetic data.
The repository’s examples
directory contains the complete source.
Prior Combinations#
The model-specific scripts arrange plots by combination size: the first row contains individual priors, the second contains pairs, and later rows contain three- and four-prior combinations. Every panel compares the same estimator with and without the displayed priors.
linear_model.pydemonstrates monotonicity and slope bounds onLinearRegression.tree_models.pydemonstrates the non-redundant value, monotonicity, and unimodality subsets on gradient boosting.mlp.pydemonstrates all subsets of a lower value bound, monotonicity, and convexity.gaussian_process.pydemonstrates all subsets of four compatible priors, including posterior uncertainty bands.
Run any script from a source checkout; for example:
uv run --extra examples python examples/gaussian_process.py
Generated figures are written to the local assets directory and are not
tracked by Git.