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
197641c8
Commit
197641c8
authored
Aug 31, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update output format
parent
2eb73364
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
grayStat.py
eda/gray_stat/grayStat.py
+8
-2
main.py
eda/recommended_indexs/main.py
+1
-1
No files found.
eda/gray_stat/grayStat.py
View file @
197641c8
# -*- coding: UTF-8 -*-
from
utils
import
con_sql
,
get_yesterday_date
import
time
OUTPUT_PATH
=
"/data2/models/eda/gray_stat/"
class
GrayStat
(
object
):
def
__init__
(
self
,
cid_type
,
uid_type
,
platform
,
ndays
=
get_yesterday_date
()):
"""
...
...
@@ -57,7 +60,8 @@ class GrayStat(object):
if
__name__
==
'__main__'
:
print
(
"开始获取ffm中的灰度非灰度比例"
)
start
=
time
.
time
()
#1.ffm中的灰度非灰度(ios和安卓一样):
# 灰度:_6
# 非灰度:_8
...
...
@@ -102,6 +106,7 @@ if __name__ == '__main__':
# android:
# 灰度:0|1|2|6|8
#非灰度:^01268
print
(
"开始获取实际中的灰度非灰度比例"
)
result2
=
[]
#2.1获取ios和android平台的数据
platforms
=
[
'ios'
,
'android'
]
...
...
@@ -139,7 +144,8 @@ if __name__ == '__main__':
line
=
[
str
(
i
)
for
i
in
line
]
str_line
=
','
.
join
(
line
)
+
','
+
'
\n
'
f
.
write
(
str_line
)
end
=
time
.
time
()
print
(
"程序执行时间:{}s"
.
format
(
start
-
end
))
eda/recommended_indexs/main.py
View file @
197641c8
...
...
@@ -116,7 +116,7 @@ print("done")
end
=
time
.
time
()
print
(
'程序执行时间:
'
,
end
-
start
)
print
(
'程序执行时间:
{}s'
.
format
(
end
-
start
)
)
...
...
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