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

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

src/p/y/pylearn2-HEAD/pylearn2/datasets/stl10.py   pylearn2(Download)
        for i in xrange(self.X.shape[0]):
            mat = X[i:i+1,:]
            topo = self.get_topological_view(mat)
            for j in xrange(topo.shape[3]):
                temp = topo[0,:,:,j].T.copy()

src/p/y/pylearn2-HEAD/pylearn2/datasets/tests/test_dense_design_matrix.py   pylearn2(Download)
    X = d1.get_design_matrix()
    d2 = DenseDesignMatrix(X = X, view_converter = d1.view_converter)
    topo_view_2 = d2.get_topological_view()
    assert np.allclose(topo_view,topo_view_2)
    X = rng.randn(*X.shape)
    topo_view_3 = d2.get_topological_view(X)

src/p/y/pylearn2-HEAD/pylearn2/datasets/tests/test_preprocessing.py   pylearn2(Download)
    dataset.apply_preprocessor(reassemblor)
 
    new_topo = dataset.get_topological_view()
 
    assert new_topo.shape == topo.shape