Skip to content

Recipes

Small, runnable, self-contained programs that each demonstrate one tool. Each recipe is a CMake target built from a .cpp file in examples/recipes/, paired with one of the pages below. Every page covers what you'll build, the code, how to run it, the expected output, and what's happening. (The visualization page uses an existing GUI demo instead of a recipe file.)

Build and run a recipe

Build a single recipe instead of the whole project, then run it:

cmake --build build --target <recipe_target> --config Release
./build/<recipe_target>                # Linux/macOS (single-config generators)
build\Release\<recipe_target>.exe      # Windows (Visual Studio, multi-config)

Printed numbers can differ slightly across compilers and standard libraries. The expected output on each page notes where this is noticeable.

Recipes are smaller and more didactic than the full demos in examples/ (see examples/README.md). Recipes link to the related full demo where one exists.

Deep Learning Modules and Layers

Data Loading, Transformation & Validation

Interpretability

Reinforcement Learning

Mechanistic Interpretability

Neuro-Symbolic Reasoning

Visualization