Machine Learning, Data Science, Mathematics, Artificial Intelligence, Deep Learning.
error function (also called a cost function) that measures how “good” a given line is. This function will take in a (m,b) pair and return an error value based on how well the line fits our data. To compute this error for a given line, we’ll iterate through each (x,y) point in our data set and sum