Commit 1d90bbec authored by 郭羽's avatar 郭羽

特征工程优化

parent 26cdbadd
...@@ -177,10 +177,10 @@ def addDays(n, format="%Y%m%d"): ...@@ -177,10 +177,10 @@ def addDays(n, format="%Y%m%d"):
if __name__ == '__main__': if __name__ == '__main__':
trainDays = int(sys.argv[1])
isTest = False isTest = False
if (len(sys.argv) >= 3 and "test" == sys.argv[2]): if (len(sys.argv) >= 2 and "test" == sys.argv[1]):
isTest = True isTest = True
curTime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) curTime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
print("train_service执行时间:{}".format(curTime)) print("train_service执行时间:{}".format(curTime))
splitTimestamp = int(time.mktime(time.strptime(addDays(-1), "%Y%m%d"))) splitTimestamp = int(time.mktime(time.strptime(addDays(-1), "%Y%m%d")))
......
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