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
18032158
Commit
18032158
authored
Aug 08, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.wanmeizhensuo.com:ML/ffm-baseline
change sql
parents
55a957a7
84149cc9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
6 deletions
+5
-6
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
+0
-1
No files found.
eda/recommended_indexs/code/getClickTimes2CountUid.py
View file @
18032158
...
...
@@ -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 @
18032158
...
...
@@ -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 @
18032158
...
...
@@ -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 @
18032158
...
...
@@ -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 @
18032158
...
...
@@ -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 @
18032158
...
...
@@ -3,4 +3,3 @@ python getClickTimes2CountUid.py
python getTop100Diary.py
python getTop100Answer.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