Beginning Anomaly Detection Using



Download 26,57 Mb.
Pdf ko'rish
bet238/283
Sana12.07.2021
Hajmi26,57 Mb.
#116397
1   ...   234   235   236   237   238   239   240   241   ...   283
Bog'liq
Beginning Anomaly Detection Using Python-Based Deep Learning

Figure A-25.  Code to define a custom metric and use that for the model

Figure A-24.  The code definition of categorical accuracy as seen in the Keras 

GitHub page

Of course, there are many more metrics that are available on the Keras 

documentation, and you can even define 

custom metrics. To do that, just simply define 

a function that takes in y_true and y_pred, and call that function name in your metrics, 

as shown in Figure 

A-25


.

In this example, you simply rewrite the binary accuracy metric in several lines and 

return the score. You can actually condense this function to just one line like in the actual 

implementation seen above, but this is just an example to showcase a custom metric.




Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   234   235   236   237   238   239   240   241   ...   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