官术网_书友最值得收藏!

ANNs

The ANNs is built from two components: nodes and weights. Nodes play the role of a neuron while weights are the learnable parameters, which connect the neurons with each other, and control their activation paths.

So how do we make an artificial neuron or node? Consider x to be a scalar input to the neuron and w to be the scalar weight for the neuron. If you don't know what a scalar and vector are, a scalar is simply a single real number element, while a vector is a list of such elements. The artificial neuron can be represented as the following equation:

 

The circle represents the neuron which takes scalar x as input and outputs a after multiplying it with weight w. Here, b is called as bias. Bias is added in the equation to provide the capability of shifting the output for a specific range of inputs. The role of bias will become more clear once we go through the activation functions.

Now, suppose the neuron didn't just take in a single scalar input, but multiple inputs. The inputs can then be called a vector (say P). Then, P could be written as a set of scalar inputs p1p2, p3...., pn and each input will also have a weight vector (say W = w1, w2, w3, ..., wn), which will be used to activate the neuron. The following matrices represent the P and W vectors:

             

So what changes do we need to make in the equation to fit these multiple inputs? Simply sum them up! This changes the basic equation a = w.x + b to the following equation:

The artificial neuron taking in multiple inputs would look like the following diagram:

But what would a neuron do alone? Although it can still output values, which can be used to take binary judgements (zero or one), we need a lot of similar neurons arranged in a parallel manner and interconnected just like in the brain in order to go beyond binary decisions. So, what would it look like? Here's the diagram:

What changes are required in the equation now? Just the dimensions of weight vector and output vector. Now we will have n x m number of weights where n is the number of inputs and m is the number of neurons. Also, we will be having a separate output from each of the neurons. The output, thus, also turns into a vector: 

             

So far, we have learned the basic structure and mathematical equations modeling the ANNs; next we shall see another important concept called activation functions.

主站蜘蛛池模板: 漾濞| 商河县| 芜湖县| 台中市| 体育| 甘洛县| 宾阳县| 通州市| 扎鲁特旗| 合阳县| 永修县| 准格尔旗| 四川省| 通山县| 新丰县| 绵阳市| 马公市| 永顺县| 沧州市| 惠来县| 彩票| 来凤县| 绵竹市| 永川市| 康乐县| 丁青县| 通渭县| 河北省| 莆田市| 繁昌县| 木兰县| 山西省| 四平市| 上犹县| 衡南县| 罗源县| 枞阳县| 浮梁县| 英吉沙县| 奇台县| 蓝田县|