Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
PaddleRec
提交
4d0624b6
P
PaddleRec
项目概览
BaiXuePrincess
/
PaddleRec
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleRec
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleRec
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4d0624b6
编写于
5月 08, 2020
作者:
M
malin10
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug
上级
05b1b890
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
7 addition
and
8 deletion
+7
-8
fleet_rec/core/trainers/single_trainer.py
fleet_rec/core/trainers/single_trainer.py
+1
-2
fleet_rec/core/trainers/transpiler_trainer.py
fleet_rec/core/trainers/transpiler_trainer.py
+3
-1
models/recall/word2vec/config.yaml
models/recall/word2vec/config.yaml
+3
-5
models/recall/word2vec/w2v_evaluate_reader.py
models/recall/word2vec/w2v_evaluate_reader.py
+0
-0
models/recall/word2vec/w2v_reader.py
models/recall/word2vec/w2v_reader.py
+0
-0
未找到文件。
fleet_rec/core/trainers/single_trainer.py
浏览文件 @
4d0624b6
...
@@ -111,8 +111,7 @@ class SingleTrainer(TranspileTrainer):
...
@@ -111,8 +111,7 @@ class SingleTrainer(TranspileTrainer):
dataset
=
dataset
,
dataset
=
dataset
,
fetch_list
=
self
.
fetch_vars
,
fetch_list
=
self
.
fetch_vars
,
fetch_info
=
self
.
fetch_alias
,
fetch_info
=
self
.
fetch_alias
,
print_period
=
1
,
print_period
=
self
.
fetch_period
)
debug
=
True
)
self
.
save
(
i
,
"train"
,
is_fleet
=
False
)
self
.
save
(
i
,
"train"
,
is_fleet
=
False
)
context
[
'status'
]
=
'infer_pass'
context
[
'status'
]
=
'infer_pass'
...
...
fleet_rec/core/trainers/transpiler_trainer.py
浏览文件 @
4d0624b6
...
@@ -40,16 +40,18 @@ class TranspileTrainer(Trainer):
...
@@ -40,16 +40,18 @@ class TranspileTrainer(Trainer):
if
state
==
"TRAIN"
:
if
state
==
"TRAIN"
:
dataloader
=
self
.
model
.
_data_loader
dataloader
=
self
.
model
.
_data_loader
namespace
=
"train.reader"
namespace
=
"train.reader"
class_name
=
"TrainReader"
else
:
else
:
dataloader
=
self
.
model
.
_infer_data_loader
dataloader
=
self
.
model
.
_infer_data_loader
namespace
=
"evaluate.reader"
namespace
=
"evaluate.reader"
class_name
=
"EvaluateReader"
batch_size
=
envs
.
get_global_env
(
"batch_size"
,
None
,
namespace
)
batch_size
=
envs
.
get_global_env
(
"batch_size"
,
None
,
namespace
)
reader_class
=
envs
.
get_global_env
(
"class"
,
None
,
namespace
)
reader_class
=
envs
.
get_global_env
(
"class"
,
None
,
namespace
)
reader
=
dataloader_instance
.
dataloader
(
reader_class
,
state
,
self
.
_config_yaml
)
reader
=
dataloader_instance
.
dataloader
(
reader_class
,
state
,
self
.
_config_yaml
)
reader_class
=
envs
.
lazy_instance_by_fliename
(
reader_class
,
"TrainReader"
)
reader_class
=
envs
.
lazy_instance_by_fliename
(
reader_class
,
class_name
)
reader_ins
=
reader_class
(
self
.
_config_yaml
)
reader_ins
=
reader_class
(
self
.
_config_yaml
)
if
hasattr
(
reader_ins
,
'generate_batch_from_trainfiles'
):
if
hasattr
(
reader_ins
,
'generate_batch_from_trainfiles'
):
dataloader
.
set_sample_list_generator
(
reader
)
dataloader
.
set_sample_list_generator
(
reader
)
...
...
models/recall/word2vec/config.yaml
浏览文件 @
4d0624b6
...
@@ -15,7 +15,7 @@ evaluate:
...
@@ -15,7 +15,7 @@ evaluate:
workspace
:
"
fleetrec.models.recall.word2vec"
workspace
:
"
fleetrec.models.recall.word2vec"
reader
:
reader
:
batch_size
:
50
batch_size
:
50
class
:
"
{workspace}/
../
w2v_evaluate_reader.py"
class
:
"
{workspace}/w2v_evaluate_reader.py"
test_data_path
:
"
{workspace}/data/test"
test_data_path
:
"
{workspace}/data/test"
word_id_dict_path
:
"
{workspace}/data/dict/word_id_dict.txt"
word_id_dict_path
:
"
{workspace}/data/dict/word_id_dict.txt"
...
@@ -29,16 +29,14 @@ train:
...
@@ -29,16 +29,14 @@ train:
reader
:
reader
:
batch_size
:
100
batch_size
:
100
class
:
"
{workspace}/
../
w2v_reader.py"
class
:
"
{workspace}/w2v_reader.py"
train_data_path
:
"
{workspace}/data/train"
train_data_path
:
"
{workspace}/data/train"
test_data_path
:
"
{workspace}/data/test"
word_count_dict_path
:
"
{workspace}/data/dict/word_count_dict.txt"
word_count_dict_path
:
"
{workspace}/data/dict/word_count_dict.txt"
word_id_dict_path
:
"
{workspace}/data/dict/word_id_dict.txt"
model
:
model
:
models
:
"
{workspace}/model.py"
models
:
"
{workspace}/model.py"
hyper_parameters
:
hyper_parameters
:
sparse_feature_number
:
354051
sparse_feature_number
:
85
sparse_feature_dim
:
300
sparse_feature_dim
:
300
with_shuffle_batch
:
False
with_shuffle_batch
:
False
neg_num
:
5
neg_num
:
5
...
...
models/recall/w2v_evaluate_reader.py
→
models/recall/w
ord2vec/w
2v_evaluate_reader.py
浏览文件 @
4d0624b6
文件已移动
models/recall/w2v_reader.py
→
models/recall/w
ord2vec/w
2v_reader.py
浏览文件 @
4d0624b6
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录