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
3371f5d6
Commit
3371f5d6
authored
Oct 14, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加注释信息
parent
61bfb398
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
evaluation_metrics.py
eda/smart_rank/evaluation_metrics.py
+8
-0
No files found.
eda/smart_rank/evaluation_metrics.py
View file @
3371f5d6
...
...
@@ -111,6 +111,14 @@ def get_user_service_portrait_not_alipay(cl_id, all_word_tags, all_tag_tag_type,
def
get_2_tags_coincide_rate
(
device_order_tags
,
device_portrait_result
,
portrait_top_n
,
coincide_n
):
"""
:param device_order_tags:
:param device_portrait_result:
:param portrait_top_n:
:param coincide_n:
:return: 匹配度:比对的上的用户数/昨天下单了的用户数 * 100
%
比对的上:去掉下单和验证行为的画像的前portrait_top_n个tag 与 用户下单的美购的tag 有coincide_n个重合个数
"""
device_count
=
len
(
device_order_tags
)
# 总的下单设备数
coincide_count
=
0
# 比对的上的设备数
not_coincide_no_portrait
=
0
# 比对不上的且没有画像的设备数
...
...
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