![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=1739328334-guTrrt7XVG7D6HdAQZidKxF9DBQZZbLV-0-dbbf97b84882ab7c3abe87445b8346df)
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=1739328334-X8DE0VeHLo1ZXUcuvQM0oTVlMM28Bmg0-0-f46c8466408fcff4f511e169fd507325)
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=1739328334-ALBOGC5pQ20vhRof4tKAzM3vjYxkAvnY-0-9f9d870a12f41b9df29ef83df2cb12a4)
It gives us the following output:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/b326d771-dc1f-4461-acc1-976ccc80bcaa.png?sign=1739328334-ACQqUneEW3FUBVaEeazyKf5NyRSeS3j5-0-d4539849eea420cee4685b08ad617eeb)
6 ≥ 4 is true, so this fires 1, which means I can eat the cake.