diluted hopfield

Run the diluted version of the model

class hopfield4py.diluted_Hopfield(N: int)
load(data)

Train number od memories. The number of memories is automatically inferred from data.shape[0]

Parameters

data – tensor of shape (,Nspins) with data to train

reconstruct(corrupted: tensorflow.python.framework.ops.Tensor)tensorflow.python.framework.ops.Tensor

Reconstruct a memory

Parameters

corrupted – Corrupted memory

train()None

set the weights