Mercurial > ift6266
comparison baseline/conv_mlp/convolutional_mlp.py @ 246:2024368a8d3d
merge
author | Xavier Glorot <glorotxa@iro.umontreal.ca> |
---|---|
date | Tue, 16 Mar 2010 12:14:10 -0400 |
parents | 168aae8a6419 |
children | a491d3600a77 |
comparison
equal
deleted
inserted
replaced
245:0de14b2034c6 | 246:2024368a8d3d |
---|---|
24 import numpy, theano, cPickle, gzip, time | 24 import numpy, theano, cPickle, gzip, time |
25 import theano.tensor as T | 25 import theano.tensor as T |
26 import theano.sandbox.softsign | 26 import theano.sandbox.softsign |
27 import pylearn.datasets.MNIST | 27 import pylearn.datasets.MNIST |
28 from pylearn.io import filetensor as ft | 28 from pylearn.io import filetensor as ft |
29 from theano.sandbox import conv, downsample | 29 from theano.tensor.signal import downsample |
30 from theano.tensor.nnet import conv | |
30 | 31 |
31 class LeNetConvPoolLayer(object): | 32 class LeNetConvPoolLayer(object): |
32 | 33 |
33 def __init__(self, rng, input, filter_shape, image_shape, poolsize=(2,2)): | 34 def __init__(self, rng, input, filter_shape, image_shape, poolsize=(2,2)): |
34 """ | 35 """ |