Back to problems

Gradient Descent for Simple Linear Regression

AI Coding · Databricks · Medium

Problem Overview Implement gradient descent for simple linear regression. You receive features X and targets y, and must fit a line that predicts y from X by minimizing mean squared error. This is a low-infrastructure machine-learning coding exercise. Be prepared to state the objective, derive the gradients, and update the parameters without using scikit-learn. Possible follow-ups include adjusting the learning rate, adding early stopping, and diagnosing a faulty…

Checking your access…