![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=1739028818-zqVjZuEPlAiIWpnuAH5dQMp4QSchtNY1-0-d6d65b750d575efd786d6640efdcdf28)
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=1739028818-One2ouW61zCwPxHEUK8UX2XBUQ66YI6z-0-fa78b906b073a6e8e423be5e40d3384b)
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=1739028818-vpAJ66mjJtoLlw2QUvOl4S9vYRqO8qsx-0-8e051648c72a0289e1292c17f6f73909)
This is equal to this:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/c72373a8-0c4a-4348-a339-a1bb34dee2ac.png?sign=1739028818-g26P8WawGz2HeT24Md7l4HQYKjQxFQOs-0-41bae9f4f4f62ff07e11d6379da9ea2d)
3 ≥ 4 is false, so it fires 0, which means I should not eat the cake.