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
730b3069
Commit
730b3069
authored
Aug 23, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
0b1d81ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
main.py
eda/recommended_indexs/main.py
+5
-4
No files found.
eda/recommended_indexs/main.py
View file @
730b3069
...
...
@@ -81,6 +81,7 @@ try:
click_zero_uid_detail_result
=
[
click_zero_uid_detail_all
,
click_zero_uid_detail_ios
,
click_zero_uid_detail_android
]
print
(
"已获取无点击用户数激活日期分布"
)
except
:
click_zero_uid_detail_result
=
[]
print
(
"GC life time is shorter than transaction duration"
)
...
...
@@ -175,19 +176,19 @@ def result2file():
f
.
write
(
line
)
f
.
write
(
'
\n
'
)
f
.
write
(
"#1.5点击answer用户占比(=点击answer用户数/曝光answer用户数)
\n
"
)
f
.
write
(
tplt
.
format
(
"平台"
,
"点击answer用户数"
,
"曝光answer用户数"
,
"击answer用户占比"
))
f
.
write
(
tplt
.
format
(
"平台"
,
"点击answer用户数"
,
"曝光answer用户数"
,
"
点
击answer用户占比"
))
for
i
in
click_answer_result
:
line
=
tplt
.
format
(
i
[
0
],
i
[
1
],
i
[
2
],
"{}
%
"
.
format
(
round
(
i
[
3
]
*
100
,
2
)))
f
.
write
(
line
)
f
.
write
(
'
\n
'
)
f
.
write
(
"#1.6点击question用户占比(=点击question用户数/曝光question用户数)
\n
"
)
f
.
write
(
tplt
.
format
(
"平台"
,
"点击question用户数"
,
"曝光question用户数"
,
"击question用户占比"
))
f
.
write
(
tplt
.
format
(
"平台"
,
"点击question用户数"
,
"曝光question用户数"
,
"
点
击question用户占比"
))
for
i
in
click_question_result
:
line
=
tplt
.
format
(
i
[
0
],
i
[
1
],
i
[
2
],
"{}
%
"
.
format
(
round
(
i
[
3
]
*
100
,
2
)))
f
.
write
(
line
)
f
.
write
(
'
\n
'
)
f
.
write
(
"#1.7点击diary用户占比(=点击diary用户数/曝光diary用户数)
\n
"
)
f
.
write
(
tplt
.
format
(
"平台"
,
"点击diary用户数"
,
"曝光diary用户数"
,
"击diary用户占比"
))
f
.
write
(
tplt
.
format
(
"平台"
,
"点击diary用户数"
,
"曝光diary用户数"
,
"
点
击diary用户占比"
))
for
i
in
click_diary_result
:
line
=
tplt
.
format
(
i
[
0
],
i
[
1
],
i
[
2
],
"{}
%
"
.
format
(
round
(
i
[
3
]
*
100
,
2
)))
f
.
write
(
line
)
...
...
@@ -198,7 +199,7 @@ def result2file():
line
=
tplt
.
format
(
i
[
0
],
i
[
1
],
i
[
2
],
"{}
%
"
.
format
(
round
(
i
[
3
]
*
100
,
2
)))
f
.
write
(
line
)
f
.
write
(
'
\n
'
)
if
"click_zero_uid_detail_result"
in
dir
()
:
if
click_zero_uid_detail_result
!=
[]
:
f
.
write
(
"#1.9无点击用户数分布(=无点击用户∩激活用户 / 激活用户数) #注意:(]里面的数字指的是距离当前时间的天数
\n
"
)
f
.
write
(
"平台"
+
'
\t\t
'
+
"0-7"
+
'
\t\t
'
+
"7-14"
+
'
\t\t
'
+
\
"14-30"
+
'
\t\t
'
+
"30-60"
+
'
\t\t
'
+
"60-90"
+
'
\t\t
'
+
"90+"
+
'
\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