Natural Language Processing · free preview
Feedforward Networks of Neural Units
Units with nonlinear activations, the XOR argument for hidden layers, the layer-by-layer equations, and embeddings pooled as network input.
1. Feedforward Networks of Neural Units
Feedforward Networks of Neural Units
2. Hidden layers learn representations
Hidden layers learn representations
3. Forward passes in NumPy
Forward passes in NumPy
4. A unit with ReLU
A unit has weights , input and bias . Compute its ReLU activation, , as a decimal.
5. Choosing an activation
Which pairing of activation property and consequence is correct?
6. What if layers were linear?
Suppose every activation in a 5-layer network were replaced by the identity, leaving pure linear layers. What function class can the resulting network compute?
7. The fold that solves XOR
In a two-unit ReLU hidden layer, the inputs and both produce the hidden vector , while produces and produces . In this hidden space, are the XOR-positive points and the XOR-negative points linearly separable? Answer yes or no.
8. Shapes through a 2-layer network
A classifier has input dimension , hidden units with ReLU, and output classes with softmax. How many rows does the first weight matrix have? Answer with the number.
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free