Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
f9e27ed6
M
models
项目概览
PaddlePaddle
/
models
大约 1 年 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f9e27ed6
编写于
8月 09, 2018
作者:
Y
Yibing Liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Tiny fixes in text_cls ce
上级
b199f192
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
3 deletion
+3
-3
fluid/sequence_tagging_for_ner/train.py
fluid/sequence_tagging_for_ner/train.py
+1
-1
fluid/text_classification/.run_ce.sh
fluid/text_classification/.run_ce.sh
+0
-0
fluid/text_classification/_ce.py
fluid/text_classification/_ce.py
+2
-2
未找到文件。
fluid/sequence_tagging_for_ner/train.py
浏览文件 @
f9e27ed6
...
@@ -53,7 +53,7 @@ def main(train_data_file, test_data_file, vocab_file, target_file, emb_file,
...
@@ -53,7 +53,7 @@ def main(train_data_file, test_data_file, vocab_file, target_file, emb_file,
chunk_scheme
=
"IOB"
,
chunk_scheme
=
"IOB"
,
num_chunk_types
=
int
(
math
.
ceil
((
label_dict_len
-
1
)
/
2.0
)))
num_chunk_types
=
int
(
math
.
ceil
((
label_dict_len
-
1
)
/
2.0
)))
inference_program
=
fluid
.
default_main_program
().
clone
()
inference_program
=
fluid
.
default_main_program
().
clone
(
for_test
=
True
)
with
fluid
.
program_guard
(
inference_program
):
with
fluid
.
program_guard
(
inference_program
):
test_target
=
chunk_evaluator
.
metrics
+
chunk_evaluator
.
states
test_target
=
chunk_evaluator
.
metrics
+
chunk_evaluator
.
states
inference_program
=
fluid
.
io
.
get_inference_program
(
test_target
)
inference_program
=
fluid
.
io
.
get_inference_program
(
test_target
)
...
...
fluid/text_classification/.run_ce.sh
100644 → 100755
浏览文件 @
f9e27ed6
文件模式从 100644 更改为 100755
fluid/text_classification/_ce.py
浏览文件 @
f9e27ed6
...
@@ -9,7 +9,7 @@ from kpi import CostKpi, DurationKpi, AccKpi
...
@@ -9,7 +9,7 @@ from kpi import CostKpi, DurationKpi, AccKpi
train_acc_kpi
=
AccKpi
(
'train_acc'
,
0.005
,
actived
=
True
)
train_acc_kpi
=
AccKpi
(
'train_acc'
,
0.005
,
actived
=
True
)
train_cost_kpi
=
CostKpi
(
'train_cost'
,
0.005
,
actived
=
True
)
train_cost_kpi
=
CostKpi
(
'train_cost'
,
0.005
,
actived
=
True
)
train_duration_kpi
=
DurationKpi
(
'train_duration'
,
0.0
6
,
actived
=
True
)
train_duration_kpi
=
DurationKpi
(
'train_duration'
,
0.0
5
,
actived
=
True
)
tracking_kpis
=
[
tracking_kpis
=
[
train_acc_kpi
,
train_acc_kpi
,
...
@@ -43,6 +43,6 @@ def log_to_ce(log):
...
@@ -43,6 +43,6 @@ def log_to_ce(log):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
log
=
sys
.
stdin
.
read
()
log
=
sys
.
stdin
.
read
()
print
(
"*****"
)
print
(
"*****"
)
print
log
print
(
log
)
print
(
"****"
)
print
(
"****"
)
log_to_ce
(
log
)
log_to_ce
(
log
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录