# HG changeset patch # User gdesjardins # Date 1287760311 14400 # Node ID 4ac393ec2eb7ac777af69a4e17c484bb17d13a03 # Parent fbe4a63834419794edfbd8dc265dd042c1ccd94d Fixed comments in leapfrog method diff -r fbe4a6383441 -r 4ac393ec2eb7 pylearn/sampling/hmc.py --- a/pylearn/sampling/hmc.py Fri Oct 22 10:58:57 2010 -0400 +++ b/pylearn/sampling/hmc.py Fri Oct 22 11:11:51 2010 -0400 @@ -95,8 +95,8 @@ pos: theano matrix in leapfrog update equations, represents pos(t), position at time t vel: theano matrix - in leapfrog update equations, represents vel(t + stepsize/2), - velocity at time (t + stepsize/2) + in leapfrog update equations, represents vel(t - stepsize/2), + velocity at time (t - stepsize/2) step: theano scalar scalar value controlling amount by which to move @@ -104,7 +104,7 @@ ------- rval1: [theano matrix, theano matrix] Symbolic theano matrices for new position pos(t + stepsize), and velocity - vel(t+3*stepsize/2) + vel(t + stepsize/2) rval2: dictionary Dictionary of updates for the Scan Op """