Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
book
提交
725e8c19
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看板
提交
725e8c19
编写于
3月 08, 2017
作者:
T
Tao Luo
提交者:
GitHub
3月 08, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #187 from qingqing01/juypter_test
Fix README.en.md in MNIST for jupyter.
上级
936c0c30
4abcdd0f
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
10 addition
and
10 deletion
+10
-10
recognize_digits/README.en.md
recognize_digits/README.en.md
+2
-2
recognize_digits/README.md
recognize_digits/README.md
+2
-2
recognize_digits/index.en.html
recognize_digits/index.en.html
+2
-2
recognize_digits/index.html
recognize_digits/index.html
+2
-2
recognize_digits/train.py
recognize_digits/train.py
+2
-2
未找到文件。
recognize_digits/README.en.md
浏览文件 @
725e8c19
...
@@ -240,7 +240,7 @@ def event_handler(event):
...
@@ -240,7 +240,7 @@ def event_handler(event):
print
"Pass %d, Batch %d, Cost %f, %s"
%
(
print
"Pass %d, Batch %d, Cost %f, %s"
%
(
event
.
pass_id
,
event
.
batch_id
,
event
.
cost
,
event
.
metrics
)
event
.
pass_id
,
event
.
batch_id
,
event
.
cost
,
event
.
metrics
)
if
isinstance
(
event
,
paddle
.
event
.
EndPass
):
if
isinstance
(
event
,
paddle
.
event
.
EndPass
):
result
=
trainer
.
test
(
reader
=
paddle
.
reader
.
batched
(
result
=
trainer
.
test
(
reader
=
paddle
.
batch
(
paddle
.
dataset
.
mnist
.
test
(),
batch_size
=
128
))
paddle
.
dataset
.
mnist
.
test
(),
batch_size
=
128
))
print
"Test with Pass %d, Cost %f, %s
\n
"
%
(
print
"Test with Pass %d, Cost %f, %s
\n
"
%
(
event
.
pass_id
,
result
.
cost
,
result
.
metrics
)
event
.
pass_id
,
result
.
cost
,
result
.
metrics
)
...
@@ -248,7 +248,7 @@ def event_handler(event):
...
@@ -248,7 +248,7 @@ def event_handler(event):
result
.
metrics
[
'classification_error_evaluator'
]))
result
.
metrics
[
'classification_error_evaluator'
]))
trainer
.
train
(
trainer
.
train
(
reader
=
paddle
.
reader
.
batched
(
reader
=
paddle
.
batch
(
paddle
.
reader
.
shuffle
(
paddle
.
reader
.
shuffle
(
paddle
.
dataset
.
mnist
.
train
(),
buf_size
=
8192
),
paddle
.
dataset
.
mnist
.
train
(),
buf_size
=
8192
),
batch_size
=
128
),
batch_size
=
128
),
...
...
recognize_digits/README.md
浏览文件 @
725e8c19
...
@@ -245,7 +245,7 @@ def event_handler(event):
...
@@ -245,7 +245,7 @@ def event_handler(event):
print
"Pass %d, Batch %d, Cost %f, %s"
%
(
print
"Pass %d, Batch %d, Cost %f, %s"
%
(
event
.
pass_id
,
event
.
batch_id
,
event
.
cost
,
event
.
metrics
)
event
.
pass_id
,
event
.
batch_id
,
event
.
cost
,
event
.
metrics
)
if
isinstance
(
event
,
paddle
.
event
.
EndPass
):
if
isinstance
(
event
,
paddle
.
event
.
EndPass
):
result
=
trainer
.
test
(
reader
=
paddle
.
reader
.
batched
(
result
=
trainer
.
test
(
reader
=
paddle
.
batch
(
paddle
.
dataset
.
mnist
.
test
(),
batch_size
=
128
))
paddle
.
dataset
.
mnist
.
test
(),
batch_size
=
128
))
print
"Test with Pass %d, Cost %f, %s
\n
"
%
(
print
"Test with Pass %d, Cost %f, %s
\n
"
%
(
event
.
pass_id
,
result
.
cost
,
result
.
metrics
)
event
.
pass_id
,
result
.
cost
,
result
.
metrics
)
...
@@ -253,7 +253,7 @@ def event_handler(event):
...
@@ -253,7 +253,7 @@ def event_handler(event):
result
.
metrics
[
'classification_error_evaluator'
]))
result
.
metrics
[
'classification_error_evaluator'
]))
trainer
.
train
(
trainer
.
train
(
reader
=
paddle
.
reader
.
batched
(
reader
=
paddle
.
batch
(
paddle
.
reader
.
shuffle
(
paddle
.
reader
.
shuffle
(
paddle
.
dataset
.
mnist
.
train
(),
buf_size
=
8192
),
paddle
.
dataset
.
mnist
.
train
(),
buf_size
=
8192
),
batch_size
=
128
),
batch_size
=
128
),
...
...
recognize_digits/index.en.html
浏览文件 @
725e8c19
...
@@ -282,7 +282,7 @@ def event_handler(event):
...
@@ -282,7 +282,7 @@ def event_handler(event):
print "Pass %d, Batch %d, Cost %f, %s" % (
print "Pass %d, Batch %d, Cost %f, %s" % (
event.pass_id, event.batch_id, event.cost, event.metrics)
event.pass_id, event.batch_id, event.cost, event.metrics)
if isinstance(event, paddle.event.EndPass):
if isinstance(event, paddle.event.EndPass):
result = trainer.test(reader=paddle.
reader.batched
(
result = trainer.test(reader=paddle.
batch
(
paddle.dataset.mnist.test(), batch_size=128))
paddle.dataset.mnist.test(), batch_size=128))
print "Test with Pass %d, Cost %f, %s\n" % (
print "Test with Pass %d, Cost %f, %s\n" % (
event.pass_id, result.cost, result.metrics)
event.pass_id, result.cost, result.metrics)
...
@@ -290,7 +290,7 @@ def event_handler(event):
...
@@ -290,7 +290,7 @@ def event_handler(event):
result.metrics['classification_error_evaluator']))
result.metrics['classification_error_evaluator']))
trainer.train(
trainer.train(
reader=paddle.
reader.batched
(
reader=paddle.
batch
(
paddle.reader.shuffle(
paddle.reader.shuffle(
paddle.dataset.mnist.train(), buf_size=8192),
paddle.dataset.mnist.train(), buf_size=8192),
batch_size=128),
batch_size=128),
...
...
recognize_digits/index.html
浏览文件 @
725e8c19
...
@@ -287,7 +287,7 @@ def event_handler(event):
...
@@ -287,7 +287,7 @@ def event_handler(event):
print "Pass %d, Batch %d, Cost %f, %s" % (
print "Pass %d, Batch %d, Cost %f, %s" % (
event.pass_id, event.batch_id, event.cost, event.metrics)
event.pass_id, event.batch_id, event.cost, event.metrics)
if isinstance(event, paddle.event.EndPass):
if isinstance(event, paddle.event.EndPass):
result = trainer.test(reader=paddle.
reader.batched
(
result = trainer.test(reader=paddle.
batch
(
paddle.dataset.mnist.test(), batch_size=128))
paddle.dataset.mnist.test(), batch_size=128))
print "Test with Pass %d, Cost %f, %s\n" % (
print "Test with Pass %d, Cost %f, %s\n" % (
event.pass_id, result.cost, result.metrics)
event.pass_id, result.cost, result.metrics)
...
@@ -295,7 +295,7 @@ def event_handler(event):
...
@@ -295,7 +295,7 @@ def event_handler(event):
result.metrics['classification_error_evaluator']))
result.metrics['classification_error_evaluator']))
trainer.train(
trainer.train(
reader=paddle.
reader.batched
(
reader=paddle.
batch
(
paddle.reader.shuffle(
paddle.reader.shuffle(
paddle.dataset.mnist.train(), buf_size=8192),
paddle.dataset.mnist.train(), buf_size=8192),
batch_size=128),
batch_size=128),
...
...
recognize_digits/train.py
浏览文件 @
725e8c19
...
@@ -89,7 +89,7 @@ def event_handler(event):
...
@@ -89,7 +89,7 @@ def event_handler(event):
print
"Pass %d, Batch %d, Cost %f, %s"
%
(
print
"Pass %d, Batch %d, Cost %f, %s"
%
(
event
.
pass_id
,
event
.
batch_id
,
event
.
cost
,
event
.
metrics
)
event
.
pass_id
,
event
.
batch_id
,
event
.
cost
,
event
.
metrics
)
if
isinstance
(
event
,
paddle
.
event
.
EndPass
):
if
isinstance
(
event
,
paddle
.
event
.
EndPass
):
result
=
trainer
.
test
(
reader
=
paddle
.
reader
.
batched
(
result
=
trainer
.
test
(
reader
=
paddle
.
batch
(
paddle
.
dataset
.
mnist
.
test
(),
batch_size
=
128
))
paddle
.
dataset
.
mnist
.
test
(),
batch_size
=
128
))
print
"Test with Pass %d, Cost %f, %s
\n
"
%
(
event
.
pass_id
,
result
.
cost
,
print
"Test with Pass %d, Cost %f, %s
\n
"
%
(
event
.
pass_id
,
result
.
cost
,
result
.
metrics
)
result
.
metrics
)
...
@@ -98,7 +98,7 @@ def event_handler(event):
...
@@ -98,7 +98,7 @@ def event_handler(event):
trainer
.
train
(
trainer
.
train
(
reader
=
paddle
.
reader
.
batched
(
reader
=
paddle
.
batch
(
paddle
.
reader
.
shuffle
(
paddle
.
reader
.
shuffle
(
paddle
.
dataset
.
mnist
.
train
(),
buf_size
=
8192
),
paddle
.
dataset
.
mnist
.
train
(),
buf_size
=
8192
),
batch_size
=
128
),
batch_size
=
128
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录