![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=1739136385-hf1TngZp71ttvRzNrELLQtebl5aiUm0F-0-f0eaec1e416bdbda3bf4b95d42abba37)
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=1739136385-nz2s34OgmbOTjEI5vOBR8zVx71JW4lLN-0-3b80814d85022215e4efb2ca10eb3d40)
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=1739136385-3XDFuUxVh3DgmgKotF8aWVHC5HqlBovD-0-3bdcafb66a63f15aa6277c5e8a899e45)
This is equal to this:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/c72373a8-0c4a-4348-a339-a1bb34dee2ac.png?sign=1739136385-OmNr0ZDerarde3EhFxWJUmhd1k9AG3bD-0-c15e6ebda761b86ef0ad8af2e73fed59)
3 ≥ 4 is false, so it fires 0, which means I should not eat the cake.