# HG changeset patch # User XavierMuller # Date 1266967427 18000 # Node ID 8ceaaf8128915030d0d7a949d710b28d3ed06fda # Parent c958941c1b9de8e7583982d66a7491bc58c9b0b1 changed adaptive lr flag from bool to int for jobman issues diff -r c958941c1b9d -r 8ceaaf812891 baseline_algorithms/mlp/mlp_nist.py --- 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.