Cost function — A simple explanation
Cost functions are functions that measure the performance of a Machine Learning model given a set of data.
Take a simple example of a linear regression model. The cost function of a Linear Regression model is given as