Skip to main content

Hebbian/Anti-Hebbian Learning for Pytorch

Project description

alt text

Figure 1: HaH block for image classification DNNs.

Hebbian/Anti-Hebbian Learning for Pytorch

If you have questions you can contact metehancekic [at] ucsb [dot] edu

Pre-requisites

Install the dependencies

numpy==1.20.2 torch==1.10.2

How to install

We have a pypi module which can be installed simply with following command:

python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps hahtorch

Or one can clone the repository.

git clone git@github.com:metehancekic/HaH.git

Experiments

We used CIFAR-10 image classification to show the effectiveness of our module. We train a VGG16 in standard fashion and train another VGG16 that contains HaHblocks with layer-wise HaHCost as a supplement.

CIFAR10 Image Classification with VGG16 model as Backbone

alt text

Figure 2: HaH VGG16, our proposed architecture for HaH training.

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

hahtorch-0.0.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

hahtorch-0.0.3-py2.py3-none-any.whl (8.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hahtorch-0.0.3.tar.gz.

File metadata

  • Download URL: hahtorch-0.0.3.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.12

File hashes

Hashes for hahtorch-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ef9167414b359b2a1e2baddb0df5e56f02e7341226eba1a42609d04127dc1cf2
MD5 77c99afd7db6954478d4688385f89013
BLAKE2b-256 552069ac2012d53ccb6ec1bfd8eb0a1060622e4da716056ecb0aaa5f2b270133

See more details on using hashes here.

File details

Details for the file hahtorch-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: hahtorch-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.12

File hashes

Hashes for hahtorch-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1eef44f8d004031b0b6b2c3313f6bb111ebd74ad1557e141f19bcfaafc733594
MD5 46e7ccc3cb5c6783c75d4c330c7b2ef5
BLAKE2b-256 75caf5fdd7633d3f7fe1ab3e5b849418ef34c597120b1399ab8783a46abe3cd8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page