multiclaw / dnlp

Lecture 03: Classification and Neural Networks

Interactive lecture notes for DNLP: forward-pass intuition and a fixed-window NER classifier that predicts the label of the center token from local context.

Shared Toy Model

Everything starts from one tiny example and the later demos should refer back to it.

Where does the point land on the sigmoid?

Forward Pass in Three Boxes

Forward propagation
step 1

Forward / Backward Computation Graph

One Upstream Gradient, Multiple Downstream Branches

class 0 class 1 gradient / update overlays

Decision Boundary + Data

Loss Curve

Gradient / Weight Snapshot

Sentence and target token

Extracted 5-token window

How the model uses the window

Label scores and softmax probabilities

Takeaway