CodeBaobab
COURSE 11 OF 21

Deep Learning Foundations

Learn the computation underneath transformers before attention, fine-tuning, and serving add more machinery.

Background reading
Free course preview

Introduction to Deep Learning

Deep learning uses neural networks with several layers to learn useful representations from data. Each layer transforms the values it receives, and training adjusts the weights in those transformations to reduce prediction error.

Begin with one input, such as the temperature of a machine. A neuron multiplies that value by a weight, adds a bias, and passes the result through an activation function. Its output can then become the input to another layer.

A single linear calculation can draw only a straight decision boundary. Stacking layers with nonlinear activation functions allows the network to represent curved and more complicated relationships.

During training, the network makes a prediction and the loss measures how far that prediction is from the desired answer. A derivative tells us how a small change to one weight would change that loss.

Backpropagation applies the chain rule from the output layer toward the input layer so every trainable weight receives a gradient. The optimizer then uses those gradients to adjust the weights before the next batch.

z=Wx+b,h=ϕ(z),θ←θ−η∇θLz = Wx + b,\quad h = \phi(z),\quad \theta \leftarrow \theta - \eta\nabla_{\theta}L
Continue learning

Continue with Pro

Get Pro on codebaobab.com.

See Pro plans
Complete course

What you will learn next

  1. 01Shapes Before Arithmetic
  2. 02Loss, Gradients, and Backpropagation
  3. 03Optimization Is More Than a Learning Rate
  4. 04Initialization, Normalization, and Stable Depth
  5. 05Generalization and Regularization
  6. 06Moving One Weight in the Right Direction
  7. 07Checking a Two-Layer Batch Before Running It
  8. 08Review
  9. 09References