Difference Between Loss and Cost Function in Deep Learning

AvatarPosted by

Loss function

The Loss function computes the error for a single training example.

Cost function

The Cost function is the average of the Loss functions of the entire training set.

Thanks for reading this post.


  1. Coursera. 2020. Logistic Regression Cost Function – Neural Networks Basics | Coursera. [online] Available at: <https://www.coursera.org/learn/neural-networks-deep-learning/lecture/yWaRd/logistic-regression-cost-function> [Accessed 11 May 2020].

Leave a Reply

Your email address will not be published. Required fields are marked *