An LSTM that anticipates the next action from a sequence, well above chance. Best-checkpoint by top-1.
Trained from scratch in Ropedia Academy — an interactive, bilingual course on embodied & spatial AI. Educational model: small and quick to train; the value is the method and a reproducible pipeline, not a leaderboard score. Try it live in the Ropedia demos Space.
Adam (lr 3e-3), 1500 steps; LSTM over length-12 sequences, 6-verb vocab; best by top-1.
| metric | value | meaning |
|---|---|---|
top1 (final) | 0.529 |

import torch
state = torch.load("lstm.pt", map_location="cpu") # this repo's checkpoint
# Rebuild the exact module from the lab notebook (see "Reproduce"), then:
# model.load_state_dict(state); model.eval()
Educational scale. Trained quickly on CPU on small or synthetic data, so absolute numbers are not competitive with production systems — the value is the method and a reproducible pipeline. No large-scale data, no hyperparameter sweep, and no multi-seed variance is reported. Not for production use.
Falls back to the most-likely next token under distribution shift; can't anticipate rare transitions.
One click: open the notebook in Colab → Runtime → GPU → Run all, then run its Publish to the Hugging Face Hub cell.
From a shell:
git clone https://github.com/ChaoYue0307/ropedia-academy.git && cd ropedia-academy
pip install torch numpy matplotlib scikit-learn scikit-image gymnasium
jupyter nbconvert --to notebook --execute notebooks/training/C_action_anticipation_lstm.ipynb --output run.ipynb
# optional: override training length, e.g. STEPS=2000 (or EPISODES=600) before running
figure.pnglstm.ptmetrics.jsonCode & weights: MIT (this repository) — educational use encouraged.
Data: generated procedurally in the notebook — no external dataset.
If you use this model or the course materials, please cite:
@misc{ropedia_academy,
title = {Ropedia Academy: an interactive course on embodied & spatial AI},
author = {Ropedia Academy},
year = {2026},
howpublished = {\url{https://chaoyue0307.github.io/ropedia-academy/}}
}
Method / original work: Hochreiter & Schmidhuber, Long Short-Term Memory, 1997; Furnari & Farinella, RU-LSTM, ICCV 2019.
Part of the Ropedia Academy trained-model collection. Contributions & issues welcome on GitHub.
5 commits
An LSTM that anticipates the next action from a sequence, well above chance. Best-checkpoint by top-1.
Trained from scratch in Ropedia Academy — an interactive, bilingual course on embodied & spatial AI. Educational model: small and quick to train; the value is the method and a reproducible pipeline, not a leaderboard score. Try it live in the Ropedia demos Space.
Adam (lr 3e-3), 1500 steps; LSTM over length-12 sequences, 6-verb vocab; best by top-1.
| metric | value | meaning |
|---|---|---|
top1 (final) | 0.529 |

import torch
state = torch.load("lstm.pt", map_location="cpu") # this repo's checkpoint
# Rebuild the exact module from the lab notebook (see "Reproduce"), then:
# model.load_state_dict(state); model.eval()
Educational scale. Trained quickly on CPU on small or synthetic data, so absolute numbers are not competitive with production systems — the value is the method and a reproducible pipeline. No large-scale data, no hyperparameter sweep, and no multi-seed variance is reported. Not for production use.
Falls back to the most-likely next token under distribution shift; can't anticipate rare transitions.
One click: open the notebook in Colab → Runtime → GPU → Run all, then run its Publish to the Hugging Face Hub cell.
From a shell:
git clone https://github.com/ChaoYue0307/ropedia-academy.git && cd ropedia-academy
pip install torch numpy matplotlib scikit-learn scikit-image gymnasium
jupyter nbconvert --to notebook --execute notebooks/training/C_action_anticipation_lstm.ipynb --output run.ipynb
# optional: override training length, e.g. STEPS=2000 (or EPISODES=600) before running
figure.pnglstm.ptmetrics.jsonCode & weights: MIT (this repository) — educational use encouraged.
Data: generated procedurally in the notebook — no external dataset.
If you use this model or the course materials, please cite:
@misc{ropedia_academy,
title = {Ropedia Academy: an interactive course on embodied & spatial AI},
author = {Ropedia Academy},
year = {2026},
howpublished = {\url{https://chaoyue0307.github.io/ropedia-academy/}}
}
Method / original work: Hochreiter & Schmidhuber, Long Short-Term Memory, 1997; Furnari & Farinella, RU-LSTM, ICCV 2019.
Part of the Ropedia Academy trained-model collection. Contributions & issues welcome on GitHub.
5 commits