Phase 4 · Deep Learning
From neurons to CNNs in PyTorch, then embeddings, attention, self-supervised learning and RL basics.
- Day 29: From Neurons to a Multilayer PerceptronLogistic regression draws one straight boundary.7 min
- Day 30: Backpropagation by HandA network's prediction misses, and each of its weights played a part.7 min
- Day 31: PyTorch BasicsTensors and AutogradOn Day 30 you worked out two gradients by hand, one local slope at a time.6 min
- Day 32: The Training LoopA network with about 5,000 weights and a table of 10,000 rows won't train itself.9 min
- 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
- 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
- Day 35: Keep Deep Nets TrainableYou stack ten layers instead of two, expecting a better model.9 min
- 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
- Day 37: Convolutional Networks and an Image ClassifierA dense layer sees a 28×28 photo as 784 unrelated numbers.10 min
- Day 38: Transfer LearningYou have 500 labelled photos of clothes, which is too few to train a good image model from scratch.8 min
- 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
- Day 40: EmbeddingsTokens as VectorsTo a word counter, "won" and "claim" are two unrelated columns.9 min
- 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
- 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
- Day 43: Reinforcement Learning BasicsA mouse in a maze gets no label saying which way to turn at each square.8 min