DeepLearning icon indicating copy to clipboard operation
DeepLearning copied to clipboard

RBM Weight Update - Python

Open junku901 opened this issue 11 years ago • 0 comments

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

junku901 avatar May 07 '14 09:05 junku901