MoonSay /Tutorials/Machine Learning Interview #1
Contents
  1. 01Introduction
  2. 02The learning signal
  3. 03Supervised learning
  4. 04Clustering
  5. 05Dimensionality reduction
  6. 06Semi-supervised learning
  7. 07Label propagation
  8. 08Self-training, consistency and FixMatch
  9. 09Self-supervised learning
  10. 10Putting it all together
  11. 11Interview questions and model answers
  12. 12Summary
  13. References

10Putting it all together

10.1Where the other paradigms fit

Interviewers sometimes extend the question. Reinforcement learning is a different setting altogether: an agent acts in an environment and receives a scalar reward, often delayed, that says how good its actions were, but not what the right action would have been (Sutton and Barto, 2018). Its signal is evaluative rather than instructive, and the agent’s own actions determine which data it sees. Weak supervision uses labels that are cheap but noisy, such as labels produced by heuristic rules or mined from text (Ratner et al., 2017). Active learning lets the model choose which unlabeled examples a person should label next, typically the ones it is most unsure about (Settles, 2009). Transfer learning reuses a model trained on one task or dataset for another, which is what fine-tuning a pretrained model does.

10.2Common misconceptions

  1. “Self-supervised means unsupervised.” By data, yes; by training, no. It has targets and a supervised loss (Section 9).
  2. “Unlabeled data always help.” Only if p(x) tells us something about p(y\mid x), and only if the unlabeled data match the test distribution; otherwise they can hurt (Oliver et al., 2018; van Engelen and Hoos, 2020).
  3. “K-means finds the true clusters.” It finds a local minimum of a squared-distance objective, which favours round clusters of similar size, for a K that you chose (Section 4).
  4. “The direction of highest variance is the most informative.” PCA ignores labels; the useful direction for a classification task can have low variance (Section 5).
  5. “Clusters can be scored like classifiers.” Without labels there is no accuracy; internal scores such as the silhouette measure compactness and separation, not correctness.
  6. “Reinforcement learning is unsupervised learning.” It learns from rewards, a distinct kind of signal that evaluates actions without giving the correct answer (Sutton and Barto, 2018).