Skip to content

Machine Learning · Phase 2 · Days 9–22

Supervised and Unsupervised Learning

Train by gradient descent, fight overfitting, classify, cluster and compress, and turn text into features.

14 lessonsSee the whole track →

2

Phase 2 · Supervised and Unsupervised Learning

Days 9–2214 lessons0 donebuilds: An SMS spam filter

Train by gradient descent, fight overfitting, classify, cluster and compress, and turn text into features.

  1. Day 9: Gradient Descent, and Why Scaling MattersDay 7's bike-share model got its weights from one exact formula.8 min
  2. 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
  3. Day 11: Regularize with Ridge and LassoA degree-12 curve threads every training point, then misses new points badly.8 min
  4. Day 12: Logistic RegressionYour bank blocks every card payment over \$500, so fraudsters charge \$480 instead.6 min
  5. 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
  6. Day 14: Prepare Messy Tabular DataDay 8's model predicted 317 rentals at 23:00, when the real average was 119.7 min
  7. Day 15: Predict by Distancek-Nearest NeighboursA streaming service wants to know which customers will cancel next month.7 min
  8. Day 16: Support Vector MachinesTen students, two numbers each: hours studied and hours slept.8 min
  9. 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
  10. 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
  11. Day 19: Compress Features with PCAA scanned digit arrives as 64 pixel values, but neighbouring pixels mostly rise and fall together.7 min
  12. 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
  13. 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
  14. Day 22: Project 2an SMS Spam FilterA phone company wants a spam filter for text messages.10 min

← Every phase of Machine Learning