refactor: 代码审查修复 - 日期过滤、性能优化、数据泄露防护
- 修复 data_loader.py 财务数据日期过滤,支持按范围加载 - 优化 MADClipper 使用窗口函数替代 join,提升性能 - 修复训练日期边界问题,添加1天间隔避免数据泄露 - 新增 .gitignore 规则忽略训练输出目录
This commit is contained in:
21
src/factors/volatility/__init__.py
Normal file
21
src/factors/volatility/__init__.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""波动率因子模块
|
||||
|
||||
本模块提供波动率相关因子:
|
||||
- 历史波动率(Historical Volatility)
|
||||
- 实现波动率(Realized Volatility)
|
||||
- GARCH类波动率预测
|
||||
- 波动率风险指标等
|
||||
|
||||
使用示例:
|
||||
>>> from src.factors.volatility import HistoricalVolFactor
|
||||
>>> factor = HistoricalVolFactor(period=20)
|
||||
"""
|
||||
|
||||
# 在此处导入具体的波动率因子
|
||||
# from .historical_vol import HistoricalVolFactor
|
||||
# from .realized_vol import RealizedVolFactor
|
||||
# from .garch_vol import GARCHVolFactor
|
||||
|
||||
__all__ = [
|
||||
# 添加你的波动率因子
|
||||
]
|
||||
Reference in New Issue
Block a user