All mock tests are FREE till 31 December — register to save your progress
Unit 10 · Artificial Intelligence (AI) Paper 2 CS · June 2025

Consider the following table defining the sample inputs and corresponding target values for a perceptron model. What shall be the value of the updated weights after applying all the samples S1 to S4 (in the order S1, S2, S3, S4) to this model? Given that the initial weights w1 = 0, w2 = 0, learning rate = 0.1 and no bias is involved in the perceptron. The activation function is: y_observed = 1 if y_in > 0; 0 if y_in < 0.
Samplex1x2target
S1000
S2011
S3101
S4111

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. w1 = 0.1, w2 = 0.1

Explanation

Use w = w + η(t − y)x, taking output 0 when y_in = 0. S1 (0,0), t = 0: y_in = 0 → y = 0, no change. S2 (0,1), t = 1: y_in = 0 → y = 0, error 1, w2 = 0 + 0.1×1 = 0.1. S3 (1,0), t = 1: y_in = 0 → y = 0, w1 = 0.1. S4 (1,1), t = 1: y_in = 0.2 > 0 → y = 1, no change. Final w1 = 0.1, w2 = 0.1.

More Artificial Intelligence (AI) questions