Databricks·Machine Learning Engineer·Technical Phone Screen
Apr 2026
Databricks ML engineer interview with a from-scratch coding problem on linear regression. Pretty technical, they wanted the full implementation with no shortcuts, and the follow-ups were designed to catch gaps in your actual understanding rather than just whether you got the code running.
- Implement linear regression with gradient descent from scratch, no ML libraries. Should predict outputs from a feature matrix, compute MSE loss with proper normalization, update weights with a configurable learning rate, and support early stopping.
- What happens to gradient descent when the learning rate is too large or too small?
- How would you normalize features before training, and why does it matter for gradient descent?
- Here is a buggy implementation of gradient descent. Find and fix the bugs.
“This took longer than I expected.” The rest of the author's notes on Machine Learning Engineer interview at Databricks, Technical Phone Screen round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post