Beginning Anomaly Detection Using


model: An instance of a model class. In this case, it’s an instance of  the CNN class defined above. •  device



Download 26,57 Mb.
Pdf ko'rish
bet255/283
Sana12.07.2021
Hajmi26,57 Mb.
#116397
1   ...   251   252   253   254   255   256   257   258   ...   283
Bog'liq
Beginning Anomaly Detection Using Python-Based Deep Learning

model: An instance of a model class. In this case, it’s an instance of 

the CNN class defined above.

• 

device: This basically tells PyTorch what device (if the GPU is an 

option, which GPU to run on, and if not, the CPU is the device) to run 

on. In this case, you define the device right after the imports.

• 

test_loader: The loader for the testing data set. In this case, you use 

a data_loader because that’s how the MNIST data is formatted when 

importing from torchvision. This data loader contains the testing 

samples for the MNIST data set.

Now you can get to defining your hyperparameters and data loaders, and calling 

your train and test functions (Figures 

B-11

 through 



B-13

).

Figure B-10.  The code in Figure 



B-9

 in a Jupyter cell

appendix B   intro to pytorch




372

+\SHUSDUDPHWHUV

QXPBHSRFKV 

QXPBFODVVHV 

EDWFKBVL]H 

OHDUQLQJBUDWH 

/RDG01,67GDWDVHW

WUDLQBGDWDVHW WRUFKYLVLRQGDWDVHWV01,67 URRW GDWD 

WUDLQ 


Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   251   252   253   254   255   256   257   258   ...   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