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
4e88fce9
Commit
4e88fce9
authored
Oct 16, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1e4ca86c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
evaluation_metrics.py
eda/smart_rank/evaluation_metrics.py
+7
-12
No files found.
eda/smart_rank/evaluation_metrics.py
View file @
4e88fce9
...
@@ -337,16 +337,20 @@ if __name__ == '__main__':
...
@@ -337,16 +337,20 @@ if __name__ == '__main__':
for
action
in
action_type
:
for
action
in
action_type
:
# 获取昨天产生行为的设备id、以及行为对应的tag
# 获取昨天产生行为的设备id、以及行为对应的tag
action_type_detail
=
""
device_ids_lst
=
list
()
device_ids_lst
=
list
()
all_device_action_tags
=
dict
()
all_device_action_tags
=
dict
()
if
"order"
in
action_type
:
if
action
==
"order"
:
device_ids_lst
,
all_device_action_tags
=
get_user_order_info_yesterday
(
order_date
,
order_date_tomorrow
)
device_ids_lst
,
all_device_action_tags
=
get_user_order_info_yesterday
(
order_date
,
order_date_tomorrow
)
elif
"diary"
in
action_type
:
action_type_detail
=
"昨天下单了的用户"
elif
action
==
"diary"
:
device_ids_lst
,
all_device_action_tags
=
get_user_diary_click_info_yesterday
(
order_date
,
device_ids_lst
,
all_device_action_tags
=
get_user_diary_click_info_yesterday
(
order_date
,
order_date_tomorrow
)
order_date_tomorrow
)
elif
"service"
in
action_type
:
action_type_detail
=
"昨天在首页精选点击了日记的用户"
elif
action
==
"service"
:
device_ids_lst
,
all_device_action_tags
=
get_user_service_click_info_yesterday
(
order_date
,
device_ids_lst
,
all_device_action_tags
=
get_user_service_click_info_yesterday
(
order_date
,
order_date_tomorrow
)
order_date_tomorrow
)
action_type_detail
=
"昨天在美购首页点击了美购的用户"
else
:
else
:
break
break
...
@@ -386,15 +390,6 @@ if __name__ == '__main__':
...
@@ -386,15 +390,6 @@ if __name__ == '__main__':
log2
.
info
({
"统计日期"
:
my_today
})
log2
.
info
({
"统计日期"
:
my_today
})
log2
.
info
({
"参数信息"
:
args
})
log2
.
info
({
"参数信息"
:
args
})
log2
.
info
({
"版本"
:
"英赫版"
if
version
==
1
else
"翔宇版"
})
log2
.
info
({
"版本"
:
"英赫版"
if
version
==
1
else
"翔宇版"
})
action_type_detail
=
""
if
"order"
in
action_type
:
action_type_detail
=
"昨天下单了的用户"
elif
"diary"
in
action_type
:
action_type_detail
=
"昨天在首页精选点击了日记的用户"
elif
"service"
in
action_type
:
action_type_detail
=
"昨天在美购首页点击了美购的用户"
else
:
pass
log2
.
info
({
"统计用户"
:
action_type_detail
})
log2
.
info
({
"统计用户"
:
action_type_detail
})
for
device
in
no_coincide_devices
:
for
device
in
no_coincide_devices
:
no_coincide_devices_debug
=
dict
()
no_coincide_devices_debug
=
dict
()
...
...
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