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.
References
- 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].