from hopfield import HopfieldNeuralNetwork
from utils import generate_image, add_noise


def main():
    xs = generate_image(batchsize=3)
    x = add_noise(xs, 0.2)
    HNN = HopfieldNeuralNetwork()
    HNN.train(xs)

    ys = HNN.recall(x)
    return ys


if __name__ == "__main__":
    main()

d1add07690752f6328c625f3de89d370684ceff9
<mask token>

<mask token>


def main():
    xs = generate_image(batchsize=3)
    x = add_noise(xs, 0.2)
    HNN = HopfieldNeuralNetwork()
    HNN.train(xs)
    ys = HNN.recall(x)
    return ys


<mask token>

<mask token>


def main():
    xs = generate_image(batchsize=3)
    x = add_noise(xs, 0.2)
    HNN = HopfieldNeuralNetwork()
    HNN.train(xs)
    ys = HNN.recall(x)
    return ys


if __name__ == '__main__':
    main()

from hopfield import HopfieldNeuralNetwork
from utils import generate_image, add_noise


def main():
    xs = generate_image(batchsize=3)
    x = add_noise(xs, 0.2)
    HNN = HopfieldNeuralNetwork()
    HNN.train(xs)
    ys = HNN.recall(x)
    return ys


if __name__ == '__main__':
    main()

from hopfield import HopfieldNeuralNetwork
from utils import generate_image, add_noise


def main():
    xs = generate_image(batchsize=3)
    x = add_noise(xs, 0.2)
    HNN = HopfieldNeuralNetwork()
    HNN.train(xs)

    ys = HNN.recall(x)
    return ys


if __name__ == "__main__":
    main()
