Commit 8fd5709c authored by 吕先亚's avatar 吕先亚

32 etf

parent ab7a7c5d
...@@ -16,14 +16,15 @@ from api import DataSync ...@@ -16,14 +16,15 @@ from api import DataSync
# 截止日期 # 截止日期
max_date = None max_date = None
toForecast = False # False means test, True means forecast toForecast = True # False means test, True means forecast
syncData = False # 开启会同步数据库指数及基金数据 syncData = True # 开启会同步数据库指数及基金数据
uploadData = False # 开启会上传预测结果 uploadData = True # 开启会上传预测结果
doReport = True # 开启会生成Excel报告 doReport = True # 开启会生成Excel报告
# 待预测指数 # 待预测指数
# PREDICT_LIST = [67, 121, 122, 123] # PREDICT_LIST = [67, 121, 122, 123]
PREDICT_LIST = [67] PREDICT_LIST = [67, 121, 122, 123, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
164, 165, 166, 167, 168, 169, 170, 171, 174, 175, 177, 178]
eco = [65, 66, 74, 134] eco = [65, 66, 74, 134]
index = [67, 68, 69, 70, 71, 72, 73, 75, 76, 77, 105, 106, 116, 117, 138, 139, 142, 143, 140, 141, 144, 145, 146] index = [67, 68, 69, 70, 71, 72, 73, 75, 76, 77, 105, 106, 116, 117, 138, 139, 142, 143, 140, 141, 144, 145, 146]
fund = [121, 122, 123, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, fund = [121, 122, 123, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165,
...@@ -52,7 +53,7 @@ def report_prediction(label, predict_item, indexDict: dict): ...@@ -52,7 +53,7 @@ def report_prediction(label, predict_item, indexDict: dict):
else: else:
from ai.noticer import upload_predict from ai.noticer import upload_predict
upload_predict(index_info['ticker'], forecastDay, predictionStr) upload_predict(index_info['ticker'], forecastDay, predictionStr)
send(content) # send(content)
return prediction return prediction
......
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