On the equivalence of Hopfield Networks and Boltzmann Machines