comparison deep/stacked_dae/v2/sgd_optimization.py @ 229:02eb98d051fe

Corrigé bug avec nouvelle formule de coût et printout pour cas sur CPU
author fsavard
date Fri, 12 Mar 2010 11:03:51 -0500
parents 851e7ad4a143
children 42005ec87747
comparison
equal deleted inserted replaced
228:851e7ad4a143 229:02eb98d051fe
23 print "TRANSFERING DATASETS (via shared()) TO GPU" 23 print "TRANSFERING DATASETS (via shared()) TO GPU"
24 shared_x = theano.shared(numpy.asarray(data_x, dtype=theano.config.floatX)) 24 shared_x = theano.shared(numpy.asarray(data_x, dtype=theano.config.floatX))
25 shared_y = theano.shared(numpy.asarray(data_y, dtype=theano.config.floatX)) 25 shared_y = theano.shared(numpy.asarray(data_y, dtype=theano.config.floatX))
26 shared_y = T.cast(shared_y, 'int32') 26 shared_y = T.cast(shared_y, 'int32')
27 else: 27 else:
28 print "WILL RUN ON CPU, NOT GPU, SO DATASETS REMAIN IN BYTES"
28 shared_x = theano.shared(data_x) 29 shared_x = theano.shared(data_x)
29 shared_y = theano.shared(data_y) 30 shared_y = theano.shared(data_y)
30 return shared_x, shared_y 31 return shared_x, shared_y
31 32
32 default_series = { \ 33 default_series = { \