Tabellab
AI & Data Science Advanced

Recurrent Networks by Hand: Hidden States, Unrolling Through Time, Vanishing Gradients, LSTM Gates, GRU Cells & Sequence Prediction

See how a network remembers. You will run a tiny recurrent cell step by step, unroll it over a toy sequence, measure how gradients shrink across time, compute forget, input and output gates and the cell state of an LSTM, compare it with a GRU, count parameters and predict the next value of a toy series, with given weights and every cell checked as you go.

8 lessons 8 labs 2.2 h Certificate

One-time payment ยท lifetime access ยท lessons, labs, exam and certificate included ยท no subscription.

About this course

This course opens up recurrent networks with nothing but a spreadsheet and given toy weights. You lay out sequences one time step per row, turn words into numbers and see why order matters. You run a simple recurrent cell with tanh written as EXP, unroll it over four-word toy reviews and score them from the final hidden state with a sigmoid. You multiply step factors to watch gradients vanish or explode, compute the forget, input and output gates and the cell state of an LSTM, compare it with a GRU, count the weights of each cell type and finish by forecasting a toy series and comparing the MAE with a naive forecast.

Lessons

  1. Sequences as Rows: Time Steps, Scaled Inputs, Words as Numbers & Why Order MattersLab15 min Pro
  2. The Simple Recurrent Cell: Weighted Input, Recurrent Weight, Bias & tanh, Step by StepLab16 min Pro
  3. Unrolling Through Time & Many-to-One: The Final Hidden State as a Summary and a Toy Sentiment ScoreLab17 min Pro
  4. Vanishing & Exploding Gradients: Multiplying Step Factors Back Through TimeLab16 min Pro
  5. LSTM Gates: Forget, Input & Output Gates, the Candidate Value and the Cell State over Six StepsLab18 min Pro
  6. GRU Cells: Update & Reset Gates, the New Hidden State and a Comparison with the LSTMLab17 min Pro
  7. Parameter Counts & Cost: Weights per Gate, Simple vs GRU vs LSTM and a Size TableLab15 min Pro
  8. Capstone: Next-Value Prediction with Given Trained Weights, MAE vs a Naive Forecast & a ChartLab18 min Pro