Skip to content

yangzh/hv

Repository files navigation

hv

Docs PyPI Python License

Public release of sparse binary hypervectors and associated learners, powered by the Rust-backed kongming-rs-hv package.

Installation

pip install kongming-rs-hv

Supports Linux, macOS, and Windows on Python 3.10–3.14.

Documentation

Full documentation is available at yangzh.github.io/hv, including:

The published site is deployed from release tags (v*) and tracks the latest kongming-rs-hv release on PyPI. The main branch of this repo is the working head — it may describe APIs or examples that haven't been released yet.

Try Online

Platform Link
Colab — tutorial walkthrough Open In Colab
Colab — hypervector storage Open In Colab
Binder Binder

Applications

Runnable scripts under examples/ including:

See the examples index for walkthroughs.

Community

Questions, ideas, or feedback? Visit GitHub Discussions for announcements, Q&A, and general conversation. For bugs, please use Issues.

For private inquiries, use the contact form.

References

Yang, Zhonghao (2023). Cognitive modeling and learning with sparse binary hypervectors. arXiv:2310.18316 [cs.AI]

License

The Python source code, examples, and documentation in this repository are licensed under the MIT License.

The underlying engine distributed via PyPI (kongming-rs-hv), however, is proprietary.