HoloVec Examples¶
Demonstrations and tutorials for hyperdimensional computing with HoloVec
This directory contains comprehensive, well-documented examples covering everything from 5-minute quickstarts to advanced theoretical validation. All examples are designed to be intuitive, executable, and suitable for integration into tutorials and documentation.
Quick Start¶
New to HoloVec? Start here with these foundational examples:
00_quickstart.py- Get started in 5 minutes01_basic_operations.py- Understand core VSA operations02_models_comparison.py- Learn when to use each model
Learning Paths¶
Path 1: Absolute Beginner¶
Time: ~30 minutes
00_quickstart.py- Get started in 5 minutes01_basic_operations.py- Understand core VSA operations02_models_comparison.py- Learn when to use each model10_encoders_scalar.py- Encode continuous values13_encoders_position_binding.py- Encode sequences
Path 2: Application Developer¶
Time: ~1-2 hours
Start with Path 1 basics
Choose your domain:
Text/NLP:
14_encoders_ngram.py→20_app_text_classification.pyImages:
17_encoders_image.py→21_app_image_recognition.pySequences:
15_encoders_trajectory.py→22_app_gesture_recognition.py
Path 3: Researcher / Advanced User¶
Time: ~2-3 hours
Complete Path 1 and 2
Explore advanced topics:
Theory:
30_theory_fpe_validation.py,32_distributed_representations.pyPerformance:
31_performance_benchmarks.pyMemory:
27_cleanup_strategies.py,28_factorization_methods.py
Browse All Examples¶
Below you’ll find all available examples organized by category.
Demonstration of N-gram Encoder for local sequence pattern encoding.
Demonstration of Trajectory Encoder for continuous sequence encoding.
Demonstration of Image Encoder for 2D spatial data encoding.
Validate FractionalPowerEncoder against theoretical predictions from Frady et al. (2021).
GHRR usage example: diagonality/m sweeps and non-commutativity trends
BSDC-SEG demo: segment-sparse codes, bundling, and segment-wise search