Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
book
提交
ac96a250
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看板
提交
ac96a250
编写于
6月 06, 2018
作者:
N
Nicky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update per sid's comments
上级
a6ed66b9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
2 deletion
+2
-2
05.recommender_system/README.md
05.recommender_system/README.md
+1
-1
05.recommender_system/index.html
05.recommender_system/index.html
+1
-1
未找到文件。
05.recommender_system/README.md
浏览文件 @
ac96a250
...
...
@@ -452,7 +452,7 @@ Use create_lod_tensor(data, lod, place) API to generate LoD Tensor, where `data`
For example, data = [[10, 2, 3], [2, 3]] means that it contains two sequences of indices, of length 3 and 2, respectively.
Correspondingly, lod = [[3, 2]] contains one level of detail info, indicating that
`data`
consists of two sequences of length 3 and 2.
In this infer example, we try to predict rating of movie 'Hunchback of Notre Dame' from
user id 1 info
.
In this infer example, we try to predict rating of movie 'Hunchback of Notre Dame' from
the info of user id 1
.
```
python
infer_movie_id
=
783
infer_movie_name
=
paddle
.
dataset
.
movielens
.
movie_info
()[
infer_movie_id
].
title
...
...
05.recommender_system/index.html
浏览文件 @
ac96a250
...
...
@@ -494,7 +494,7 @@ Use create_lod_tensor(data, lod, place) API to generate LoD Tensor, where `data`
For
example
,
data =
[[10,
2,
3],
[2,
3]]
means
that
it
contains
two
sequences
of
indices
,
of
length
3
and
2,
respectively.
Correspondingly
,
lod =
[[3,
2]]
contains
one
level
of
detail
info
,
indicating
that
`
data
`
consists
of
two
sequences
of
length
3
and
2.
In
this
infer
example
,
we
try
to
predict
rating
of
movie
'
Hunchback
of
Notre
Dame
'
from
user
id
1
info
.
In
this
infer
example
,
we
try
to
predict
rating
of
movie
'
Hunchback
of
Notre
Dame
'
from
the
info
of
user
id
1
.
```
python
infer_movie_id =
783
infer_movie_name =
paddle.dataset.movielens.movie_info()[infer_movie_id].title
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录