![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=1738888778-A18lqeTPauBNeYGhvsa9SmNg4BB7FkwC-0-628f598304cd0f07de29547950884efe)
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=1738888778-NqLkSkJlL80CxeE6QeseYOSSJd0CjEMn-0-c028f328dce505b6f530ce642d333dd0)
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=1738888778-obfwk39Mv4qHJ5dIYaddCdzq2rXCBmeP-0-e6958999c90af6db1f4db8d32419b4cb)
It gives us the following output:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/b326d771-dc1f-4461-acc1-976ccc80bcaa.png?sign=1738888778-X8RvcoIVHNUNchFHUa3FCMpOi6Eml6YV-0-49d84a0af9c2ce50df49830d79b0c06b)
6 ≥ 4 is true, so this fires 1, which means I can eat the cake.