Skip to main content

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


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 hashes)

Uploaded source

Built Distribution

hopfield4py-0.1.0-py3-none-any.whl (5.5 kB view hashes)

Uploaded py3

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