Linear Regression Lab Work
Linear Regression Lab Work
06/09/2024
Objective:
▶ Implement a simple Linear regression algorithm via gradient
descent algorithm.
▶ Visualize the line of best fit changing with each iteration of
gradient descent.
▶ Track and plot the loss (Mean Squared Error aka MSE) over
iterations.
▶ Visualize the 3D loss surface and the gradient descent path.
▶ Do experiments with a real dataset finally
▶ Upload your final python codes here:
https://docs.google.com/forms/d/
12R3DtRFeKahmLu5DgHBE53ptRha1qCGxSiXJCNbD59A/edit
▶ It is recommended to do the code in raw python instead of
notebook.
Task 1: Data Generation