Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleRec
提交
730495a7
P
PaddleRec
项目概览
PaddlePaddle
/
PaddleRec
通知
68
Star
12
Fork
5
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
27
列表
看板
标记
里程碑
合并请求
10
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleRec
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
27
Issue
27
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
730495a7
编写于
6月 02, 2020
作者:
W
wuzhihua
提交者:
GitHub
6月 02, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #29 from yaoxuefeng6/add_lr
fix data preprocess bugs
上级
5fe475a0
0ca061cf
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
3 deletion
+4
-3
models/rank/dcn/data/get_slot_data.py
models/rank/dcn/data/get_slot_data.py
+1
-1
models/rank/wide_deep/data/get_slot_data.py
models/rank/wide_deep/data/get_slot_data.py
+2
-1
models/rank/xdeepfm/data/get_slot_data.py
models/rank/xdeepfm/data/get_slot_data.py
+1
-1
未找到文件。
models/rank/dcn/data/get_slot_data.py
浏览文件 @
730495a7
...
@@ -59,7 +59,7 @@ class TrainReader(dg.MultiSlotDataGenerator):
...
@@ -59,7 +59,7 @@ class TrainReader(dg.MultiSlotDataGenerator):
self
.
cat_feat_idx_dict_list
=
[{}
for
_
in
range
(
26
)]
self
.
cat_feat_idx_dict_list
=
[{}
for
_
in
range
(
26
)]
# TODO: set vocabulary dictionary
# TODO: set vocabulary dictionary
vocab_dir
=
"./vocab/"
vocab_dir
=
"./
sample_data/
vocab/"
for
i
in
range
(
26
):
for
i
in
range
(
26
):
lookup_idx
=
1
# remain 0 for default value
lookup_idx
=
1
# remain 0 for default value
for
line
in
open
(
for
line
in
open
(
...
...
models/rank/wide_deep/data/get_slot_data.py
浏览文件 @
730495a7
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
yaml
import
yaml
,
os
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
try
:
try
:
...
...
models/rank/xdeepfm/data/get_slot_data.py
浏览文件 @
730495a7
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
yaml
import
yaml
,
os
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.reader
import
Reader
from
paddlerec.core.utils
import
envs
from
paddlerec.core.utils
import
envs
try
:
try
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录