Module 08 Activity
Scenario
Decide whether a task needs a sequence model or whether counting words is sufficient.
Task
- Show that an untrained embedding's similarities are meaningless, then hand-place vectors to show what
a trained table looks like.
- Pad and truncate a batch of sentences. Record what was lost and build the mask.
- Build bag-of-words features and identify which rows become identical.
- Train an RNN on data where order is the only signal.
- Compute attention weights by hand and confirm each row sums to 1.
- Compare bag-of-words against a sequence model on the same split.
Deliverable
A comparison note: both scores, the majority baseline, the mechanism explaining the gap, and an honest limitation.
Check your work
- Summed inputs are identical for both classes in the order-only task, so counting cannot beat chance.
- Attention rows each sum to 1.0. "it" attends most strongly to "cat".
- Truncation to 5 tokens discards "at the gate" permanently.
The limitation to state
If you built the task to favour sequence models, say so. It proves capability, not superiority.
