- 修复 data_loader.py 财务数据日期过滤,支持按范围加载 - 优化 MADClipper 使用窗口函数替代 join,提升性能 - 修复训练日期边界问题,添加1天间隔避免数据泄露 - 新增 .gitignore 规则忽略训练输出目录
22 lines
559 B
Python
22 lines
559 B
Python
"""波动率因子模块
|
|
|
|
本模块提供波动率相关因子:
|
|
- 历史波动率(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__ = [
|
|
# 添加你的波动率因子
|
|
]
|