This question evaluates a candidate's understanding of linear regression, mean squared error, and batch gradient descent, including vectorized prediction, gradient computation, and parameter updates within the Machine Learning domain.
You are building a linear regression model from scratch and will optimize its parameters using batch gradient descent.
Assume you have:
Write Python-style pseudocode for batch gradient descent that minimizes mean squared error (MSE) for linear regression. Briefly explain what each step in your pseudocode does.
Your pseudocode should cover:
Login required