![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=1739275059-5DkrGtAK4GRRzFbt5tUG9dG1xCzUF8D5-0-a9f8d392cc011469660342e17c6c4405)
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=1739275059-hWDwxgUgu008LpnRSO28bU6vUBSlbQ8Y-0-6e0f1c24c4d1572db7c14f71b87d0775)
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=1739275059-QCv1K9Dl5EwlmswPuOjF8XndcZcktTyg-0-999bb9acb864d71d874410f1b4773d3b)
This is equal to this:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/c72373a8-0c4a-4348-a339-a1bb34dee2ac.png?sign=1739275059-zJOkx8oASOuCEN8qDwTAk4reP4UvaK2g-0-0eedd3f6a549a369dffcf3908306458b)
3 ≥ 4 is false, so it fires 0, which means I should not eat the cake.