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

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

src/p/y/pylearn2-HEAD/pylearn2/models/tests/test_autoencoder.py   pylearn2(Download)
    X = tensor.matrix()
    data = np.random.randn(10, 5).astype(config.floatX)
    ff = theano.function([X], model.higher_order_penalty(X))
    assert type(ff(data)) == np.ndarray