Skip to main content

Runnable examples

Every script below is the same file displayed in its guide. Install the exact package versions in the installation guide, download a script, and run it with Python.

TaskScriptWalkthrough
First activation derivativefirst_derivative.pyQuickstart
Pure-Python coefficientscore_polynomial.pyDerivative identities
Trainable fourth derivativehigh_order_torch.pyResidual tutorial
JAX residual gradienthigh_order_jax.pyJAX walkthrough
Laplacian vs Hessian tracedeep_laplacian.pyDirect Laplacian
JAX Laplacian comparisondeep_laplacian_jax.pyJAX API
Mixed heat residualmixed_heat.pyHeat residual
Trainable soft regionssoft_regions.pyRegional models
Functional Gauss–Newtoncurvature.pyCurvature tutorial
Hard quantization and surrogate gradientsbinary_torch.py, binary_jax.pyHard decisions
Keras operator layerkeras_layer.pyKeras setup

Examples use small deterministic inputs and assert shape, numerical, or gradient properties. Benchmark speedups require the dedicated benchmark drivers and conditions; these learning scripts are not performance measurements.

The API reference also links upstream regression examples. Those tests may use fixtures and helpers from the full source checkout.

Complete scientific workflows​

Explore the scientific ML notebook collection for beam bending, Poisson equations, trainable regions, and scientific calibration. Each download is executed against the pinned published packages.