No project description provided
Project description
MM-HDC: Maximum-Margin Hyperdimensional Computing
This repository provides an implementation of the multi-class maximum-margin hyperdimensional computing (MM-HDC) classifier that adopts the optimization problem formulation of multi-class Weston-Watkins SVM to HDC.
The algorithm is implemented in the MultiMMHDC class, which can be imported as:
from mmhdc import MultiMMHDC
from mmhdc.utils import HDTransform
You can run the MNIST example from the GitHub repo as follows:
git clone https://github.com/nzeulin/mmhdc.git && cd mmhdc
python -m pip install --upgrade pip && python -m pip install mmhdc
python -m pip install -r example/requirements.txt
python example/example.py --config example/mnist_config.py
C++ backend is highly recommended to use, as it can significantly accelerate the model training. In this case, use python -m pip install mmhdc[cpp].
NOTE: If you don't have gcc installed in your system (required for compiling C++ module), you can install it as a Conda package into your venv: conda install -c conda-forge gxx_linux-64.
Current features
- C++ backend (
libtorch) to enable fast MM-HDC training. - Support of floating-point prototypes and hypervectors.
Citation
If you use this repository in your research, please cite it as software (paper in progress):
@software{zeulin_2026_mm_hdc,
author = {Zeulin, Nikita},
title = {MM-HDC: Maximum-Margin Hyperdimensional Computing},
year = {2026},
url = {https://github.com/nzeulin/mm-hdc}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mmhdc-0.1.0.tar.gz.
File metadata
- Download URL: mmhdc-0.1.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84920f1adc3c7e5e0454ab9f717042a2019ca152f75fc554731d1096b169cd71
|
|
| MD5 |
75b6c3f67ce83140204692a50f26c4f0
|
|
| BLAKE2b-256 |
173ab1fe8e844c3e5acaa56a1ceae01521ddbc377fb65a514a48f2574245e6a7
|
Provenance
The following attestation bundles were made for mmhdc-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on nzeulin/mmhdc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmhdc-0.1.0.tar.gz -
Subject digest:
84920f1adc3c7e5e0454ab9f717042a2019ca152f75fc554731d1096b169cd71 - Sigstore transparency entry: 1253400905
- Sigstore integration time:
-
Permalink:
nzeulin/mmhdc@2177cbedcc95fc63bcc420c483a59b54b3e84cfa -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nzeulin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2177cbedcc95fc63bcc420c483a59b54b3e84cfa -
Trigger Event:
push
-
Statement type:
File details
Details for the file mmhdc-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mmhdc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eeba27b67fe7ec29a6a6c0b78727f1a0e78519be5606b81595ebdca889fe0e89
|
|
| MD5 |
c348dfa8d6a340df2c2d337f86b17778
|
|
| BLAKE2b-256 |
e07bf7656daac45490687aec1833847736e4bf09818e94ea88e8e377914f3895
|
Provenance
The following attestation bundles were made for mmhdc-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on nzeulin/mmhdc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmhdc-0.1.0-py3-none-any.whl -
Subject digest:
eeba27b67fe7ec29a6a6c0b78727f1a0e78519be5606b81595ebdca889fe0e89 - Sigstore transparency entry: 1253400978
- Sigstore integration time:
-
Permalink:
nzeulin/mmhdc@2177cbedcc95fc63bcc420c483a59b54b3e84cfa -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nzeulin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2177cbedcc95fc63bcc420c483a59b54b3e84cfa -
Trigger Event:
push
-
Statement type: