Package to run Hopfield model.
Project description
Hopfield4py
With this package it is possible to run the Hopfield model.
For more information about the model see: The Hopfield Network or Wikipedia
Hopfield_Diluted
Install
pip install hopfield4py
Run
import tensorflow as tf
from hopfield4py import Hopfield
data = tf.convert_to_tensor([[1,1,1,1,1,1],[1,-1,-1,1,1,1]])
model = Hopfield(6)
model.load(data)
corrupted = tf.convert_to_tensor([1,-1,-1,1,1,1], dtype=tf.double)
reconstructed = model.reconstruct(corrupted)
Documentation
The documentation is available at https://hopfield4py.readthedocs.io
LICENSE
See LICENSE
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
hopfield4py-0.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file hopfield4py-0.1.0.tar.gz
.
File metadata
- Download URL: hopfield4py-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d58e534ff849db321dd4075b8a6988cb9eadd5470c636f4d9e31645f638d22e |
|
MD5 | 2fb366b0d58439817ad14783101c4fbc |
|
BLAKE2b-256 | 5aa41f7e89cbe5d7d384f18aa56e5ab2b4f2c94449f71af0feaf7b72f42829b1 |
File details
Details for the file hopfield4py-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: hopfield4py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae06f0b517d7c191684c867c2ee1104f57982d4cd34ccdd11e304ea530e1a14 |
|
MD5 | 418f4681850622b13818830f8d2aeb0d |
|
BLAKE2b-256 | 8d8f048beb6da64835f493b14469bd645c11aa6d7127223b0b72671b2a64a7fe |