Phase 2 · Supervised and Unsupervised Learning
Train by gradient descent, fight overfitting, classify, cluster and compress, and turn text into features.
- Day 9: Gradient Descent, and Why Scaling MattersDay 7's bike-share model got its weights from one exact formula.8 min
- Day 10: Spot Overfitting with Cross-ValidationA model can score almost perfectly on the rows it learned from and still miss badly on the next ones.8 min
- Day 11: Regularize with Ridge and LassoA degree-12 curve threads every training point, then misses new points badly.8 min
- Day 12: Logistic RegressionYour bank blocks every card payment over \$500, so fraudsters charge \$480 instead.6 min
- Day 13: Classification MetricsThresholds, ROC and PR CurvesAt a bank where 13% of payments are fraud, a model that calls every payment "legit" is 87% accurate.8 min
- Day 14: Prepare Messy Tabular DataDay 8's model predicted 317 rentals at 23:00, when the real average was 119.7 min
- Day 15: Predict by Distancek-Nearest NeighboursA streaming service wants to know which customers will cancel next month.7 min
- Day 16: Support Vector MachinesTen students, two numbers each: hours studied and hours slept.8 min
- Day 17: Group Unlabeled Data with k-MeansA bike-share has 17,379 hours of rental records, and none of them is labelled "rush hour" or "lazy Sunday".8 min
- Day 18: Gaussian Mixtures and EMA scooter company logs where 300 riders parked, and wants to know how many scooters sit on each of two7 min
- Day 19: Compress Features with PCAA scanned digit arrives as 64 pixel values, but neighbouring pixels mostly rise and fall together.7 min
- Day 20: Turn Text into FeaturesBag-of-Words and TF-IDFLogistic regression needs a table of numbers, but a spam filter receives "WINNER!9 min
- Day 21: Naive BayesA text arrives: "Claim your free prize now." Every word in it is a clue, and your filter has thousands of9 min
- Day 22: Project 2an SMS Spam FilterA phone company wants a spam filter for text messages.10 min