comparison mlp_factory_approach.py @ 215:6fa8fbb0c3f6

tlearn->pylearn in mlp
author James Bergstra <bergstrj@iro.umontreal.ca>
date Thu, 22 May 2008 17:41:14 -0400
parents 9b57ea8c767f
children df3fae88ab46 8bc16220b29a
comparison
equal deleted inserted replaced
214:3c96d23b36ac 215:6fa8fbb0c3f6
2 import numpy 2 import numpy
3 3
4 import theano 4 import theano
5 from theano import tensor as t 5 from theano import tensor as t
6 6
7 from tlearn import dataset, nnet_ops, stopper 7 import dataset, nnet_ops, stopper
8 8
9 9
10 def _randshape(*shape): 10 def _randshape(*shape):
11 return (numpy.random.rand(*shape) -0.5) * 0.001 11 return (numpy.random.rand(*shape) -0.5) * 0.001
12 12