Skip to content

Machine Learning · Phase 4 · Days 29–43

Deep Learning

From neurons to CNNs in PyTorch, then embeddings, attention, self-supervised learning and RL basics.

15 lessonsSee the whole track →

4

Phase 4 · Deep Learning

Days 29–4315 lessons0 donebuilds: A clothing-image classifier

From neurons to CNNs in PyTorch, then embeddings, attention, self-supervised learning and RL basics.

  1. Day 29: From Neurons to a Multilayer PerceptronLogistic regression draws one straight boundary.7 min
  2. Day 30: Backpropagation by HandA network's prediction misses, and each of its weights played a part.7 min
  3. Day 31: PyTorch BasicsTensors and AutogradOn Day 30 you worked out two gradients by hand, one local slope at a time.6 min
  4. Day 32: The Training LoopA network with about 5,000 weights and a table of 10,000 rows won't train itself.9 min
  5. Day 33: Losses, Logits and SoftmaxA clothing classifier trains without a single error message, yet it scores nearly 7 points less accuracy than it7 min
  6. Day 34: Optimizers and Learning-Rate SchedulesPlain gradient descent trains Day 33's clothing classifier, but slowly: after 10 epochs it labels only 72% of9 min
  7. Day 35: Keep Deep Nets TrainableYou stack ten layers instead of two, expecting a better model.9 min
  8. Day 36: Regularize NetworksDropout and Weight DecayA network with 669,706 weights learns 1,000 photos of clothes until its training loss is 0.007.8 min
  9. Day 37: Convolutional Networks and an Image ClassifierA dense layer sees a 28×28 photo as 784 unrelated numbers.10 min
  10. Day 38: Transfer LearningYou have 500 labelled photos of clothes, which is too few to train a good image model from scratch.8 min
  11. Day 39: Project 4a Clothing-Image ClassifierAn online shop wants to tag each product photo with its type, so shoppers can filter by "shirts".9 min
  12. Day 40: EmbeddingsTokens as VectorsTo a word counter, "won" and "claim" are two unrelated columns.9 min
  13. Day 41: Self-Attention from ScratchIn "the river bank" and "the bank loan", an embedding table gives "bank" the same vector both times.7 min
  14. Day 42: Self-Supervised Learning and Foundation ModelsYou have 4,136 text messages, and a colleague had time to label 20 of them as spam or not.9 min
  15. Day 43: Reinforcement Learning BasicsA mouse in a maze gets no label saying which way to turn at each square.8 min

← Every phase of Machine Learning