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
7ddb9cdc
Commit
7ddb9cdc
authored
Aug 10, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pretty output
parent
8746e9ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
getRate.py
eda/recommended_indexs/code/getRate.py
+3
-2
No files found.
eda/recommended_indexs/code/getRate.py
View file @
7ddb9cdc
...
...
@@ -16,7 +16,8 @@ def get_yesterday_date():
def
result2file
(
fpath
):
with
open
(
fpath
,
'w'
)
as
f
:
tplt
=
"{0:
\u3000
<6}
\t
{1:
\u3000
<15}
\t
{2:
\u3000
<15}
\t
{3:
\u3000
<15}
\n
"
line
=
"""内容概览:以下所有数据都是首页的
line
=
"""数据日期:{}
内容概览:以下所有数据都是首页的
1. 比例特征
1.1 answer曝光占比(=answer被曝光数/总cid被曝光数)
1.2 活跃用户点击率(=活跃用户点击次数/活跃用户曝光次数)
...
...
@@ -32,7 +33,7 @@ def result2file(fpath):
具体内容:以下所有数据都是首页的
"""
"""
.
format
(
get_yesterday_date
())
f
.
write
(
line
)
f
.
write
(
"#1. 比例特征
\n
"
)
f
.
write
(
"=================================================================
\n
"
)
...
...
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