comparison deep/stacked_dae/v_sylvain/stacked_dae.py @ 309:60cacb9a70e4

Petits changements pour pouvoir utiliser le GPU
author SylvainPL <sylvain.pannetier.lebeuf@umontreal.ca>
date Thu, 01 Apr 2010 13:43:43 -0400
parents c77ffb11f91d
children 54ad8a091783
comparison
equal deleted inserted replaced
308:a76bae0f2388 309:60cacb9a70e4
113 113
114 # if no input is given, generate a variable representing the input 114 # if no input is given, generate a variable representing the input
115 if input == None : 115 if input == None :
116 # we use a matrix because we expect a minibatch of several examples, 116 # we use a matrix because we expect a minibatch of several examples,
117 # each example being a row 117 # each example being a row
118 self.x = T.dmatrix(name = 'input') 118 self.x = T.matrix(name = 'input')
119 else: 119 else:
120 self.x = input 120 self.x = input
121 # Equation (1) 121 # Equation (1)
122 # keep 90% of the inputs the same and zero-out randomly selected subset of 10% of the inputs 122 # keep 90% of the inputs the same and zero-out randomly selected subset of 10% of the inputs
123 # note : first argument of theano.rng.binomial is the shape(size) of 123 # note : first argument of theano.rng.binomial is the shape(size) of