From fd31036ab05aeac8957e4c07090804272835b55c Mon Sep 17 00:00:00 2001 From: workpc Date: Mon, 11 Aug 2025 17:00:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=9A=E7=83=AF=E7=83=83=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=A4=84=E7=90=86=EF=BC=8C=E8=BF=87=E6=BB=A4=E6=8E=89=20=20?= =?UTF-8?q?=E5=81=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config_juxiting_yuedu.py | 2 +- lib/dataread.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/config_juxiting_yuedu.py b/config_juxiting_yuedu.py index d3b6d46..4f1d92f 100644 --- a/config_juxiting_yuedu.py +++ b/config_juxiting_yuedu.py @@ -460,7 +460,7 @@ DEFAULT_CONFIG = { # 开关 is_train = True # 是否训练 is_debug = False # 是否调试 -is_eta = False # 是否使用eta接口 +is_eta = True # 是否使用eta接口 is_market = True # 是否通过市场信息平台获取特征 ,在is_eta 为true 的情况下生效 is_timefurture = True # 是否使用时间特征 is_fivemodels = False # 是否使用之前保存的最佳的5个模型 diff --git a/lib/dataread.py b/lib/dataread.py index 1f3852a..cb600fc 100644 --- a/lib/dataread.py +++ b/lib/dataread.py @@ -1829,11 +1829,8 @@ class EtaReader(): ''' # 包含 关键词 去除, 返回flase - # if any(keyword in data for keyword in ['运费','检修','波动率','地缘政治','股价', - # '同比','环比','环差','裂差','4WMA','变频','道琼斯','标普500','纳斯达克', - # '四周均值','名占比','残差','DMA', - # '连7-连9','4周平均','4周均值','滚动相关性','日本']): - # return False + if any(keyword in data for keyword in ['停']): + return False # 包含 关键词 保留, 返回True if any(keyword in data for keyword in ['拉丝']): return True