Mercurial > ift6266
comparison deep/stacked_dae/v_sylvain/stacked_dae.py @ 235:ecb69e17950b
correction de bugs
author | SylvainPL <sylvain.pannetier.lebeuf@umontreal.ca> |
---|---|
date | Sun, 14 Mar 2010 20:25:12 -0400 |
parents | 02ed13244133 |
children | 02b141a466b4 |
comparison
equal
deleted
inserted
replaced
234:c452e3a0a3b1 | 235:ecb69e17950b |
---|---|
202 # allocate symbolic variables for the data | 202 # allocate symbolic variables for the data |
203 ##index = T.lscalar() # index to a [mini]batch | 203 ##index = T.lscalar() # index to a [mini]batch |
204 self.x = T.matrix('x') # the data is presented as rasterized images | 204 self.x = T.matrix('x') # the data is presented as rasterized images |
205 self.y = T.ivector('y') # the labels are presented as 1D vector of | 205 self.y = T.ivector('y') # the labels are presented as 1D vector of |
206 # [int] labels | 206 # [int] labels |
207 ensemble = T.matrix('ensemble') | |
208 ensemble_x = T.matrix('ensemble_x') | |
209 ensemble_y = T.ivector('ensemble_y') | |
207 | 210 |
208 for i in xrange( self.n_layers ): | 211 for i in xrange( self.n_layers ): |
209 # construct the sigmoidal layer | 212 # construct the sigmoidal layer |
210 | 213 |
211 # the size of the input is either the number of hidden units of | 214 # the size of the input is either the number of hidden units of |