Skip to content

docs: new tutorials#38

Closed
cvigilv wants to merge 16 commits into
Kermit-UGent:mainfrom
cvigilv:docs-new-tutorials
Closed

docs: new tutorials#38
cvigilv wants to merge 16 commits into
Kermit-UGent:mainfrom
cvigilv:docs-new-tutorials

Conversation

@cvigilv

@cvigilv cvigilv commented Oct 30, 2025

Copy link
Copy Markdown
Collaborator

This PR contains the new tutorials found in the documentation, based on #32.

  • docs: add iris dataset example
  • docs: continue working on tutorials
  • docs: add sections to API reference
  • docs: continue with iris example

Closes #32
Closes #36

@cvigilv
cvigilv force-pushed the docs-new-tutorials branch from 0222805 to 6c15ef0 Compare March 18, 2026 09:22
cvigilv and others added 11 commits July 6, 2026 22:07
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
cvigilv marked this pull request as ready for review July 13, 2026 14:03
@cvigilv
cvigilv requested a review from MichielStock July 13, 2026 14:03
@cvigilv

cvigilv commented Jul 13, 2026

Copy link
Copy Markdown
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

cvigilv commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator Author

Closed in favor of #63, as merging main was extremely messy and broke things. #63 cherry-picks the commits from here.

@cvigilv cvigilv closed this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation issues On improving the documentation

1 participant