Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Hyperdimensional computing for machine learning

Project description



Hyperdimensionality computing library for machine learning. This package aims to contain everything needed for training HD models with different settings using various datasets; there are some included in the package.

Getting started


In order to test the code, please make sure you have python 3 installed and the python libraries required:

python3 -m pip install xlsxwriter
python3 -m pip install sklearn
python3 -m pip install numpy
python3 -m pip install tqdm
python3 -m pip install multiprocess


If you plan on contribute to the project and you are confused, please read the documentation under ./doc. It describes the code layout and relationships between files and directories. It also contains several examples on how to use the package.


If you only plan to test the existing code, make sure you have the following directories created in the project source:

mkdir ./encoded/
mkdir ./models/
mkdir ./out/
mkdir ./out/ssl/
mkdir ./out/sup/
mkdir ./out/recovered/

To run, depending what is the script you want to run, just do:

python3 src/hd-lib/ path/to/dataset/dataset_name
python3 src/hd-lib/ path/to/dataset/


Package started by Alejandro Hernández Cano. If you are interested in expanding the package but are getting stuck trying to figuring out the code, please feel free to email me any question at


  • Yesong Kim for initial code containing encoding, training, etc, several other resources and feedback
  • Mohsen Imani for initial code for semi-supervised learning and various resources and feedback
  • Tajana Rosing for various resources and feedback
  • All the people at UCSD and other universities that have been working on the theory behind this project, those that have ran tests previously and written code initially

Project details

Release history Release notifications

This version


Download files

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

Files for pyhd, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyhd-0.1-py3-none-any.whl (11.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page