官术网_书友最值得收藏!

The loss and cost functions in deep learning

Every machine learning model really starts with a cost function. Simply, a cost function allows you to measure how well your model is fitting the training data. In this book, we will define the loss function as the correctness of fit for a single observation within the training set. The cost function will then most often be an average of the loss across the training set. We will revisit loss functions later when we introduce each type of neural network; however, quickly consider the cost function for linear regression as an example:

In this case, the loss function would be , which is really the squared error. So then J, our cost function, is really just the mean squared error, or an average of the squared error across the entire dataset. The term 1/2 is added to make some of the calculus cleaner by convention.

主站蜘蛛池模板: 湖口县| 建阳市| 望奎县| 宜州市| 花莲县| 广汉市| 拜泉县| 盐源县| 霍城县| 沾化县| 民丰县| 苍山县| 禄丰县| 张家川| 大庆市| 红安县| 丁青县| 巩留县| 溧阳市| 浦江县| 桐柏县| 营口市| 巨鹿县| 门源| 宽甸| 海原县| 温泉县| 巴南区| 海丰县| 襄城县| 南汇区| 沙田区| 海伦市| 宜兴市| 屏东市| 佛山市| 静安区| 托里县| 闵行区| 武冈市| 论坛|