Skip to main content

Overview

Classification: case studies

This week we put together what we have learned so far, on two classification problems. On spam a network hardly does better than a linear model with good features; on handwritten digits it clearly does. And we ask whether regularization, which helped linear models, also helps a network.

Pages

Spam Bag of words, logistic regression with and without regularization, a network, TF-IDF features, and the final model on the test emails
Regularizing a network Weight decay, dropout and early stopping, on MNIST with 1000 training images
Exercises

More than two classes, the softmax and the MNIST digits are on the pages of week 5 (linear) and week 6 (a network).

Goals

The goal of this week is to

  1. know how to turn text into features (bag of words, TF-IDF) and fit a multiple logistic regression to them,
  2. compare a linear model and a network honestly, by cross-validation, in accuracy and in log-likelihood,
  3. recall the confusion matrix, thresholds, ROC and AUC, and use them on a final model,
  4. know multinomial logistic regression and when a network beats it, and
  5. regularize a network with weight decay, dropout and early stopping.