Sequence Models & RNNs
Turn text and time series into tensors, train recurrent models on them, and explain the limits that led to attention.
3 objectives 6 steps about 125 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Prepare sequence data for training: tokenize text into ids with padding and masks, or window a time series with a leakage-free temporal split.
- Train an embedding plus LSTM or GRU model for sequence classification or forecasting in PyTorch and compare it with a non-sequential baseline such as bag-of-words or lag features.
- Explain vanishing and exploding gradients in recurrent networks, how gating and gradient clipping mitigate them, and why encoder-decoder attention was introduced.
Lesson plan
6 steps, about 125 min · 5 of 5 lessons available so far
- From Text and Time Series to Tensors Concept · 20 min
- Recurrent Networks and Their Gates Concept · 20 min
- Lab: Sentiment Classification with Embeddings and an LSTM Lab · 30 min
- Worked Example: Forecasting with a GRU Without Peeking at the Future Worked example · 25 min
- Why Recurrence Hit a Wall: Long Dependencies and Attention Concept · 15 min
- Check: Sequences, Gates and Masks Knowledge check · 6 questions
Practise it
Train an LSTM or GRU on a text classification or forecasting task, compare it with a TF-IDF plus logistic regression (or seasonal-naive and lag-feature) baseline on the same split, and argue in writing whether the sequence model's gain justifies its training and inference cost.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Large Language ModelAdvanced · 30–60 h
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.