![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=1739336769-DUtCBvP8uqNebPezompE6xHO80CFXCKP-0-31352eae19303b741ef17c5752ab9537)
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=1739336769-YfUzO8gBnAgODJAkxnRnC8MLqSrBv0b2-0-002c432ac98fdcf69bab84ed7f5a842b)
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=1739336769-VvXptXdQom8zTnZuZQjibEQFTQ90cwWg-0-88c2ab5278b88169652f1d33b6494060)
It gives us the following output:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/b326d771-dc1f-4461-acc1-976ccc80bcaa.png?sign=1739336769-UmB3qyVnIlnbf0Ei8CuyuGyoktJp64Di-0-b5324e9cc6eabec38db5f67fa3db6c23)
6 ≥ 4 is true, so this fires 1, which means I can eat the cake.