docs: new tutorials#38
Closed
cvigilv wants to merge 16 commits into
Closed
Conversation
cvigilv
force-pushed
the
docs-new-tutorials
branch
from
March 18, 2026 09:22
0222805 to
6c15ef0
Compare
Rework the "Introduction to HDC" tutorial to teach the operations through a cooking metaphor: map ingredient emojis to hypervectors, then mix (bundle), associate (bind), and order (permute) them to "cook" a taco, a hamburger, and a chicken club sandwich. Uses BinaryHV throughout, aliased to H so the whole tutorial can be rerun in another VSA by changing one line. Covers similarity (Jaccard baseline), the multiset/bundlesequence/ hashtable encoders, ambiguous ingredients via superposition, role querying, and cross-dish analogy. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Fix the Iris example so it compiles and renders end-to-end: - add the missing `using Statistics` (mean) and the Statistics dep - write in-body comments in `traintest` as `##` so Literate keeps them in the code block (indented `#` comments were splitting the function across @example blocks, causing ParseError/undefined-variable cascades) - flesh out the narrative (level encoding rationale, encode/decode round-trip, few-shot framing) and fix the empty API reference link - add callouts/links to the functions used (hashtable, level, encodelevel, decodelevel, convertlevel, nearest_neighbor) Also fix malformed @docs fences in api.md (the code-fence and @docs tag were transposed), so docstrings register and @ref links resolve. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Rework the intro tutorial's mapping section so each ingredient is its own
random hypervector bound directly to an emoji variable (🥩, 🧀, 🧅, ...),
used consistently throughout the bundling/binding/permutation demos, the
taco/burger/sandwich recipes, and the algebra queries.
Drop the "hypervectors are seeded from their emoji" framing from the main
narrative (ingredients are now plain random draws) and instead present
seeding as a dedicated "Seeding hypervectors" tip callout, noting it is
how you get reproducible / object-determined vectors (H("🥩"), H(:beef)).
cvigilv
marked this pull request as ready for review
July 13, 2026 14:03
Collaborator
Author
|
@MichielStock Can you check the tutorials? I implemented a "cooking with HDC" introductory tutorial and a classical Iris dataset prediction tutorial (to highlight continuous encodings mainly) |
cvigilv
force-pushed
the
docs-new-tutorials
branch
from
July 14, 2026 21:58
9993725 to
3b5f6db
Compare
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the new tutorials found in the documentation, based on #32.
Closes #32
Closes #36