Commit 36530f9e authored by 高雅喆's avatar 高雅喆

fix result output path

parent 124f0557
...@@ -43,7 +43,7 @@ def df2file(df,fpath): ...@@ -43,7 +43,7 @@ def df2file(df,fpath):
def main(): def main():
print("2.开始获取用户点击次数表...") 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() df = get_click_times_to_count_uid_df()
df2file(df,output_path) df2file(df,output_path)
print("获取完成") print("获取完成")
......
...@@ -91,7 +91,7 @@ def result2file(fpath): ...@@ -91,7 +91,7 @@ def result2file(fpath):
def main(): 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("开始获取比例特征...") print("开始获取比例特征...")
result2file(output_path) result2file(output_path)
print("已将所有比例特征存入文件") print("已将所有比例特征存入文件")
......
...@@ -131,6 +131,6 @@ if __name__ == "__main__": ...@@ -131,6 +131,6 @@ if __name__ == "__main__":
today = datetime.date.today() today = datetime.date.today()
yesterday = today - datetime.timedelta(days=1) yesterday = today - datetime.timedelta(days=1)
yesterday = yesterday.strftime("%Y%m%d") 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) result2file(result_lst,output_path)
print("已将top100点击率的answer存入文件") print("已将top100点击率的answer存入文件")
...@@ -130,6 +130,6 @@ if __name__ == "__main__": ...@@ -130,6 +130,6 @@ if __name__ == "__main__":
today = datetime.date.today() today = datetime.date.today()
yesterday = today - datetime.timedelta(days=1) yesterday = today - datetime.timedelta(days=1)
yesterday = yesterday.strftime("%Y%m%d") 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) result2file(result_lst,output_path)
print("已将top100点击率的diary存入文件") print("已将top100点击率的diary存入文件")
...@@ -152,6 +152,6 @@ if __name__ == "__main__": ...@@ -152,6 +152,6 @@ if __name__ == "__main__":
today = datetime.date.today() today = datetime.date.today()
yesterday = today - datetime.timedelta(days=1) yesterday = today - datetime.timedelta(days=1)
yesterday = yesterday.strftime("%Y%m%d") 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) result2file(result_lst,output_path)
print("已将top100点击率的question存入文件") print("已将top100点击率的question存入文件")
...@@ -2,5 +2,4 @@ python getRate.py ...@@ -2,5 +2,4 @@ python getRate.py
python getClickTimes2CountUid.py python getClickTimes2CountUid.py
python getTop100Diary.py python getTop100Diary.py
python getTop100Answer.py python getTop100Answer.py
python getTop100Question.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