DeepLearning
DeepLearning copied to clipboard
RBM Weight Update - Python
self.W += lr * ((numpy.dot(self.input.T, ph_sample) - numpy.dot(nv_samples.T, nh_means)))
I think this code should be self.W += lr * ((numpy.dot(self.input.T, ph_sample) - numpy.dot(nv_samples.T, nh_means)) / len(self.input))