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
1187ed7d
Commit
1187ed7d
authored
Oct 29, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
美购首页匹配度增加灰度过滤
parent
68c0bc7f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
evaluation_metrics.py
eda/smart_rank/evaluation_metrics.py
+2
-1
No files found.
eda/smart_rank/evaluation_metrics.py
View file @
1187ed7d
...
@@ -252,7 +252,8 @@ def get_user_diary_click_info_yesterday(click_date, click_date_tomorrow):
...
@@ -252,7 +252,8 @@ def get_user_diary_click_info_yesterday(click_date, click_date_tomorrow):
AND d.action='on_click_card'
AND d.action='on_click_card'
AND d.click_time>'{click_date}'
AND d.click_time>'{click_date}'
AND d.click_time<'{click_date_tomorrow}'
AND d.click_time<'{click_date_tomorrow}'
AND f.tag_type+0 <'4'+0) tmp2
AND f.tag_type+0 <'4'+0
AND SUBSTR(MD5(d.cl_id),-1,1) IN ('0','1','2','3','4','a','b','c','e')) tmp2
GROUP BY cl_id
GROUP BY cl_id
"""
.
format
(
click_date
=
click_date
,
click_date_tomorrow
=
click_date_tomorrow
)
"""
.
format
(
click_date
=
click_date
,
click_date_tomorrow
=
click_date_tomorrow
)
mysql_results
=
get_data_by_mysql
(
'172.16.40.158'
,
4000
,
'root'
,
'3SYz54LS9#^9sBvC'
,
'jerry_test'
,
sql_device_info_yesterday
)
mysql_results
=
get_data_by_mysql
(
'172.16.40.158'
,
4000
,
'root'
,
'3SYz54LS9#^9sBvC'
,
'jerry_test'
,
sql_device_info_yesterday
)
...
...
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