JAX-HDC Documentation

JAX-HDC is a high-performance library for Hyperdimensional Computing (HDC) and Vector Symbolic Architectures (VSA) built on JAX.

Features

  • XLA compilation and automatic kernel fusion

  • Native GPU/TPU support through JAX backend

  • Pure functional design enabling JAX transformations (jit, vmap, grad, pmap)

  • Four VSA model implementations: BSC, MAP, HRR, FHRR

  • Feature encoders for discrete, continuous, and high-dimensional data

  • Classification models with test coverage

Quick Start

Installation:

git clone https://github.com/rlogger/jax-hdc.git
cd jax-hdc && pip install -e .

Basic usage:

import jax
from jax_hdc import MAP

model = MAP.create(dimensions=10000)
key = jax.random.PRNGKey(42)

x = model.random(key, (10000,))
y = model.random(key, (10000,))
bound = model.bind(x, y)
similarity = model.similarity(x, y)

Documentation Contents

Additional Information

Indices and tables