comparison deep/stacked_dae/v_sylvain/sgd_optimization.py @ 321:403b9e6ecfaa

finetune NIST+P07 change pour P07+NIST, les experiences n'ont pas ete concluentes
author SylvainPL <sylvain.pannetier.lebeuf@umontreal.ca>
date Fri, 02 Apr 2010 14:54:05 -0400
parents a5abd5c8b4b0
children 048898c1ee55
comparison
equal deleted inserted replaced
320:71ffe2c9bfad 321:403b9e6ecfaa
321 elif ind_test== 1: #For the run with 2 finetunes. It will be faster. 321 elif ind_test== 1: #For the run with 2 finetunes. It will be faster.
322 f = open('params_finetune_NIST.txt', 'w') 322 f = open('params_finetune_NIST.txt', 'w')
323 pickle.dump(parameters_finetune,f) 323 pickle.dump(parameters_finetune,f)
324 f.close() 324 f.close()
325 325
326 elif ind_test== 20: #To keep a track of the value of the parameters 326 elif ind_test== 21: #To keep a track of the value of the parameters
327 f = open('params_finetune_NIST_then_P07.txt', 'w') 327 f = open('params_finetune_P07_then_NIST.txt', 'w')
328 pickle.dump(parameters_finetune,f) 328 pickle.dump(parameters_finetune,f)
329 f.close() 329 f.close()
330 330
331 331
332 #Set parameters like they where right after pre-train or finetune 332 #Set parameters like they where right after pre-train or finetune