while abs(theta1_guess - theta1_last) > variance or abs(theta0_guess -
    theta0_last) > variance:
    theta1_last = theta1_guess
How to determine the learning rate and the variance in a gradient descent algorithm？