Implement Focal Loss for Class-Imbalanced Classification
Company: Datadog
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: hard
Interview Round: Technical Screen
Quick Answer: This question evaluates a candidate's ability to implement a specialized loss function for class-imbalanced classification from basic tensor operations rather than a library call. It tests understanding of numerical stability in logit-space computation, differentiability, and vectorized reduction handling, commonly asked in machine learning interviews to assess practical deep learning implementation skill beyond conceptual familiarity.