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.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distributions

hahtorch-0.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: hahtorch-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1afd9b50ae99ae233ff5f08b4fb1a47686a5d843674f0104ae4ad734c44b2632
MD5 1ef6c0d46dc181215c6b394995f40358
BLAKE2b-256 d7d79de6fe0a06bf327b7982cdb68a9d45f96d0db75bbc46bd870cb35503ab01

See more details on using hashes here.

File details

Details for the file hahtorch-0.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for hahtorch-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc26c5f66f52bc7cf99ffd2f6431c6bb0fd8b72d3b17cf8809802bad35aa6c48
MD5 4ae3d6f6c89ca510e7f32aa3315dc7d5
BLAKE2b-256 8549f4e7dc136aac25e17056851da66895f8b5fc617046784f6e1c9877e9e1d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hahtorch-0.0.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d46f97a5089d2d941e067362eeb5d52edc67940f44f70bb28e41c108ef1224f1
MD5 1c09d0a01f5a78669184a9237310464c
BLAKE2b-256 798f6b0f62904d7a50bd5e606c1ca1c945d88d420202d85a22088ceeb4d24273

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