Reported interview periodApr 2026
Linear Regression with Batch Gradient Descent
Implement ordinary linear regression trained with full-batch gradient descent and mean squared error.
Practice focusAssumptions features is an n x d matrix with n = 1 and d = 1 , without a bias column. Return [intercept, coefficient 1, ..., coefficient d] . Initialize all weights to zero and round final values to six decimal places. Feature and target values and the learning rate must be finite numbers, not booleans; steps must be a nonnegative integer, not a boolean. Reject invalid shapes or parameters with ValueError . Do not mutate the supplied matrix or targets. The provided run case owns fixture dispatch, not candidate work.…