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
Metadata
Release files for hopfield4py 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hopfield4py-0.1.0.tar.gz | 3.6 kB | Without provenance | Details for hopfield4py-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hopfield4py-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for hopfield4py-0.1.0-py3-none-any.whl |
Total release size: 9.0 kB
Release files / hopfield4py-0.1.0.tar.gz
| Download URL | hopfield4py-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d58e534ff849db321dd4075b8a6988cb9eadd5470c636f4d9e31645f638d22e
|
|
BLAKE2b-256 checksum How to use checksums |
5aa41f7e89cbe5d7d384f18aa56e5ab2b4f2c94449f71af0feaf7b72f42829b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / hopfield4py-0.1.0-py3-none-any.whl
| Download URL | hopfield4py-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ae06f0b517d7c191684c867c2ee1104f57982d4cd34ccdd11e304ea530e1a14
|
|
BLAKE2b-256 checksum How to use checksums |
8d8f048beb6da64835f493b14469bd645c11aa6d7127223b0b72671b2a64a7fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for hopfield4py 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.