Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
1ed4a89f
Commit
1ed4a89f
authored
5 years ago
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试获取用户画像方法
parent
25e25353
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
rerank_esmm.py
eda/esmm/Model_pipline/rerank_esmm.py
+1
-1
rerank_esmm.py
rerank_esmm.py
+0
-0
No files found.
eda/esmm/Model_pipline/rerank_esmm.py
View file @
1ed4a89f
...
@@ -52,7 +52,7 @@ def get_user_profile(device_id,top_k = 5):
...
@@ -52,7 +52,7 @@ def get_user_profile(device_id,top_k = 5):
tags
=
[]
tags
=
[]
if
len
(
tag_sort
)
>
top_k
:
if
len
(
tag_sort
)
>
top_k
:
for
i
in
range
(
top_k
):
for
i
in
range
(
top_k
):
tags
.
append
(
i
[
0
])
tags
.
append
(
tag_sort
[
i
]
[
0
])
else
:
else
:
for
i
in
tag_sort
:
for
i
in
tag_sort
:
tags
.
append
(
i
[
0
])
tags
.
append
(
i
[
0
])
...
...
This diff is collapsed.
Click to expand it.
rerank_esmm.py
View file @
1ed4a89f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment