Compute entropy and implement 1-NN
Company: OpenAI
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Onsite
Quick Answer: This question evaluates skills in probabilistic modeling and numerical methods (entropy computation from logits emphasizing numerical stability and streaming aggregation) as well as vectorized linear-algebra implementation and model interpretation (1-nearest-neighbor using L2/L1 distances and its expression as a neural-network forward pass) within the Machine Learning domain. It is commonly asked to assess a candidate's ability to implement efficient, numerically robust algorithms and to connect practical implementations to neural-network abstractions, testing both practical application and conceptual understanding.