A share lstm forecast

From aifinlab/FinClaw · View interactive version

A share lstm forecast is an AI agent skill from the GitHub repository aifinlab/FinClaw. A股LSTM时序预测/序列建模。当用户说"LSTM"、"时序预测"、"序列模型"、"RNN预测"、"GRU"、"循环神经网络"、"LSTM预测股价"时触发。基于 cn-stock-data 获取数据,构建LSTM时序预测模型。支持 formal/brief 两种输出风格。

How to use this skill

Skill file

LSTM时序预测/序列建模助手

数据获取

通过 cn-stock-data skill 获取数据:

分析工作流

Step 1: 序列数据准备

Step 2: LSTM模型构建

Step 3: 训练策略

Step 4: 预测与应用

Step 5: 输出报告

输出格式

formal 风格(研报级)

# LSTM时序预测报告

## 一、模型配置
| 参数 | 设置 |
|------|------|

## 二、预测表现
[MSE/方向准确率/IC]

## 三、当期预测
[未来N日预测值与置信区间]

## 四、模型诊断
[残差分析、过拟合检查]

brief 风格(快速分析)

## LSTM预测速览
- 2层LSTM,隐藏128,窗口30天
- 方向准确率 56%,IC=0.03
- 预测明日:涨概率 62%
- 5日预测区间:[24.8, 26.2]

参考 references/lstm-forecast-guide.md 获取详细方法论与 A股实证研究。

使用示例

示例 1: 基本使用

# 调用 skill
result = run_skill({
    "param1": "value1",
    "param2": "value2"
})

示例 2: 命令行使用

python scripts/run_skill.py --input data.json
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.