Tutorials
The tutorials walk you through complete, runnable examples that demonstrate how to use PyHDC to solve real problems. Each tutorial introduces new concepts progressively, so reading them in order is recommended for beginners.
Recommended order
# |
Title |
Audience |
What you will learn |
|---|---|---|---|
1 |
Beginner |
Codebooks, n-gram encoding, class prototypes, similarity-based classification |
|
2 |
Beginner-Intermediate |
Key-value binding, record construction, noisy query, capacity limits |
|
3 |
Intermediate |
PyTorch backend, GPU encoding, batched operations, performance profiling |
|
4 |
Intermediate |
BSC, BSDC density control, BSDC_THIN, sequence encoding, similarity remapping |
|
5 |
Intermediate-Advanced |
Subclassing Encoding, EncodingSpec, wiring components, custom inverse / permute / normalize |
|
6 |
Intermediate-Advanced |
Seeded generators, generator families, reproducibility, custom generator subclass |
Tutorials 3-6 are independent of each other: you can read them in any order after completing Tutorials 1 and 2.