This commit is contained in:
2026-01-28 23:09:48 +08:00
parent 7b264856da
commit e223c420a7
3 changed files with 1039 additions and 500 deletions
+6 -5
View File
@@ -14,20 +14,21 @@ PREPARE_PROMPT = os.path.join(str(PROJECT_PATH), 'prepare_prompt')
SQLITE_PATH = os.path.join(str(PREPARE_PROMPT), 'data_sets.db')
# Alpha模板 - 支持 <keyword1|keyword2|keyword3> 语法
ALPHA_TEMPLATE = "ts_mean(<Profit|Income|Earning>, <window>)"
# ALPHA_TEMPLATE = "is_nan(<Gross|Profit|Margin>, <window>)"
ALPHA_TEMPLATE = "not(is_nan(<Gross|Profit|Margin>))"
# 窗口列表
WINDOW_LIST = [5, 20, 60, 250]
# 运行模式:1=name搜索, 2=description搜索, 3=混合模式
MODE = 2
MODE = 3
# 数据库配置
REGION = 'USA'
REGION = 'GLB'
UNIVERSE = 'TOP3000'
MAX_OUTPUT_COUNT = 1000
ACTUAL_GENERATION_COUNT = 500
MAX_OUTPUT_COUNT = 2000
ACTUAL_GENERATION_COUNT = 1000
# ==================== 初始化 ====================
engine = create_engine(f"sqlite:///{SQLITE_PATH}")