Examples

Bayes-HDC includes runnable examples in the examples/ directory.

Basic Operations

Core HDC operations: binding, bundling, permutation, and similarity.

python examples/basic_operations.py

Classification

End-to-end classification with synthetic data: encode, train, evaluate.

python examples/classification_simple.py

Kanerva’s “Dollar of Mexico”

Structured knowledge representation and analogical reasoning.

python examples/kanerva_example.py

See the HDC Learning tutorial for a step-by-step walkthrough.