Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#234 from jacquesqiao/reduce-fpe
Browse files Browse the repository at this point in the history
reduce fpe of machine_translation
  • Loading branch information
gongweibao authored Mar 20, 2017
2 parents 15d7d03 + a8db81c commit b4eede3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions machine_translation/README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ for param in parameters.keys():
```python
optimizer = paddle.optimizer.Adam(
learning_rate=5e-5,
regularization=paddle.optimizer.L2Regularization(rate=1e-3))
regularization=paddle.optimizer.L2Regularization(rate=8e-4))
trainer = paddle.trainer.SGD(cost=cost,
parameters=parameters,
update_equation=optimizer)
Expand All @@ -423,7 +423,7 @@ for param in parameters.keys():
trainer.train(
reader=wmt14_reader,
event_handler=event_handler,
num_passes=10000,
num_passes=2,
feeding=feeding)
```

Expand Down
4 changes: 2 additions & 2 deletions machine_translation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ for param in parameters.keys():
```python
optimizer = paddle.optimizer.Adam(
learning_rate=5e-5,
regularization=paddle.optimizer.L2Regularization(rate=1e-3))
regularization=paddle.optimizer.L2Regularization(rate=8e-4))
trainer = paddle.trainer.SGD(cost=cost,
parameters=parameters,
update_equation=optimizer)
Expand All @@ -388,7 +388,7 @@ for param in parameters.keys():
trainer.train(
reader=wmt14_reader,
event_handler=event_handler,
num_passes=10000,
num_passes=2,
feeding=feeding)
```

Expand Down
4 changes: 2 additions & 2 deletions machine_translation/api_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def main():
# define optimize method and trainer
optimizer = paddle.optimizer.Adam(
learning_rate=5e-5,
regularization=paddle.optimizer.L2Regularization(rate=1e-3))
regularization=paddle.optimizer.L2Regularization(rate=8e-4))
trainer = paddle.trainer.SGD(
cost=cost, parameters=parameters, update_equation=optimizer)

Expand Down Expand Up @@ -137,7 +137,7 @@ def event_handler(event):
trainer.train(
reader=wmt14_reader,
event_handler=event_handler,
num_passes=10000,
num_passes=2,
feeding=feeding)


Expand Down
4 changes: 2 additions & 2 deletions machine_translation/index.en.html
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
```python
optimizer = paddle.optimizer.Adam(
learning_rate=5e-5,
regularization=paddle.optimizer.L2Regularization(rate=1e-3))
regularization=paddle.optimizer.L2Regularization(rate=8e-4))
trainer = paddle.trainer.SGD(cost=cost,
parameters=parameters,
update_equation=optimizer)
Expand All @@ -465,7 +465,7 @@
trainer.train(
reader=wmt14_reader,
event_handler=event_handler,
num_passes=10000,
num_passes=2,
feeding=feeding)
```

Expand Down
4 changes: 2 additions & 2 deletions machine_translation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@
```python
optimizer = paddle.optimizer.Adam(
learning_rate=5e-5,
regularization=paddle.optimizer.L2Regularization(rate=1e-3))
regularization=paddle.optimizer.L2Regularization(rate=8e-4))
trainer = paddle.trainer.SGD(cost=cost,
parameters=parameters,
update_equation=optimizer)
Expand All @@ -430,7 +430,7 @@
trainer.train(
reader=wmt14_reader,
event_handler=event_handler,
num_passes=10000,
num_passes=2,
feeding=feeding)
```

Expand Down

0 comments on commit b4eede3

Please sign in to comment.