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

The cost function

We need our classifier to predict the probability of seizure, which is class 1. This means that our output will be constrained to [0,1] as it would be in a traditional logistic regression model. Our cost function, in this case, will binary cross-entropy, which is also known as log loss. If you've worked with classifiers before, this math is likely familiar to you; however, as a refresher, I'll include it here.

The complete formula for log loss looks like this:

This can probably be seen more simply as a set of two functions, one for case  and :

     

When  and

When

The log function is used here to result in a monotonic function (one that is always increasing or decreasing) that we can easily differentiate. As with all cost functions, we will adjust our network parameters to minimize the cost of the network.

主站蜘蛛池模板: 襄樊市| 哈尔滨市| 始兴县| 晋中市| 永仁县| 石河子市| 嘉兴市| 山阳县| 日土县| 三穗县| 井研县| 博罗县| 台南市| 衢州市| 遵义县| 绍兴市| 绥阳县| 奈曼旗| 饶平县| 剑川县| 汉阴县| 晋中市| 文成县| 平度市| 岳阳市| 浪卡子县| 监利县| 呼玛县| 灵璧县| 南康市| 濮阳县| 高唐县| 铅山县| 伊宁市| 镇安县| 江安县| 扶余县| 峨山| 盘锦市| 辽源市| 鲁甸县|