![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=1739274003-qJmKdEKHPR6bJbB9kVDYMgFac7oiYOe6-0-b643e5edb03e0e4870af46cb01e9fb64)
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=1739274003-hxCVGQyug9PpSNMMHpcZu1o5HiE4KhhF-0-bf7f14ae69d37b31c34700e0a5b9ce52)
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=1739274003-QoHUmSdyoXw99c5iG3tP8mN5RXx9wDzt-0-5d99743775784e2a7e80795535fad51d)
It gives us the following output:
![](https://epubservercos.yuewen.com/0961CC/19470380101497006/epubprivate/OEBPS/Images/b326d771-dc1f-4461-acc1-976ccc80bcaa.png?sign=1739274003-SfDTA3XWL25wpguLqiEHnvtx6eQIVSQv-0-2cf55a5e80d10c8a90390d9d728b66e7)
6 ≥ 4 is true, so this fires 1, which means I can eat the cake.