Machine Learning, Gradient Descent, Linear Regression, Python, Optimization.
and will calculate the error for this model. We will continue until we get the values of M and B such that the error is minimum. Let’s have a more elaborative view of gradient descent algorithm: Step 1: Start with random values of M and B Step 2: Adjust M and B such that error reduces Step 3: