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
36530f9e
Commit
36530f9e
authored
Aug 08, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix result output path
parent
124f0557
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
getClickTimes2CountUid.py
eda/recommended_indexs/code/getClickTimes2CountUid.py
+1
-1
getRate.py
eda/recommended_indexs/code/getRate.py
+1
-1
getTop100Answer.py
eda/recommended_indexs/code/getTop100Answer.py
+1
-1
getTop100Diary.py
eda/recommended_indexs/code/getTop100Diary.py
+1
-1
getTop100Question.py
eda/recommended_indexs/code/getTop100Question.py
+1
-1
start.sh
eda/recommended_indexs/code/start.sh
+2
-2
No files found.
eda/recommended_indexs/code/getClickTimes2CountUid.py
View file @
36530f9e
...
...
@@ -43,7 +43,7 @@ def df2file(df,fpath):
def
main
():
print
(
"2.开始获取用户点击次数表..."
)
output_path
=
"
../data/click_times_to_count_uid_
%
s.csv
"
%
get_yesterday_date
()
output_path
=
"
/data2/models/eda/recommended_indexs/2click_times_to_count_uid_
%
s.txt
"
%
get_yesterday_date
()
df
=
get_click_times_to_count_uid_df
()
df2file
(
df
,
output_path
)
print
(
"获取完成"
)
...
...
eda/recommended_indexs/code/getRate.py
View file @
36530f9e
...
...
@@ -91,7 +91,7 @@ def result2file(fpath):
def
main
():
output_path
=
"
../data/
rate_features_
%
s.txt"
%
get_yesterday_date
()
output_path
=
"
/data2/models/eda/recommended_indexs/1
rate_features_
%
s.txt"
%
get_yesterday_date
()
print
(
"开始获取比例特征..."
)
result2file
(
output_path
)
print
(
"已将所有比例特征存入文件"
)
...
...
eda/recommended_indexs/code/getTop100Answer.py
View file @
36530f9e
...
...
@@ -131,6 +131,6 @@ if __name__ == "__main__":
today
=
datetime
.
date
.
today
()
yesterday
=
today
-
datetime
.
timedelta
(
days
=
1
)
yesterday
=
yesterday
.
strftime
(
"
%
Y
%
m
%
d"
)
output_path
=
"
../data/top100_ctr_answer_
%
s.csv
"
%
yesterday
output_path
=
"
/data2/models/eda/recommended_indexs/4top100_ctr_answer_
%
s.txt
"
%
yesterday
result2file
(
result_lst
,
output_path
)
print
(
"已将top100点击率的answer存入文件"
)
eda/recommended_indexs/code/getTop100Diary.py
View file @
36530f9e
...
...
@@ -130,6 +130,6 @@ if __name__ == "__main__":
today
=
datetime
.
date
.
today
()
yesterday
=
today
-
datetime
.
timedelta
(
days
=
1
)
yesterday
=
yesterday
.
strftime
(
"
%
Y
%
m
%
d"
)
output_path
=
"
../data/top100_ctr_diary_
%
s.csv
"
%
yesterday
output_path
=
"
/data2/models/eda/recommended_indexs/3top100_ctr_diary_
%
s.txt
"
%
yesterday
result2file
(
result_lst
,
output_path
)
print
(
"已将top100点击率的diary存入文件"
)
eda/recommended_indexs/code/getTop100Question.py
View file @
36530f9e
...
...
@@ -152,6 +152,6 @@ if __name__ == "__main__":
today
=
datetime
.
date
.
today
()
yesterday
=
today
-
datetime
.
timedelta
(
days
=
1
)
yesterday
=
yesterday
.
strftime
(
"
%
Y
%
m
%
d"
)
output_path
=
"
../data/
top100_ctr_question_
%
s.csv"
%
yesterday
output_path
=
"
/data2/models/eda/recommended_indexs/5
top100_ctr_question_
%
s.csv"
%
yesterday
result2file
(
result_lst
,
output_path
)
print
(
"已将top100点击率的question存入文件"
)
eda/recommended_indexs/code/start.sh
View file @
36530f9e
...
...
@@ -2,5 +2,4 @@ python getRate.py
python getClickTimes2CountUid.py
python getTop100Diary.py
python getTop100Answer.py
python getTop100Question.py
python getTop100Question.py
\ No newline at end of file
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