# HG changeset patch # User James Bergstra # Date 1282593850 14400 # Node ID 9cac1ecaeef7af6c121d784d87ce622e2efa3adb # Parent 4cbd65cf902d70bda52b423b268cea8e8a532dec mcRBM - changed init of U to match M'A.R's code diff -r 4cbd65cf902d -r 9cac1ecaeef7 pylearn/algorithms/mcRBM.py --- a/pylearn/algorithms/mcRBM.py Mon Aug 23 16:03:38 2010 -0400 +++ b/pylearn/algorithms/mcRBM.py Mon Aug 23 16:04:10 2010 -0400 @@ -265,7 +265,8 @@ # initialization taken from Marc'Aurelio return cls( - U = numpy_project_onto_ball(rng.randn(n_I, n_F).T).T, + #U = numpy_project_onto_ball(rng.randn(n_I, n_F).T).T, + U = 0.2 * rng.randn(n_I, n_F), W = rng.randn(n_I, n_J)/np.sqrt((n_I+n_J)/2), a = np.ones(n_I)*(-2), b = np.ones(n_K)*2,