Hebbian/Anti-Hebbian Learning for Pytorch
Project description
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
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
Built Distribution
File details
Details for the file hahtorch-0.0.2.tar.gz
.
File metadata
- Download URL: hahtorch-0.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | adc9894207b10f0f4d0425cb7a4455a6299f5790b14dbfe0553920750214f033 |
|
MD5 | 9eca30d96967c561cd5a4e3b29956222 |
|
BLAKE2b-256 | 4fec2649d06d8bf0f34e4ea54de7a894fa4124782bb357d26953c7d078b4789f |
File details
Details for the file hahtorch-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: hahtorch-0.0.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e636f8aad1f94081906c3fd5eaa210d431361951381a59452fd37e8b77d0ba8 |
|
MD5 | cbaf52199e47cc8067180cbc6c9d32d7 |
|
BLAKE2b-256 | b8dd2c74da5fa1d71f3a30fd3abb453bcf709ef00abca817e33f9b4b613a9e99 |