Jump to content

Artificial neuron: Difference between revisions

From Wikibase
Created page with "Category:Artificial neural network An '''artificial neuron''' is an elementary computational unit in an artificial neural network (ANN), loosely inspired by biological neurons.<ref>{{#cite:Q3074}}</ref> == Mathematical representation == {{#content:Q3075}} == Training == During training of an artificial neural network (ANN), weights and bias of each artificial neuron is adjusted to achieve desired output behaviour.<ref>{{#cite:Q3074}}</ref>"
 
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:


{{#content:Q3075}}
{{#content:Q3075}}
== Layer composition ==
Let $l$ be a '''layer of artificial neurons''' receiving the same '''input vector''' $\vec x=(x_i)=(x_1,x_2,\dots,x_m)$.
Then the '''layer pre-activation vector'''
$$
\vec z^{(l)}=(z_1,z_2,\dots,z_n)
$$
and the '''layer activation vector'''
$$
\vec a^{(l)}=(a_1,a_2,\dots,a_n)=(f(z_1),f(z_2),\dots,f(z_n)) =f(\vec z^{(l)})
$$
since the '''[[activation function]]''' $f$ is component-wise by definition.
=== Basic form ===
When
$$
z_j = \sum_{i=1}^{m} w_{j,i} x_i + b_j
$$
then
$$
\vec z^{(l)}=\mathbf{W}\vec x + \vec b \\
\vec a^{(l)}=f(\vec z^{(l)})=f(\mathbf{W}\vec x + \vec b)
$$
where $\mathbf{W}$ is an $n \times m$ dimensioned matrix, known as the '''weight matrix''' of layer $l$, satisfying
$$
\mathbf{W}(j,i)=w_{j,i}
$$
and $\vec b=(b_j) \in \mathbb{R}^n$ is known as the '''bias vector''' of layer $l$.
i.e.,
$$
\vec a^{(l)} =
f \left(
\begin{pmatrix}
w_{0,0} & w_{0,1} & \cdots & w_{0,m} \\
w_{1,0} & w_{1,1} & \cdots & w_{1,m} \\
\vdots & \vdots & \ddots & \vdots \\
w_{n,0} & w_{n,1} & \cdots & w_{n,m}
\end{pmatrix}
\begin{pmatrix}
x_1 \\
x_2 \\
\vdots \\
x_m
\end{pmatrix}
+
\begin{pmatrix}
b_0 \\
b_1 \\
\vdots \\
b_n
\end{pmatrix}^\mathrm{T}
\right)
$$


== Training ==
== Training ==


During training of an [[artificial neural network (ANN)]], weights and bias of each artificial neuron is adjusted to achieve desired output behaviour.<ref>{{#cite:Q3074}}</ref>
During training of an [[artificial neural network (ANN)]], weights and bias of each artificial neuron are adjusted to achieve desired output behaviour.<ref>{{#cite:Q3074}}</ref>

Latest revision as of 13:48, 16 November 2026

An artificial neuron is an elementary computational unit in an artificial neural network (ANN), loosely inspired by biological neurons.[1]

Mathematical representation

An artificial neuron is the implementation of the mathematical function

$$\begin{gathered}a = f\left(z \right)\\ \text{Basic form}: z = \sum_{i=1}^{n} w_i x_i + b\end{gathered}$$

where:

  • $x_i$ = input values
  • $w_i \in \mathbb{R}$ = weights
  • $b \in \mathbb{R}$ = bias term
  • $z \in \mathbb{R}$ = pre-activation value
  • $f$ = activation function, such as sigmoid
  • $a$ = neuron output

Layer composition

Let $l$ be a layer of artificial neurons receiving the same input vector $\vec x=(x_i)=(x_1,x_2,\dots,x_m)$.

Then the layer pre-activation vector

$$ \vec z^{(l)}=(z_1,z_2,\dots,z_n) $$

and the layer activation vector

$$ \vec a^{(l)}=(a_1,a_2,\dots,a_n)=(f(z_1),f(z_2),\dots,f(z_n)) =f(\vec z^{(l)}) $$

since the activation function $f$ is component-wise by definition.

Basic form

When

$$ z_j = \sum_{i=1}^{m} w_{j,i} x_i + b_j $$

then

$$\begin{gathered} \vec z^{(l)}=\mathbf{W}\vec x + \vec b \\ \vec a^{(l)}=f(\vec z^{(l)})=f(\mathbf{W}\vec x + \vec b) \end{gathered}$$

where $\mathbf{W}$ is an $n \times m$ dimensioned matrix, known as the weight matrix of layer $l$, satisfying

$$ \mathbf{W}(j,i)=w_{j,i} $$

and $\vec b=(b_j) \in \mathbb{R}^n$ is known as the bias vector of layer $l$.

i.e.,

$$ \vec a^{(l)} = f \left( \begin{pmatrix} w_{0,0} & w_{0,1} & \cdots & w_{0,m} \\ w_{1,0} & w_{1,1} & \cdots & w_{1,m} \\ \vdots & \vdots & \ddots & \vdots \\ w_{n,0} & w_{n,1} & \cdots & w_{n,m} \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \\ \vdots \\ x_m \end{pmatrix} + \begin{pmatrix} b_0 \\ b_1 \\ \vdots \\ b_n \end{pmatrix}^\mathrm{T} \right) $$

Training

During training of an artificial neural network (ANN), weights and bias of each artificial neuron are adjusted to achieve desired output behaviour.[1]