alphaear-predictor
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAlphaEar Predictor Skill
AlphaEar Predictor 技能
Overview
概述
This skill utilizes the Kronos model (via ) to perform time-series forecasting and adjust predictions based on news sentiment.
KronosPredictorUtility本技能借助Kronos模型(通过)实现时序预测,并且可基于新闻情感调整预测结果。
KronosPredictorUtilityCapabilities
功能
1. Forecast Market Trends
1. 预测市场趋势
1. Forecast Market Trends
1. 预测市场趋势
Workflow:
- Generate Base Forecast: Use (via
scripts/kronos_predictor.py) to generate the technical/quantitative forecast.KronosPredictorUtility - Adjust Forecast (Agentic): Use the Forecast Adjustment Prompt in to subjectively adjust the numbers based on latest news/logic.
references/PROMPTS.md
Key Tools:
- : Returns
KronosPredictorUtility.get_base_forecast(df, lookback, pred_len, news_text).List[KLinePoint]
Example Usage (Python):
python
from scripts.utils.kronos_predictor import KronosPredictorUtility
from scripts.utils.database_manager import DatabaseManager
db = DatabaseManager()
predictor = KronosPredictorUtility()工作流程:
- 生成基础预测:使用(通过
scripts/kronos_predictor.py)生成技术/量化预测。KronosPredictorUtility - 智能调整预测:使用中的预测调整提示词,基于最新新闻/逻辑对数值进行主观调整。
references/PROMPTS.md
核心工具:
- :返回
KronosPredictorUtility.get_base_forecast(df, lookback, pred_len, news_text)。List[KLinePoint]
(Python)使用示例:
python
from scripts.utils.kronos_predictor import KronosPredictorUtility
from scripts.utils.database_manager import DatabaseManager
db = DatabaseManager()
predictor = KronosPredictorUtility()Forecast
Forecast
forecast = predictor.predict("600519", horizon="7d")
print(forecast)
undefinedforecast = predictor.predict("600519", horizon="7d")
print(forecast)
undefinedConfiguration
配置
This skill requires the Kronos model and an embedding model.
-
Kronos Model:
- Ensure directory exists in the project root.
exports/models - Place trained news projector weights (e.g., ) in
kronos_news_v1.pt.exports/models/ - Or depend on the base model (automatically downloaded).
- Ensure
-
Environment Variables:
- : Path or name of the embedding model (default:
EMBEDDING_MODEL).sentence-transformers/all-MiniLM-L6-v2 - : Optional path to override model loading.
KRONOS_MODEL_PATH
本技能需要Kronos模型和一个嵌入模型。
-
Kronos模型:
- 确保项目根目录下存在文件夹。
exports/models - 将训练好的新闻投射器权重(例如)放到
kronos_news_v1.pt目录下。exports/models/ - 或者依赖基础模型(会自动下载)。
- 确保项目根目录下存在
-
环境变量:
- :嵌入模型的路径或名称(默认值:
EMBEDDING_MODEL)。sentence-transformers/all-MiniLM-L6-v2 - :可选参数,用于覆盖模型加载路径的自定义路径。
KRONOS_MODEL_PATH
Dependencies
依赖
torchtransformerssentence-transformerspandasnumpyscikit-learn
torchtransformerssentence-transformerspandasnumpyscikit-learn