Training an LSTM Classifier
Fit a gated model on sequences.
From Theory to Practice
Time to build something. You will wire an LSTM classifier that reads a sequence of words and predicts a single label. 🛠️
Text Becomes Integers
First each word maps to an integer id, so a sentence turns into a list of numbers your model can tokenize and process.
ids = [vocab[w] for w in tokens]All lessons in this course
- Gates That Control Memory
- GRU: A Leaner Alternative
- Training an LSTM Classifier
- Bidirectional and Stacked Layers