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
7c40237f
Commit
7c40237f
authored
Oct 11, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d70dcc7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
evaluation_metrics.py
eda/smart_rank/evaluation_metrics.py
+6
-6
No files found.
eda/smart_rank/evaluation_metrics.py
View file @
7c40237f
...
...
@@ -229,6 +229,12 @@ if __name__ == '__main__':
all_device_portrait_result
[
device
]
=
portrait_result
debug_all_device_portrait_result
[
device
]
=
debug_portrait_result
# 比较两个tag列表的重合率
cmd_portrait_top_n
=
args
.
portrait_top_n
cmd_coincide_n
=
args
.
coincide_n
result
=
get_2_tags_coincide_rate
(
all_device_order_tags2
,
all_device_portrait_result
,
cmd_portrait_top_n
,
cmd_coincide_n
)
# 有画像没匹配上的用户的画像信息
no_coincide_devices
=
result
[
"not_coincide_have_portrait_device_ids"
]
no_coincide_devices_debug
=
dict
()
...
...
@@ -248,12 +254,6 @@ if __name__ == '__main__':
log2
.
info
(
"
\n
"
*
6
)
# 比较两个tag列表的重合率
cmd_portrait_top_n
=
args
.
portrait_top_n
cmd_coincide_n
=
args
.
coincide_n
result
=
get_2_tags_coincide_rate
(
all_device_order_tags2
,
all_device_portrait_result
,
cmd_portrait_top_n
,
cmd_coincide_n
)
# 统计画像更新的耗时和更新的设备数
sql
=
"select count(*) from user_service_portrait_tags where stat_date='{my_today}'"
.
format
(
my_today
=
my_today
)
portrait_device_count
=
get_data_by_mysql
(
'172.16.40.158'
,
4000
,
'root'
,
'3SYz54LS9#^9sBvC'
,
'jerry_test'
,
sql
)
...
...
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