def _sample_even_odd(W_list, b_list, samples, beta, odd=True):
 for i in xrange(odd, len(samples), 2):
  samples[i] = sample_hi_given(samples, i, W_list, b_list, beta)

def _sample_even_odd ( W_list , b_list , samples , beta , odd = True ) : for i in xrange ( odd , len ( samples ) , 2 ) : samples [ i ] = sample_hi_given ( samples , i , W_list , b_list , beta )
sample from the even layers given a list of previous states .