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
f75c41b5
Commit
f75c41b5
authored
Aug 16, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.wanmeizhensuo.com:ML/ffm-baseline
add multi process predict
parents
0a9947c2
ad29164a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
getTop100Answer.py
eda/recommended_indexs/getTop100Answer.py
+1
-1
getTop100Diary.py
eda/recommended_indexs/getTop100Diary.py
+1
-1
getTop100Question.py
eda/recommended_indexs/getTop100Question.py
+1
-1
No files found.
eda/recommended_indexs/getTop100Answer.py
View file @
f75c41b5
...
@@ -26,7 +26,7 @@ def result2file(result_lst,fpath):
...
@@ -26,7 +26,7 @@ def result2file(result_lst,fpath):
f
.
write
(
tplt
.
format
(
"平台"
,
"answer_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"answer链接"
))
f
.
write
(
tplt
.
format
(
"平台"
,
"answer_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"answer链接"
))
for
i
in
result_lst
:
for
i
in
result_lst
:
for
j
in
i
:
for
j
in
i
:
f
.
write
(
tplt
.
format
(
j
[
0
],
j
[
1
],
j
[
2
],
j
[
3
],
j
[
4
]
,
j
[
5
]))
f
.
write
(
tplt
.
format
(
j
[
0
],
j
[
1
],
j
[
2
],
j
[
3
],
"{}
%
"
.
format
(
round
(
j
[
4
]
*
100
,
2
))
,
j
[
5
]))
f
.
write
(
"=================================================================
\n
"
)
f
.
write
(
"=================================================================
\n
"
)
if
i
!=
result_lst
[
-
1
]:
if
i
!=
result_lst
[
-
1
]:
f
.
write
(
tplt
.
format
(
"平台"
,
"answer_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"answer链接"
))
f
.
write
(
tplt
.
format
(
"平台"
,
"answer_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"answer链接"
))
...
...
eda/recommended_indexs/getTop100Diary.py
View file @
f75c41b5
...
@@ -26,7 +26,7 @@ def result2file(result_lst,fpath):
...
@@ -26,7 +26,7 @@ def result2file(result_lst,fpath):
f
.
write
(
tplt
.
format
(
"平台"
,
"diary_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"diary链接"
))
f
.
write
(
tplt
.
format
(
"平台"
,
"diary_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"diary链接"
))
for
i
in
result_lst
:
for
i
in
result_lst
:
for
j
in
i
:
for
j
in
i
:
f
.
write
(
tplt
.
format
(
j
[
0
],
j
[
1
],
j
[
2
],
j
[
3
],
j
[
4
]
,
j
[
5
]))
f
.
write
(
tplt
.
format
(
j
[
0
],
j
[
1
],
j
[
2
],
j
[
3
],
"{}
%
"
.
format
(
round
(
j
[
4
]
*
100
,
2
))
,
j
[
5
]))
f
.
write
(
"=================================================================
\n
"
)
f
.
write
(
"=================================================================
\n
"
)
if
i
!=
result_lst
[
-
1
]:
if
i
!=
result_lst
[
-
1
]:
f
.
write
(
tplt
.
format
(
"平台"
,
"diary_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"diary链接"
))
f
.
write
(
tplt
.
format
(
"平台"
,
"diary_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"diary链接"
))
...
...
eda/recommended_indexs/getTop100Question.py
View file @
f75c41b5
...
@@ -26,7 +26,7 @@ def result2file(result_lst,fpath):
...
@@ -26,7 +26,7 @@ def result2file(result_lst,fpath):
f
.
write
(
tplt
.
format
(
"平台"
,
"question_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"question链接"
))
f
.
write
(
tplt
.
format
(
"平台"
,
"question_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"question链接"
))
for
i
in
result_lst
:
for
i
in
result_lst
:
for
j
in
i
:
for
j
in
i
:
f
.
write
(
tplt
.
format
(
j
[
0
],
j
[
1
],
j
[
2
],
j
[
3
],
j
[
4
]
,
j
[
5
]))
f
.
write
(
tplt
.
format
(
j
[
0
],
j
[
1
],
j
[
2
],
j
[
3
],
"{}
%
"
.
format
(
round
(
j
[
4
]
*
100
,
2
))
,
j
[
5
]))
f
.
write
(
"=================================================================
\n
"
)
f
.
write
(
"=================================================================
\n
"
)
if
i
!=
result_lst
[
-
1
]:
if
i
!=
result_lst
[
-
1
]:
f
.
write
(
tplt
.
format
(
"平台"
,
"question_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"question链接"
))
f
.
write
(
tplt
.
format
(
"平台"
,
"question_id"
,
"点击数"
,
"曝光数"
,
"点击率"
,
"question链接"
))
...
...
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