Work a neural network out by hand

How neural networks learn. From neurons and layers to gradient descent and backpropagation, with high-school math.

11 lessons · 1 hr 24 min of video · 22 quiz questions

But what is a neural network? | Deep learning chapter 1, by 3Blue1Brown

Try a question from this course

In a multiplication node A × B, how is the downstream gradient passed to A?

What you'll be able to do

  • Explain what a neuron, weight, bias and layer are, and compute a small network's output by hand
  • Say why hidden layers and nonlinear activations are needed
  • Explain a cost function and how gradient descent uses the gradient to reduce it
  • Work through backpropagation on a one-weight example and explain the chain rule's role
  • Describe the training loop and mini-batch stochastic gradient descent

What's in it

  1. What a neural network is

    A network is just a big function built from weighted sums. By the end you can compute one by hand and explain why depth matters.

    1. Neurons, weights and layers
    2. Why hidden layers? Solving XOR by hand
    3. What neurons and depth do geometrically
    4. Recap
  2. How a network learns: cost and gradient descent

    Learning is minimizing a cost, and the gradient tells every weight which way to move.

    1. Slopes, partial derivatives and the gradient
    2. Cost functions and gradient descent
    3. Recap
  3. Backpropagation

    How the gradient of all 13,000 parameters is actually computed: first with one weight, then in a graph, then as nudges flowing backward.

    1. Backpropagation with a single weight
    2. Backprop as a forward and backward pass
    3. Backpropagation as nudges, and mini-batches
    4. Recap

Made from these videos

More courses