Legacy Archive (2018): Originally written in Chinese on doubixie.com and translated into English for this edition. All archive posts · Home

CS231n Lecture 0–1 Notes

Original Chinese title: cs213n Lecture 0-1

cs213n

  • CS231n: Convolutional Neural Networks for Visual Recognition
  • A computer vision course taught by Fei-Fei Li. I’ve been writing a related paper recently using these kinds of models. The experiments are done, but a lot of the foundational concepts still feel fuzzy. Since the pacing of this course fits well, I’m going back through the key CNN parts again.

Data Driven Approach

- Collect the Data
- Use Machine Learning to train a classifier
- Evaluate the classifier on the new data
  • If you’re still unsure about the difference between Machine Learning and Deep Learning, you can check out 00’s blog post.

KNN

  • Training complexity is O(1), whereas prediction is O(n), meaning it takes longer to classify a new example than it did to learn. That’s why it’s rarely used for images.
  • My own take: if you form an abstract concept of a cat in your mind, you can recognize a cat flashing past in an instant. If recognizing takes longer than learning, what’s the point of learning? So it just doesn’t make sense.

Cross-Validation

  • I only noticed this parameter after seeing it in a TensorFlow model I trained myself. Reading through these slides finally made it click what it’s actually doing.
  • 1
  • Building a model on already-tagged data:
    1. Use all the data for training.
    2. Use most of the data for training, and a small portion (usually 8:2) for testing.
    3. Use most of the data for training, a small portion for validation, and a small portion for testing.
    4. Use most of the data for training, split a small portion into multiple folds for validation, and take the average across those folds to represent the model’s validation score—this is cross-validation—then evaluate on the test split.