edited by
403 views
1 votes
1 votes
A perceptron consists of weights $\left[w_{1}, w_{2}, w_{3}, w_{4}\right]=[0.5,2,1,-3]$. The activation function is provided as $y=f(z)=1$ if $z \geq 2$ otherwise $0,$ where $z= \sum(w . d)$. What is the output $y$ for the following four data samples $d?$

$$\begin{array}{|c|c|c|c|c|}
\hline & p_{1} & p_{2} & p_{3} & p_{4} \\
\hline \hline d_{1} & 1 & -1  & 0 & 1 \\
d_{2} & 1 & -1 & 1 & 1 \\
d_{3} & 0 & 0 & 1 & -1 \\
d_{4} & 1 & 0 & 1 & -1  \\
\hline
\end {array}$$
edited by

1 Answer

0 votes
0 votes

In a perceptron model, the output y is calculated using the weighted sum of inputs z, where z = $\sum_{i} (w_{i} *d_{i}),$ and then applying an activation function to the z valueweights [0.5,2,1,−3], the activation function y = 1 if z ≥ 2 and y = 0 otherwise.

Let's calculate the output y for each data sample d using the provided weights:

For $d_{1}$:

z=(0.5×1)+(2×−1)+(1×0)+(−3×1)= −3.5
∵ z < 2, y = 0.


for same as:

$d_{2}$ → -2.5 at z < 2, y = 0
$d_{3}$ → 4 at z >= 2, y = 1
$d_{4}$ → 2.5 at z >= 2, y = 1

So, the outputs y for the four data samples $d_{1}$, $d_{2}$, $d_{3}$, and $d_{4}$are 0,0,1, and 1 respectively.

Related questions

2 votes
2 votes
2 answers
1
admin asked Dec 15, 2022
677 views
What is the State $\mathrm{X}$ called for the following machine learning model?
1 votes
1 votes
2 answers
2
admin asked Dec 15, 2022
741 views
What is the minimum number of nodes required in a DAG (Directed Acyclic Graph) for the following block?\[\begin{aligned}U=Z & =V+W \\X=Y & =U+1 \\A & =X+Y\end{aligned}\]
1 votes
1 votes
2 answers
3
admin asked Dec 15, 2022
375 views
What is the size of the physical address space in a paging system, which has a page table containing $64$ entries of $11$ bit each (including valid and invalid bit) and a...