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

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.

主站蜘蛛池模板: 三都| 北流市| 神农架林区| 崇信县| 固镇县| 百色市| 平阳县| 阿巴嘎旗| 廊坊市| 阿瓦提县| 沅江市| 博白县| 正阳县| 武山县| 获嘉县| 辽宁省| 安宁市| 凤阳县| 阿瓦提县| 安达市| 平果县| 普定县| 绥棱县| 咸丰县| 永城市| 海丰县| 闽侯县| 新昌县| 广东省| 陇南市| 宁夏| 乌拉特前旗| 枞阳县| 靖远县| 张家界市| 长寿区| 民勤县| 达州市| 禄丰县| 错那县| 蓬莱市|