Skip to main content

Hyperdimensional computing with Jax

Project description

hyper-jax

Hyperdimensional computing with Jax. This library provides a very minimal implementation of MAP (Multiply, add, permute) operations over bipolar vectors originally proposed here.

Install

Coming soon...

How to use

Generate 2 random vectors with dimension of 10 000

from generator import random_vectors

dimensions = 10000
count = 2

key = random.PRNGKey(0)
vectors = random_vectors(key, dimensions, count)

Bundle two hypervectors

from operation import bundle, unbundle

hypervector = bundle(vectors[0], vectors[1])

Unbundle two hypervectors

# original_vector == vectors[0]
original_vector = unbundle(hypervector, vectors[1])

Bind two hypervectors

from operation import bind, unbind

bound_vector = bind(vectors[0], vectors[1])

Unbind the hypervector

# original_vector == vectors[1]
unbound_vector = unbind(bound_vector, vectors[0])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyper-jax-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyper_jax-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file hyper-jax-0.0.1.tar.gz.

File metadata

  • Download URL: hyper-jax-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for hyper-jax-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7d0dbc575a9f5c7d22be93e4f6ff3b2b658b54d1b56cd4a175c18fb98ea81011
MD5 ab4cc8d4d364acc83f262cb74854c2a7
BLAKE2b-256 0700c4360a895de517da3247bc96a8f46d91a8f8de8b2ff4da37934f24826772

See more details on using hashes here.

File details

Details for the file hyper_jax-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: hyper_jax-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for hyper_jax-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3e2b5e5a46c90b4895a208ef945b19c669c54c349df76d72345b56ed8514be0
MD5 229f78c475c5c7b54c8698354d53649a
BLAKE2b-256 0f455e2dd2e308a9bcd6de5c3b2716395cb467fb665cf6f76761e0765e401544

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page