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
2372f9e4
Commit
2372f9e4
authored
Sep 04, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试获取用户画像方法
parent
6aa119fc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
monitor.py
monitor.py
+5
-2
rerank_esmm.py
rerank_esmm.py
+1
-1
No files found.
monitor.py
View file @
2372f9e4
...
...
@@ -206,9 +206,12 @@ if __name__ == "__main__":
nearby
=
","
.
join
([
str
(
i
)
for
i
in
(
range
(
73
,
76
))])
nation
=
","
.
join
([
str
(
i
)
for
i
in
(
range
(
77
,
80
))])
megacity
=
","
.
join
([
str
(
i
)
for
i
in
(
range
(
81
,
83
))])
#
key_head = "device_diary_queue_rerank:device_id:"
key_head
=
"device_diary_queue_rerank:device_id:"
key_head
=
"device_diary_queue:device_id:"
make_data
(
"868663038800471"
,
"beijing"
,
key_head
)
make_data
(
"868663038800476"
,
"beijing"
,
key_head
)
device_id
=
"868663038800476"
city_id
=
"beijing"
device_id
=
"868663038800471"
...
...
rerank_esmm.py
View file @
2372f9e4
...
...
@@ -189,7 +189,7 @@ if __name__ == "__main__":
users_list
=
get_all_users
()
name_tag
=
get_searchworlds_to_tagid
()
n
=
10
00
n
=
5
00
split_users_list
=
[
users_list
[
i
:
i
+
n
]
for
i
in
range
(
0
,
len
(
users_list
),
n
)]
for
child_users_list
in
split_users_list
:
total_samples
=
list
()
...
...
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