Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
book
提交
a8db81c3
B
book
项目概览
PaddlePaddle
/
book
通知
16
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
40
列表
看板
标记
里程碑
合并请求
37
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
B
book
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
40
Issue
40
列表
看板
标记
里程碑
合并请求
37
合并请求
37
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a8db81c3
编写于
3月 20, 2017
作者:
Q
qiaolongfei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
reduce fpe of machine_translation
上级
df2ba16e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
10 deletion
+10
-10
machine_translation/README.en.md
machine_translation/README.en.md
+2
-2
machine_translation/README.md
machine_translation/README.md
+2
-2
machine_translation/api_train.py
machine_translation/api_train.py
+2
-2
machine_translation/index.en.html
machine_translation/index.en.html
+2
-2
machine_translation/index.html
machine_translation/index.html
+2
-2
未找到文件。
machine_translation/README.en.md
浏览文件 @
a8db81c3
...
@@ -399,7 +399,7 @@ for param in parameters.keys():
...
@@ -399,7 +399,7 @@ for param in parameters.keys():
```python
```python
optimizer = paddle.optimizer.Adam(
optimizer = paddle.optimizer.Adam(
learning_rate=5e-5,
learning_rate=5e-5,
regularization=paddle.optimizer.L2Regularization(rate=
1e-3
))
regularization=paddle.optimizer.L2Regularization(rate=
8e-4
))
trainer = paddle.trainer.SGD(cost=cost,
trainer = paddle.trainer.SGD(cost=cost,
parameters=parameters,
parameters=parameters,
update_equation=optimizer)
update_equation=optimizer)
...
@@ -423,7 +423,7 @@ for param in parameters.keys():
...
@@ -423,7 +423,7 @@ for param in parameters.keys():
trainer.train(
trainer.train(
reader=wmt14_reader,
reader=wmt14_reader,
event_handler=event_handler,
event_handler=event_handler,
num_passes=
10000
,
num_passes=
2
,
feeding=feeding)
feeding=feeding)
```
```
...
...
machine_translation/README.md
浏览文件 @
a8db81c3
...
@@ -361,7 +361,7 @@ for param in parameters.keys():
...
@@ -361,7 +361,7 @@ for param in parameters.keys():
```python
```python
optimizer = paddle.optimizer.Adam(
optimizer = paddle.optimizer.Adam(
learning_rate=5e-5,
learning_rate=5e-5,
regularization=paddle.optimizer.L2Regularization(rate=
1e-3
))
regularization=paddle.optimizer.L2Regularization(rate=
8e-4
))
trainer = paddle.trainer.SGD(cost=cost,
trainer = paddle.trainer.SGD(cost=cost,
parameters=parameters,
parameters=parameters,
update_equation=optimizer)
update_equation=optimizer)
...
@@ -388,7 +388,7 @@ for param in parameters.keys():
...
@@ -388,7 +388,7 @@ for param in parameters.keys():
trainer.train(
trainer.train(
reader=wmt14_reader,
reader=wmt14_reader,
event_handler=event_handler,
event_handler=event_handler,
num_passes=
10000
,
num_passes=
2
,
feeding=feeding)
feeding=feeding)
```
```
...
...
machine_translation/api_train.py
浏览文件 @
a8db81c3
...
@@ -107,7 +107,7 @@ def main():
...
@@ -107,7 +107,7 @@ def main():
# define optimize method and trainer
# define optimize method and trainer
optimizer
=
paddle
.
optimizer
.
Adam
(
optimizer
=
paddle
.
optimizer
.
Adam
(
learning_rate
=
5e-5
,
learning_rate
=
5e-5
,
regularization
=
paddle
.
optimizer
.
L2Regularization
(
rate
=
1e-3
))
regularization
=
paddle
.
optimizer
.
L2Regularization
(
rate
=
8e-4
))
trainer
=
paddle
.
trainer
.
SGD
(
trainer
=
paddle
.
trainer
.
SGD
(
cost
=
cost
,
parameters
=
parameters
,
update_equation
=
optimizer
)
cost
=
cost
,
parameters
=
parameters
,
update_equation
=
optimizer
)
...
@@ -137,7 +137,7 @@ def main():
...
@@ -137,7 +137,7 @@ def main():
trainer
.
train
(
trainer
.
train
(
reader
=
wmt14_reader
,
reader
=
wmt14_reader
,
event_handler
=
event_handler
,
event_handler
=
event_handler
,
num_passes
=
10000
,
num_passes
=
2
,
feeding
=
feeding
)
feeding
=
feeding
)
...
...
machine_translation/index.en.html
浏览文件 @
a8db81c3
...
@@ -441,7 +441,7 @@ for param in parameters.keys():
...
@@ -441,7 +441,7 @@ for param in parameters.keys():
```python
```python
optimizer = paddle.optimizer.Adam(
optimizer = paddle.optimizer.Adam(
learning_rate=5e-5,
learning_rate=5e-5,
regularization=paddle.optimizer.L2Regularization(rate=
1e-3
))
regularization=paddle.optimizer.L2Regularization(rate=
8e-4
))
trainer = paddle.trainer.SGD(cost=cost,
trainer = paddle.trainer.SGD(cost=cost,
parameters=parameters,
parameters=parameters,
update_equation=optimizer)
update_equation=optimizer)
...
@@ -465,7 +465,7 @@ for param in parameters.keys():
...
@@ -465,7 +465,7 @@ for param in parameters.keys():
trainer.train(
trainer.train(
reader=wmt14_reader,
reader=wmt14_reader,
event_handler=event_handler,
event_handler=event_handler,
num_passes=
10000
,
num_passes=
2
,
feeding=feeding)
feeding=feeding)
```
```
...
...
machine_translation/index.html
浏览文件 @
a8db81c3
...
@@ -403,7 +403,7 @@ for param in parameters.keys():
...
@@ -403,7 +403,7 @@ for param in parameters.keys():
```python
```python
optimizer = paddle.optimizer.Adam(
optimizer = paddle.optimizer.Adam(
learning_rate=5e-5,
learning_rate=5e-5,
regularization=paddle.optimizer.L2Regularization(rate=
1e-3
))
regularization=paddle.optimizer.L2Regularization(rate=
8e-4
))
trainer = paddle.trainer.SGD(cost=cost,
trainer = paddle.trainer.SGD(cost=cost,
parameters=parameters,
parameters=parameters,
update_equation=optimizer)
update_equation=optimizer)
...
@@ -430,7 +430,7 @@ for param in parameters.keys():
...
@@ -430,7 +430,7 @@ for param in parameters.keys():
trainer.train(
trainer.train(
reader=wmt14_reader,
reader=wmt14_reader,
event_handler=event_handler,
event_handler=event_handler,
num_passes=
10000
,
num_passes=
2
,
feeding=feeding)
feeding=feeding)
```
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录