# HG changeset patch # User SylvainPL # Date 1270083821 14400 # Node ID ed0443f7aad46e746710b650e4ac68ce3d276652 # Parent a78dbbc61f37a04584b185138c58053e7d0c60b1 Ajout d'une protection supplementaire (un peu de paranoia) ainsi que commentaires diff -r a78dbbc61f37 -r ed0443f7aad4 deep/stacked_dae/v_sylvain/nist_sda.py --- a/deep/stacked_dae/v_sylvain/nist_sda.py Wed Mar 31 21:02:27 2010 -0400 +++ b/deep/stacked_dae/v_sylvain/nist_sda.py Wed Mar 31 21:03:41 2010 -0400 @@ -75,7 +75,7 @@ optimizer.pretrain(datasets.nist_all()) elif state['pretrain_choice'] == 1: #To know how many file will be used during pretraining - nb_file = state['pretraining_epochs_per_layer'] + nb_file = int(state['pretraining_epochs_per_layer']) state['pretraining_epochs_per_layer'] = 1 #Only 1 time over the dataset if nb_file >=100: sys.exit("The code does not support this much pretraining epoch (99 max with P07).\n"+