天驭学院 · 教学材料 · Machine Learning for Trading
Text walkthrough
LSTM 基础
A self-paced text walkthrough, without video or audio. See the article below for worked examples and materials.
Course Notes
In "Machine Learning for Trading" → "LSTM 预测", this lesson "LSTM 基础" builds knowledge you can apply immediately.
LSTM以序列输入和隐藏状态表示历史。张量常为样本×时间×特征,但框架约定需明确;打乱训练样本不等于允许随机混合时间测试。 核batch_first→在各段内部建20步窗口→训练段拟合尺度→输入3特征/hidden8→运行8轮并记录形状与损失。 本课作业:配套训练输入139×20×3,各维是什么?测试窗口能否包含训练后尚未确认的未来标签?
These points align with the video walkthrough—take notes as you watch.
After studying, complete the companion practice lesson to move from understanding to doing.
Key Takeaways
完成标记仅记录个人学习,不代表能力认证。练习使用教学假设或合成数据,不要求真实开户、入金或交易。