1. Pehle question samjho

Perceptron ka output hai:

y^={+1if wTx>0−1if wTx<0

Yahan:

Question bol raha hai ki perceptron ne data ko correctly separate kar diya hai.

Matlab prediction aur actual label same hone chahiye.

2. Ab dono possible cases dekho

Case 1: Positive class

Suppose:

y=+1

Correct classification ke liye:

wTx>0

Ab multiply kar do:

y(wTx)=(+1)(positive)

y(wTx)>0

Case 2: Negative class

Suppose:

y=−1

Correct classification ke liye:

wTx<0

Ab multiply kar do:

y(wTx)=(−1)(negative)

Negative × Negative = Positive.

y(wTx)>0

3. Dono cases ko combine karo

Actual label ywTxy(wTx)
+1PositivePositive
-1NegativePositive

Notice karo, dono cases mein:

y(wTx)>0

Isliye Option A correct hai.

4. Baaki options galat kyun hain?

OptionEquationResultReason
A y(wTx)>0TrueCorrect classification
B y(wTx)<0FalseIncorrect classification
C wTx>0FalseNegative class ke liye negative hota hai
D wTx<0FalsePositive class ke liye positive hota hai

5. Exam trick: Ye yaad rakhna

Jab bhi perceptron mein labels +1,−1 diye hon aur data correctly classified ho:

yi(wTxi)>0

Isko Perceptron classification condition bol sakte ho.

Ek chhota sa check:

Agar kisi data point ka:

y=−1,wTx=−5

Toh kya point correctly classified hai?