Python examples (Tier 1)

September 11, 2026 · View on GitHub

Contract-first recipes for hypercube-cnn. Not installed with the wheel — clone the repo and install the package, then run from any directory.

cd HypercubeCNN
pip install .

python examples/python/synthetic_classification.py
python examples/python/synthetic_regression.py
python examples/python/arch_and_weights_io.py
python examples/python/spatial_embed_smoke.py
ScriptChecks
synthetic_classification.pyTrain a few epochs; accuracy improves
synthetic_regression.pyTrain a few epochs; MSE drops
arch_and_weights_io.pyexport_arch + HCNW round-trip; bit-identical logits
spatial_embed_smoke.pySpatial pad_value contract, DualPlane, eval helpers

Kept small and offline (no dataset download). Full API: docs/Python_SDK.md.