Mercurial > ift6266
changeset 145:8ceaaf812891
changed adaptive lr flag from bool to int for jobman issues
author | XavierMuller |
---|---|
date | Tue, 23 Feb 2010 18:23:47 -0500 |
parents | c958941c1b9d |
children | 33038ab4e799 |
files | baseline_algorithms/mlp/mlp_nist.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/baseline_algorithms/mlp/mlp_nist.py Tue Feb 23 18:16:55 2010 -0500 +++ b/baseline_algorithms/mlp/mlp_nist.py Tue Feb 23 18:23:47 2010 -0500 @@ -163,7 +163,7 @@ def mlp_full_nist( verbose = False,\ - adaptive_lr = False,\ + adaptive_lr = 0,\ train_data = 'all/all_train_data.ft',\ train_labels = 'all/all_train_labels.ft',\ test_data = 'all/all_test_data.ft',\ @@ -399,7 +399,7 @@ # test it on the test set # however, if adaptive_lr is true, try reducing the lr to # get us out of an oscilliation - if adaptive_lr==True: + if adaptive_lr==1: classifier.lr.value=classifier.lr.value/2.0 test_score = 0.