From 80f50eea71c6d420841ed400c3f0c6d33e5851c2 Mon Sep 17 00:00:00 2001 From: workpc Date: Tue, 11 Feb 2025 09:51:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=9A=E7=83=AF=E7=83=83=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config_juxiting.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config_juxiting.py b/config_juxiting.py index 3482d44..4428ee1 100644 --- a/config_juxiting.py +++ b/config_juxiting.py @@ -2,6 +2,7 @@ import logging import os import logging.handlers import datetime +from lib.tools import MySQLDB,SQLiteHandler # eta 接口token @@ -233,9 +234,10 @@ print("数据库连接成功",host,dbname,dbusername) # 数据截取日期 +start_year = 2017 # 数据开始年份 end_time = '' # 数据截取日期 freq = 'B' # 时间频率,"D": 天 "W": 周"M": 月"Q": 季度"A": 年 "H": 小时 "T": 分钟 "S": 秒 "B": 工作日 -delweekenday = True +delweekenday = True if freq == 'B' else False # 是否删除周末数据 is_corr = False # 特征是否参与滞后领先提升相关系数 add_kdj = False # 是否添加kdj指标 if add_kdj and is_edbnamelist: @@ -273,7 +275,7 @@ data_set = 'PP指标数据.xlsx' # 数据集文件 dataset = 'juxitingdataset' # 数据集文件夹 # 数据库名称 -db_name = os.path.join(dataset,'jbsh_yuanyou.db') +db_name = os.path.join(dataset,'jbsh_juxiting.db') sqlitedb = SQLiteHandler(db_name) sqlitedb.connect()