KatInterview

ML Fundamentals: Calibration, Features, Tokenization, Optimizers

Machine LearningModel answer
MediumModel answerMachine Learningmachine-learningdeep-learningnlp

Last updated

Demonstrate working knowledge of probability calibration methods and metrics, feature selection strategies including neural approaches, subword tokenizer variants, and Adam optimizer mechanics.

You're in a technical ML interview. The interviewer wants to assess your practical understanding of core ML concepts. Answer the following questions with concrete explanations and examples:

Question 1: Probability Calibration

  • When does a production model require calibrated probabilities versus just ranked scores?
  • Describe two calibration techniques and when each is appropriate
  • What metrics would you use to verify that calibration is working?

Question 2: Feature Selection

  • Why would you invest time in feature selection for a production model?
  • Compare filter, wrapper, and embedded selection approaches
  • How can neural networks be used for feature selection?

Question 3: Tokenization

  • What problem do tokenizers solve in NLP systems?
  • Compare BPE, WordPiece, and Unigram tokenizers
  • What practical considerations affect tokenizer choice?

Question 4: Adam Optimizer

  • Explain what statistics Adam tracks during training and why
  • When might Adam underperform or require careful tuning?

Your answers should be practical and grounded in real-world use cases.

Hints

Hint 1

For calibration, consider scenarios where the actual probability value matters, not just relative ordering

Hint 2

Feature selection isn't just about accuracy—think about operational costs and model maintenance

Hint 3

Tokenizer choice affects not just model quality but also inference cost and multilingual support

Hint 4

Adam's adaptive learning rates solve some problems but can create others in specific training scenarios