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

修改模型训练数据源日期

parent 4300c804
......@@ -17,7 +17,7 @@ def get_date():
month = now.month
day = now.day
date = datetime(year,month,day)
data_start_date = (date - timedelta(days=5)).strftime("%Y-%m-%d")
data_start_date = (date - timedelta(days=3)).strftime("%Y-%m-%d")
data_end_date = (date - timedelta(days=1)).strftime("%Y-%m-%d")
validation_date = (date - timedelta(days=2)).strftime("%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