The Error Function

Learn about the error functions used for classification and regression problems.

The accuracy of the predicted output can be calculated by comparing it with the target output. This accounts for computing the error.

Error function (or loss)

Mean squared error (MSE)

The error is the difference between the actual value and the predicted value. We want this error value to be minimum to get the best possible function. This error equation is given by:

E=yβˆ’yβ€²E=y-y'

πŸ“ Note: Since a negative error would not make sense, square the error function to force the raw error to be positive by multiplying it by itself.

E=(yβˆ’yβ€²)2E=(y-y')^2 ...

Access this course and 1400+ top-rated courses and projects.