diff options
author | AdeB <adbrebs@gmail.com> | 2015-06-24 15:12:15 -0400 |
---|---|---|
committer | AdeB <adbrebs@gmail.com> | 2015-06-24 15:12:15 -0400 |
commit | 88cdc3f8047a05bc5971eaa915ca6626f89a3e78 (patch) | |
tree | af9bc201cf442588492316b2360bd0bd16c8b843 /train.py | |
parent | bd08e452093bba68fe2d79b1e9da76488b203720 (diff) | |
download | taxi-88cdc3f8047a05bc5971eaa915ca6626f89a3e78.tar.gz taxi-88cdc3f8047a05bc5971eaa915ca6626f89a3e78.zip |
New configs. training step rule out of train.py
Diffstat (limited to 'train.py')
-rwxr-xr-x | train.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -11,7 +11,7 @@ from functools import reduce from theano import tensor from blocks import roles -from blocks.algorithms import AdaDelta, CompositeRule, GradientDescent, RemoveNotFinite, StepRule +from blocks.algorithms import AdaDelta, CompositeRule, GradientDescent, RemoveNotFinite, StepRule, Momentum from blocks.extensions import Printing, FinishAfter, SimpleExtension from blocks.extensions.monitoring import DataStreamMonitoring, TrainingDataMonitoring @@ -136,8 +136,7 @@ if __name__ == "__main__": cost=cost, step_rule=CompositeRule([ ElementwiseRemoveNotFinite(), - AdaDelta(), - #Momentum(learning_rate=config.learning_rate, momentum=config.momentum), + config.step_rule, ]), params=params) |