![Mobile Artificial Intelligence Projects](https://wfqqreader-1252317822.image.myqcloud.com/cover/722/36698722/b_36698722.jpg)
上QQ阅读APP看书,第一时间看更新
Scenario 1
I want to eat a cake and I went to the gym yesterday, but I did not do cardio, nor is it an occasion for cake:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/b48ff741-766f-4233-8e04-ddcadf19ae0e.jpg?sign=1738939860-ZPNJnFQEmOz42VfFCCILT3hRL5YGeAJN-0-e981adc4074435554718d3d0090fdf1b)
Here, the following applies:
- Xi is the first input factor, I did cardio yesterday. Now, Xi = 0, as this 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 = 1, as this is true.
- 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 = 0, as this is false.
- 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/f1cfb10c-000e-46eb-b95e-eca2430d94a0.png?sign=1738939860-pV2Yxtm3Ja0qBIo322KiJCszDHee1UoN-0-8f11662d9611010114e83f1fca9ba2cd)
For scenario 1, the equation will translate to this:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/eea9930f-44c4-49bc-ab8a-1175b1b98d9b.png?sign=1738939860-h9Esdmo9t8pdZadpGRTk2Wn70DVpjsUX-0-8128466d4afcb2b615b4a4f1596f859e)
This is equal to this:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/c72373a8-0c4a-4348-a339-a1bb34dee2ac.png?sign=1738939860-nBvAZZbrqez667a4dQrxoe1aTUuVlTzp-0-46ca3704b7cb37e90992c87c5408c8ab)
3 ≥ 4 is false, so it fires 0, which means I should not eat the cake.