Linear Regression, Gradient Descent, Machine Learning, Data Science, Getting Started.
function. See this explanation for why we divide by 2. In gradient descent, the goal is to minimize the cost function. We do this by trying different values of slope and intercept. But which values to try and how do you go about changing those values? We change their values according to the