Skip to main content

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


Download files

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

Source Distribution

mmhdc-0.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

mmhdc-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for mmhdc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 84920f1adc3c7e5e0454ab9f717042a2019ca152f75fc554731d1096b169cd71
MD5 75b6c3f67ce83140204692a50f26c4f0
BLAKE2b-256 173ab1fe8e844c3e5acaa56a1ceae01521ddbc377fb65a514a48f2574245e6a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mmhdc-0.1.0.tar.gz:

Publisher: publish-pypi.yml on nzeulin/mmhdc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mmhdc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eeba27b67fe7ec29a6a6c0b78727f1a0e78519be5606b81595ebdca889fe0e89
MD5 c348dfa8d6a340df2c2d337f86b17778
BLAKE2b-256 e07bf7656daac45490687aec1833847736e4bf09818e94ea88e8e377914f3895

See more details on using hashes here.

Provenance

The following attestation bundles were made for mmhdc-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on nzeulin/mmhdc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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