Learn/Course 11
Deep learning · weeks 14

Sequence ML: RNNs, GRUs & LSTMs

Long support conversations must be routed while preserving temporal context.

Opening production brief

A measurable problem, before a model.

Users

Operators, product owners, and people affected by the sequence models decision.

Data

event time, padding/masks, hidden state, BPTT with version, owner, event time, and availability contracts.

Constraints

Long support conversations must be routed while preserving temporal context. Every solution must state latency, cost, capacity, and fallback limits.

Success

Offline evidence plus a deployable resolution: A masked sequence model with BPTT, recurrent gates, and attention precursors.

CHAPTER 1

Frame and baseline

Turn the production problem into explicit data, metric, and baseline contracts.

  1. 01

    Sequences are not IID

    In sequence learning, chronology is part of the feature schema: define the cutoff first, then construct inputs, labels, and splits around it.

    65–90 min · checkpoint · deterministic lab
  2. 02

    Recurrent state and BPTT

    Recurrent state carries information forward; BPTT carries responsibility backward, and truncation decides how far that responsibility can travel.

    65–90 min · checkpoint · deterministic lab
CHAPTER 2

Build and stress

Formalize the machinery, test counterexamples, and expose system limits.

  1. 03

    Gates that remember: LSTM and GRU

    Gates do not create memory by magic; they create learnable paths for preserving, replacing, and exposing state.

    65–90 min · checkpoint · deterministic lab
  2. 04

    Many-to-one and many-to-many training

    Choose the output pattern from the target, then make padding mathematically invisible to both state selection and loss.

    65–90 min · checkpoint · deterministic lab
CHAPTER 3

Resolve and operate

Join model behavior to architecture, observability, rollout, and rollback.

  1. 05

    Stateful streaming inference without future leakage

    For streaming inference, the state transition, ordering policy, deduplication rule, and model version are all part of the model.

    65–90 min · checkpoint · deterministic lab
  2. HW

    Causal stateful risk model

    Specify an LSTM with temporal splits, masking, BPTT diagnostics, and replay/online state parity.

    Rubric · staged hints · reference resolution
Prerequisite guidance

1 concepts make this faster.

Prerequisites are guidance, never hard gates.

C09Neural networksA small network built from forward pass through backpropagation and optimization.
Ready to work the problem?

Sequences are not IID

Start lesson 01