Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(12)  |  Derive(0)  |  Import(1)

src/p/y/pylearn2-HEAD/pylearn2/models/dbm/inference_procedure.py   pylearn2(Download)
import theano
from theano.gof.op import get_debug_values
from pylearn2.models.dbm import block, flatten
from pylearn2.models.dbm.layer import Softmax
from pylearn2.utils import safe_izip, block_gradient, safe_zip
 
        if block_grad == 1:
            H_hat = block(H_hat)
 
        history = [ list(H_hat) ]
 
                if block_grad == i:
                    H_hat = block(H_hat)
 
                history.append(list(H_hat))
 
        if block_grad == 1:
            H_hat = block(H_hat)
 
        history = [ (new_V, list(H_hat)) ]
 
                if block_grad == i:
                    H_hat = block(H_hat)
                    V_hat = block_gradient(V_hat)