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.

Figure

What shall be the value of updated weights after applying all the samples S 1 to S 4 (in the order S 1, S 2, S3, S4) to this model. Given that the initial weights w 1=0, w 2=0, learning rate =0.1 and no bias is involved in the perceptron. The activation function for this perceptron is given below 1, if y > 0 y_observed = { in 0, if y < 0 in

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

Show answer & explanation

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

Explanation

S1: output 0 = target, no change. S2 (0,1): net 0 → output 0, target 1, so w2 += 0.1 → 0.1. S3 (1,0): net 0 → output 0, target 1, so w1 += 0.1 → 0.1. S4 (1,1): net 0.2 > 0 → output 1 = target. Final w1 = 0.1, w2 = 0.1.

More Artificial Intelligence (AI) questions