Beginning Anomaly Detection Using



Download 26,57 Mb.
Pdf ko'rish
bet44/283
Sana12.07.2021
Hajmi26,57 Mb.
#116397
1   ...   40   41   42   43   44   45   46   47   ...   283
Bog'liq
Beginning Anomaly Detection Using Python-Based Deep Learning

IRU

FRO


LQ

GIFROXPQV



LI

GI>FRO@GW\SH  REMHFW

HQFRGHG /DEHO(QFRGHU

HQFRGHGILW GI>FRO@

GI>FRO@ HQFRGHGWUDQVIRUP GI>FRO@

Figure 2-18.  Applying the label encoder to the columns with data values that are 

strings

Figure 2-19.  Looking at the first five entries of df after applying the label encoder

Chapter 2   traditional Methods of anoMaly deteCtion




45

With


df = df.iloc[np.random.permutation(len(df))]

you are randomly shuffling all the entries in the data set to avoid the problem of 

abnormal entries pooling in any one region of the data set.

With


df2 = df[:500000]

you are assigning the first 500,000 entries of df to a variable df2.

In the next line of code, labels = df2["label"], you assign the label column to  

the variable labels. Next, you assign the rest of the data frame to a variable named  

df_validate to create the validation data set with df_validate = df[500000:].

To split your data into the 




Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   40   41   42   43   44   45   46   47   ...   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