Beginning Anomaly Detection Using


Boolean/ Bernoulli RBM



Download 26,57 Mb.
Pdf ko'rish
bet123/283
Sana12.07.2021
Hajmi26,57 Mb.
#116397
1   ...   119   120   121   122   123   124   125   126   ...   283
Bog'liq
Beginning Anomaly Detection Using Python-Based Deep Learning

Boolean/

Bernoulli RBM. Figure 

5-2


 shows an RBM.

v

0



v

1

v



2

h

4



h

3

h



2

h

0



h

1

Input 



Layer

Hidden 


Layer

Figure 5-2.  A visual representation of a basic restricted Boltzmann machine

We can expand this model out even more to include biases (see Figure 

5-3

).

Chapter 5   Boltzmann maChines




182

Bias 


a adds to all of the outputs of the input layer, and bias b adds to the outputs of 

the hidden layer. From here, we can define what is called the 



energy function, which the 

RBM tries to minimize. The 



energy function is shown in Figure 

5-4


.

v

0



v

1

v



2

h

4



h

3

h



2

h

0



h

1

Input 



Layer

Hidden 


Layer

b

a



Bias b

Bias a


Figure 5-3.  A visual representation of a restricted Boltzmann machine with a 

different bias feeding into each of the two layers

Figure 5-4.  A formula that defines the energy function of the restricted Boltzmann 

machine

The first summation term is an element-wise multiplication between bias 



a and 

visible layer 



v, where each term a

i

 is multiplied with each term v



i

. The second summation 

term follows the same logic, except uses element-wise multiplication with bias 

b and 

hidden layer 



h. Finally, the last summation term multiplies each visible node v

i

 with 



each hidden node h

j

 and the weight value w



ij

 for that connection.

The summations are basically element-wise multiplication between two vectors, one 

being 


transposed, so 1xn (1 column n rows), and the other being nx1 (n columns 1 

row). When a vector or matrix is transposed, we reverse the dimensions of the vector/

matrix and rearrange the values. In a vector, the same values in a row/column are now in 

a column/row. For matrices, it’s a bit more complex. To better understand the concept of 

transposing a vector or matrix, refer to Figure 

5-5


, Figure 

5-6


, and Figure 

5-7


.

Chapter 5   Boltzmann maChines




183


Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   119   120   121   122   123   124   125   126   ...   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