Minimal library to construct Hierarchical Associative Memories
Project description
Barebones-HAMUX
HAMUX built using equinox, minimal implementation. A temporary solution as HAMUX is being rebuilt.
Build any hopfield network using energy fundamentals. See the original HAMUX documentation for explanation.
Install: File copy
All logic is in one file: hamux.py
. Please copy this file into whatever project you are working on, and modify as needed. You will need to manually install dependencies:
pip install equinox jax
pip install pytest # for tests
Install correct version of jaxlib
for your hardware (e.g., to run on GPUs).
Run demo.ipynb
for an example training on MNIST. Works best with GPU
Install: Pip
Tests
All basic tests for this package are in test.py
.
pytest test.py
Citation
If this repository is useful for this work, please cite the following:
@inproceedings{
hoover2022universal,
title={A Universal Abstraction for Hierarchical Hopfield Networks},
author={Benjamin Hoover and Duen Horng Chau and Hendrik Strobelt and Dmitry Krotov},
booktitle={The Symbiosis of Deep Learning and Differential Equations II},
year={2022},
url={https://openreview.net/forum?id=SAv3nhzNWhw}
}
Project details
Release history Release notifications | RSS feed
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 bbhamux-0.2.0.tar.gz
.
File metadata
- Download URL: bbhamux-0.2.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ace733398527b55ef8838131cae7a3ee663eca6883f60ad2842ac1bbb55518c8 |
|
MD5 | fb061cc9e3999c2a648cc04b1c5cc4b7 |
|
BLAKE2b-256 | 90311c98c3038983a6666bd435b36fa98dfe6072b207f2373c4ed5d169d1c594 |
File details
Details for the file bbhamux-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: bbhamux-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87753996081c0f0d51ae5e6d9269fbcc37ad1ae14de410879b4a65a2c306cde1 |
|
MD5 | 1ba363c98a03be65e33af0713b8db8b4 |
|
BLAKE2b-256 | 9bc1587f8be2be601720150c928ed70ae703a4f43cc6dadb7bad29a25bfcde86 |