Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tuia-alg-engineering-py
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mengxiangxuan
tuia-alg-engineering-py
Commits
fc0db678
Commit
fc0db678
authored
Mar 01, 2019
by
mxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
62f80b41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
roc_ks.py
alg-evaluat-system/model_evaluat/roc_ks.py
+2
-6
No files found.
alg-evaluat-system/model_evaluat/roc_ks.py
View file @
fc0db678
...
...
@@ -76,7 +76,7 @@ sql_ctr_roc = '''select ctr_label,pre_ctr,
'''
.
format
(
dt
)
sql_cvr_roc
=
'''select
cvr_label
,pre_cvr,
sql_cvr_roc
=
'''select
is_target_convert
,pre_cvr,
CASE
WHEN rcmd_type=217 THEN 'alg-4.0'
WHEN rcmd_type=25 THEN 'alg-4.0.1'
...
...
@@ -129,12 +129,8 @@ sql_cvr_roc = '''select cvr_label,pre_cvr,
END AS rcmd_name
from
(select * from advert.dws_advert_order_wide_v
4_level_6_di
(select * from advert.dws_advert_order_wide_v
5_level_2_di
where dt='{}' and charge_cnt>0 and ctr_label=1) a
left outer join
tmp.tmp_act_advert_v4_df b on a.advert_id =b.advert_id
where b.advert_id is not null
and pre_cvr is not null
'''
.
format
(
dt
)
cursor
.
execute
(
sql_ctr_roc
)
...
...
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