Beginning Anomaly Detection Using


Categorical Cross Entropy



Download 26,57 Mb.
Pdf ko'rish
bet234/283
Sana12.07.2021
Hajmi26,57 Mb.
#116397
1   ...   230   231   232   233   234   235   236   237   ...   283
Bog'liq
Beginning Anomaly Detection Using Python-Based Deep Learning

 Categorical Cross Entropy

keras.losses.categorical_crossentropy(y_true, y_pred)

See the equation in Figure 

A-16


.

Figure A-16.  The equation for categorical cross entropy

Figure A-17.  Another way to write the equation for categorical cross entropy

In this case, 



n is the number of samples in the whole data set. The parameter h

θ

 

represents the model with the weight parameter 



θ passed in, so h

θ

(x



i

) gives the predicted 

value for x

i

 with model’s weights 



θ. Finally, y

i

 represents the true label for data point 

at index i. The data needs to be regularized to be between 0 and 1, so for categorical 

cross entropy, it must be piped through a softmax activation layer. The categorical cross 

entropy loss is also called 

softmax loss.

Equivalently, you can write the previous equation as shown in Figure 

A-17

.

In this case, 



m is the number of classes.

The categorical cross entropy loss is a commonly used metric in classification tasks, 

especially in computer vision with convolutional neural networks. 


Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   230   231   232   233   234   235   236   237   ...   283




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish