Commit 18032158 authored by 张彦钊's avatar 张彦钊

Merge branch 'master' of git.wanmeizhensuo.com:ML/ffm-baseline

change sql
parents 55a957a7 84149cc9
......@@ -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("获取完成")
......
......@@ -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/1rate_features_%s.txt" % get_yesterday_date()
print("开始获取比例特征...")
result2file(output_path)
print("已将所有比例特征存入文件")
......
......@@ -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存入文件")
......@@ -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存入文件")
......@@ -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/5top100_ctr_question_%s.csv" % yesterday
result2file(result_lst,output_path)
print("已将top100点击率的question存入文件")
......@@ -3,4 +3,3 @@ python getClickTimes2CountUid.py
python getTop100Diary.py
python getTop100Answer.py
python getTop100Question.py
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment