Tutorvo

Parameter Counts & Cost: Weights per Gate, Simple vs GRU vs LSTM and a Size Table

Lesson 7 of 815 minLab

This lesson is part of the course

In this lesson

You count the weights of a simple cell, a GRU and an LSTM for six layer sizes with h·(h + x + 1) per gate, turn the LSTM count into storage at 4 bytes per weight and add up a stacked two-layer LSTM.

Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.

Lessons in this course

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