Mercurial > pylearn
changeset 978:ab4bc97ca060
mcRBM - particles initialized w randn instead of rand()
author | James Bergstra <bergstrj@iro.umontreal.ca> |
---|---|
date | Mon, 23 Aug 2010 16:04:31 -0400 |
parents | 9cac1ecaeef7 |
children | 2a53384d9742 |
files | pylearn/algorithms/mcRBM.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pylearn/algorithms/mcRBM.py Mon Aug 23 16:04:10 2010 -0400 +++ b/pylearn/algorithms/mcRBM.py Mon Aug 23 16:04:31 2010 -0400 @@ -287,7 +287,7 @@ def hmc_sampler(self, n_particles=100, seed=7823748): return HMC_sampler( positions = [as_shared( - np.random.RandomState(seed^20893).rand( + np.random.RandomState(seed^20893).randn( n_particles, self.n_visible ))], energy_fn = lambda p : self.free_energy_given_v(p[0]),