Skip to main content

Hyperdimensionality computing machine learning library.

Forked from https://gitlab.com/alehd/hd-lib

Installation and use

Fork this repository and put it in you projects folder or use pip or pipenv:

pip install --user hyperdim

If you are using keras or sklearn it will be easy to use hyperdim. To use a model of dimensionality, say 10000:

from hyperdim.hdmodel import HDModel
from hyperdim.utils import to_categorical

import numpy as np

# Dummy datasets
samples = 100
features = 15
classes = 5

x = np.random.random(size = (samples, features))
y = [ int(np.random.random()*classes) for _ in x ]
y = to_categorical(y)

print(x.shape) # (samples, features)
print(y.shape) # (samples, classes)

# Build model
dimensions = 10000
model = HDModel(features, classes, d = dimensions)

# Fit using 30% of the data for validation, using one_shot_fit only
history = model.fit(x, y, validation_split = 0.3, epochs = 1)

print(history.history["acc"])
print(history.history["val_acc"])

Metadata

Release files for hyperdim 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hyperdim 0.0.6
File Size Uploaded Provenance Actions
hyperdim-0.0.6.tar.gz 6.2 kB Without provenance Details for hyperdim-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hyperdim 0.0.6
File Interpreter ABI Platform Actions
hyperdim-0.0.6-py3-none-any.whl Python 3 none any Details for hyperdim-0.0.6-py3-none-any.whl

Total release size: 13.9 kB

Release files / hyperdim-0.0.6.tar.gz

Download URL hyperdim-0.0.6.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f6264df6cc551784128a4a8744a72e302af92ee44456e4e59650ca5a86f14c82
BLAKE2b-256 checksum
How to use checksums
2af255f1d4257bc83d7c02b73fa139b4e3474420438f7b1ef7f2f6f7f0b90c08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

Release files / hyperdim-0.0.6-py3-none-any.whl

Download URL hyperdim-0.0.6-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec6de4a80d462be977a1eb6a1687b9661cc0e9fc277f46bfb6201fdfe70a7148
BLAKE2b-256 checksum
How to use checksums
ddb5f060fe1221db1370ac284a43d2e26d7a5371d0699c6ace91cc68f5a4c0e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

Security for hyperdim 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page