![Mobile Artificial Intelligence Projects](https://wfqqreader-1252317822.image.myqcloud.com/cover/722/36698722/b_36698722.jpg)
上QQ阅读APP看书,第一时间看更新
Scenario 2
I want to eat a cake and it's my birthday, but I did not do cardio, nor did I go to the gym yesterday:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/c3b90c6b-70fb-4205-ae37-f004f3859436.png?sign=1738914272-4PeOVQViMx3FroyPRKrEfOLSylgI37Qy-0-034bbeb96a5370493915cc54c52021a4)
Here, the following applies:
- Xi is the first input factor, I did cardio yesterday. Now, Xi = 0, as this factor is false.
- Wi is the weight of the first input factor, Xi. In our example, Wi = 2.
- Xii is the second input factor, I went to the gym yesterday. Now, Xii = 0, as this factor is false.
- Wii is the weight of the second input factor, Xii. In our example, Wii = 3.
- Xiii is the third input factor, It is an occasion for cake. Now, Xiii = 1, this factor is true.
- Wiii is the weight of the third input factor, Xiii. In our example, Wiii = 6.
- threshold is 4.
We know that the neuron computes the following equation:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/2f874d55-53b7-4829-a9be-6b010448f7ba.png?sign=1738914272-qgaEPWKLwFrvz2WAZhKID7NxaZ1iz1Yb-0-9aa9434ef59b44331326c49d4b51dc54)
For scenario 2, the equation will translate to this:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/5a277032-ef63-4868-b8d3-0e9101a89af3.png?sign=1738914272-GEkvxodvJln2eZm0uixlAN1tvKob2Eyl-0-fba6f6925c250a72d8bcaa56eb1b768c)
It gives us the following output:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/b326d771-dc1f-4461-acc1-976ccc80bcaa.png?sign=1738914272-toTsQvWQOc2l5LVwlhdAUsh3z5ua4QAK-0-580f5d2ee868c95f8f042ac1e3deb89f)
6 ≥ 4 is true, so this fires 1, which means I can eat the cake.