aboutsummaryrefslogtreecommitdiff
path: root/train.py
diff options
context:
space:
mode:
Diffstat (limited to 'train.py')
-rwxr-xr-xtrain.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/train.py b/train.py
index 1b75138..83317c9 100755
--- a/train.py
+++ b/train.py
@@ -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)