PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Uber

Implement linear and logistic regression

Last updated: Mar 29, 2026

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).

  • medium
  • Uber
  • Machine Learning
  • Machine Learning Engineer

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).

Related Interview Questions

  • Evaluate Promotions for Uber Eats Users - Uber (medium)
  • Implement Streaming Clustering for Numbers - Uber
  • Build cold-start restaurant ratings - Uber (medium)
  • Implement CLIP Contrastive Loss - Uber (medium)
  • Predict driver acceptance - Uber (medium)
|Home/Machine Learning/Uber

Implement linear and logistic regression

Uber logo
Uber
Mar 1, 2026, 12:00 AM
mediumMachine Learning EngineerTechnical ScreenMachine Learning
27
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...

Browse More Questions

More Machine Learning•More Uber•More Machine Learning Engineer•Uber Machine Learning Engineer•Uber Machine Learning•Machine Learning Engineer Machine Learning

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.