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
55d91c70
Commit
55d91c70
authored
Oct 16, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改保留位数
parent
7c6dad67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ctr-56.py
ctr-56.py
+3
-3
No files found.
ctr-56.py
View file @
55d91c70
...
...
@@ -49,7 +49,7 @@ def ctr_all():
cover
=
len
(
day_all
&
set
(
device_id
))
print
(
"当天尾号5或6活跃用户覆盖数:"
)
print
(
cover
)
cover_percent
=
cover
/
len
(
day_all
)
cover_percent
=
format
(
cover
/
len
(
day_all
),
".3f"
)
print
(
"当天尾号5或6活跃用户覆盖率:"
)
print
(
cover_percent
)
sql_click
=
"select count(cid) from data_feed_click "
\
...
...
@@ -65,7 +65,7 @@ def ctr_all():
exp
=
cursor
.
fetchone
()[
0
]
print
(
"曝光数:"
+
str
(
exp
))
print
(
"点击率:"
+
str
(
click
/
exp
))
return
len
(
day_all
),
cover
,
cover_percent
,
click
,
exp
,
click
/
exp
return
len
(
day_all
),
cover
,
cover_percent
,
click
,
exp
,
format
(
click
/
exp
,
".6f"
)
def
ctr
():
...
...
@@ -85,7 +85,7 @@ def ctr():
print
(
"实验用户曝光数:"
+
str
(
exp
))
print
(
"实验用户点击率:"
+
str
(
click
/
exp
))
return
click
,
exp
,
click
/
exp
return
click
,
exp
,
format
(
click
/
exp
,
".6f"
)
def
rate2file
():
...
...
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