Coder Social home page Coder Social logo

hdc's Introduction

Hyperdimensional Computing

This repository implements Hyperdimensional Computing (HDC) models in C++. The models provide solutions to common AI problems but use the HDC framework instead of other usual models such as NNs. The implementations available in this repository are based on papers available in HDC literature.

Models implemented:

  • Language recognition (language): Identify the language an unknown string.
  • VoiceHD (voicehd): Speech recognition with ISOLET dataset.
  • Digit recognition (mnist): Detect a handwritten digit using the MNIST dataset.
  • EMG (emg): Hand gesture recognition.

Running

cmake -B build -S .
cmake --build build # -j<nprocs> to build in parallel

You can create optimized builds by executing:

cmake -B build -S . -DCMAKE_BUILD_TYPE=Release

This generates a binary for each implemented HDC model in the path build/hdc. Execute the binary from the repository's root directory using:

./build/language dataset/language/train dataset/language/test
./build/voicehd dataset/voicehd/train* dataset/voicehd/test*
./build/mnist dataset/mnist dataset/mnist/train* dataset/mnist/test*
./build/emg dataset/emg

Experimental AVX-256 for binary HDC

It is possible to accelerate binary HDC by using its experimental AVX-256 implementation. While it can greatly reduce execution time, it is not safe and guaranteed that the executables will run correctly. You can enable it by defining __ASM_LIBBIN at configure time:

cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS='-march=native -D__ASM_LIBBIN'

hdc's People

Contributors

zeldax64 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

faizol

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.