Implement linear and logistic regression

Quick Overview

This question evaluates understanding and hands-on implementation of linear and logistic regression, testing competencies in prediction functions, loss formulation, gradient computation, gradient descent training, regularization, and model selection within the Machine Learning domain (supervised learning and statistical modeling).

Implement linear and logistic regression

Company: Uber

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

Explain and implement linear regression and logistic regression from scratch. Your answer should cover: - The prediction function for each model - The loss function - How to compute gradients - How training works with gradient descent - Regularization - The main differences between the two models and when to use each one

Quick Answer: This question evaluates understanding and hands-on implementation of linear and logistic regression, testing competencies in prediction functions, loss formulation, gradient computation, gradient descent training, regularization, and model selection within the Machine Learning domain (supervised learning and statistical modeling).

|Home/Machine Learning/Uber
Uber logo
Uber
Mar 1, 2026, 12:00 AM
mediumMachine Learning EngineerTechnical ScreenMachine Learning
32
0

Explain and implement linear regression and logistic regression from scratch.

Your answer should cover:

  • The prediction function for each model
  • The loss function
  • How to compute gradients
  • How training works with gradient descent
  • Regularization
  • The main differences between the two models and when to use each one
Loading comments...