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
fc2d72f5
Commit
fc2d72f5
authored
Oct 15, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change \t to ,
parent
da9cf611
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
node2vec_ctr.py
eda/gray_stat/node2vec_ctr.py
+4
-4
No files found.
eda/gray_stat/node2vec_ctr.py
View file @
fc2d72f5
...
...
@@ -111,13 +111,13 @@ def main():
print
(
"stat"
+
" "
+
get_yesterday_date
())
g_class
=
GrayStat
(
"diary"
,
"3|4"
)
a_class
=
AllStat
(
"diary"
,
"3|4"
)
line1
=
str
(
g_class
.
get_uid_count
())
+
"
\t
"
+
str
(
g_class
.
get_uid_imp_times
())
+
"
\t
"
+
str
(
g_class
.
get_uid_clk_times
())
line2
=
str
(
a_class
.
get_uid_count
())
+
"
\t
"
+
str
(
a_class
.
get_uid_imp_times
())
+
"
\t
"
+
str
(
a_class
.
get_uid_clk_times
())
line1
=
str
(
g_class
.
get_uid_count
())
+
"
,"
+
str
(
g_class
.
get_uid_imp_times
())
+
",
"
+
str
(
g_class
.
get_uid_clk_times
())
line2
=
str
(
a_class
.
get_uid_count
())
+
"
,"
+
str
(
a_class
.
get_uid_imp_times
())
+
",
"
+
str
(
a_class
.
get_uid_clk_times
())
g_ctr
=
g_class
.
get_uid_clk_times
()
/
g_class
.
get_uid_imp_times
()
a_ctr
=
a_class
.
get_uid_clk_times
()
/
a_class
.
get_uid_imp_times
()
growth_rate
=
(
g_ctr
-
a_ctr
)
/
a_ctr
line
=
get_yesterday_date
()
+
"
\t
"
+
str
(
round
(
g_ctr
*
100
,
2
))
+
'
%
'
+
"
\t
"
+
str
(
round
(
a_ctr
*
100
,
2
))
+
'
%
'
+
"
\t
"
+
\
str
(
round
(
growth_rate
*
100
,
2
))
+
'
%
'
+
"
\t
"
+
line1
+
"
\t
"
+
line2
+
"
\n
"
line
=
get_yesterday_date
()
+
"
,"
+
str
(
round
(
g_ctr
*
100
,
2
))
+
'
%
'
+
","
+
str
(
round
(
a_ctr
*
100
,
2
))
+
'
%
'
+
",
"
+
\
str
(
round
(
growth_rate
*
100
,
2
))
+
'
%
'
+
"
,"
+
line1
+
",
"
+
line2
+
"
\n
"
f
.
write
(
line
)
...
...
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