# HG changeset patch # User SylvainPL # Date 1272372163 14400 # Node ID 0d97fead004f904f2b766d2fad65f296c36eba53 # Parent 44094ff28ed1d929998e011dc776fc53490686ac Changement pour prendre en compte l'option finetune amelioree pour PNIST07 diff -r 44094ff28ed1 -r 0d97fead004f deep/stacked_dae/v_sylvain/train_error.py --- a/deep/stacked_dae/v_sylvain/train_error.py Tue Apr 27 08:41:58 2010 -0400 +++ b/deep/stacked_dae/v_sylvain/train_error.py Tue Apr 27 08:42:43 2010 -0400 @@ -112,6 +112,16 @@ optimizer.training_error(datasets.nist_P07(maxsize=maximum_exemples)) print "For" + str(maximum_exemples) + "over the PNIST07 training set: " optimizer.training_error(datasets.PNIST07(maxsize=maximum_exemples)) + + if os.path.exists(PATH+'params_finetune_PNIST07_then_NIST.txt'): + print ('\n finetune = PNIST07 then NIST') + optimizer.reload_parameters(PATH+'params_finetune_PNIST07_then_NIST.txt') + print "For" + str(maximum_exemples) + "over the NIST training set: " + optimizer.training_error(datasets.nist_all(maxsize=maximum_exemples)) + print "For" + str(maximum_exemples) + "over the P07 training set: " + optimizer.training_error(datasets.nist_P07(maxsize=maximum_exemples)) + print "For" + str(maximum_exemples) + "over the PNIST07 training set: " + optimizer.training_error(datasets.PNIST07(maxsize=maximum_exemples)) channel.save()