text_plain_output_1.png
import numpy as np

X.ravel()[:5]

m = 78.35
b1 = 100
loss_slope = -2 * np.sum(y - m * X.ravel() - b1)
lr = 0.1
step_size = loss_slope * lr
b1 = b1 - step_size
b1

loss_slope = -2 * np.sum(y - m * X.ravel() - b1)
step_size = loss_slope * lr
b2 = b1 - step_size
b2

loss_slope = -2 * np.sum(y - m * X.ravel() - b2)
step_size = loss_slope * lr
b3 = b2 - step_size
b3