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

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.

主站蜘蛛池模板: 军事| 鞍山市| 正镶白旗| 二手房| 汝南县| 天峻县| 治多县| 融水| 高阳县| 沛县| 富锦市| 凌云县| 清远市| 五指山市| 乡城县| 瓦房店市| 定远县| 通河县| 东丽区| 河北省| 辛集市| 阜新| 焦作市| 绍兴县| 苍南县| 岳普湖县| 东乡族自治县| 株洲县| 龙口市| 方城县| 瑞安市| 陇川县| 长汀县| 江口县| 灵石县| 织金县| 宝应县| 济源市| 台北县| 济南市| 祥云县|