SchoolWhool
Quizzes and saved progress, freeSign in freeSign in
Maths · Module 5Module material

Numbers on a Computer interview questions

10 questions interviewers ask on this module’s topics, from first principles to the follow-ups. Each comes with a model answer.

  1. Why does 0.1 + 0.2 == 0.3 return False?
  2. What is machine epsilon?
  3. What is catastrophic cancellation? Give an example.
  4. How do you choose the step for a numerical gradient check?
  5. What are overflow and underflow, and how does NumPy report them?
  6. Why do Naive Bayes implementations add log probabilities?
  7. What is log-sum-exp, and why is it stable?
  8. How do you compute a softmax safely?
  9. Why should log loss be computed from the score rather than the probability?
  10. When would you train in float32 instead of float64, and what do you watch for?