###### Machine Learning

## Cost function – A simple introduction

The **cost function** is a function that computes the *cost* of a mathematical model based on how far is from data, or more precisely, how the model is representative of a set of data. In a nutshell, we can assert that it has a *'generic'* usage based on what kind of operation we need to carry out.