Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions) Notes in Hindi & English : कन्फ्यूजन मैट्रिक्स: ट्रू पॉजिटिव (TP), TN, FP (टाइप 1) और FN (टाइप 2) और 20 महत्वपूर्ण MCQ प्रश्न (Rajasthan IT Exam)

Post a Comment

PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions) (कन्फ्यूजन मैट्रिक्स: ट्रू पॉजिटिव (TP), TN, FP (टाइप 1) और FN (टाइप 2)) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।

Overview: A Confusion Matrix is an N × N evaluation table comparing true ground-truth class labels against a classifier's predicted labels, exposing exact counts of correct hits and specific error types. In binary classification, its four cells—True Positive (TP), True Negative (TN), False Positive (FP / Type I Error), and False Negative (FN / Type II Error)—form the foundation for all classification metrics.

अध्याय सार: कन्फ्यूजन मैट्रिक्स (Confusion Matrix) एक N × N मूल्यांकन सारणी है जो वास्तविक वर्ग लेबल्स की तुलना मॉडल द्वारा अनुमानित लेबल्स से करके सही और गलत भविष्यवाणियों का पूरा विवरण देती है। द्विआधारी वर्गीकरण में इसके चार मान—ट्रू पॉजिटिव (TP), ट्रू नेगेटिव (TN), फॉल्स पॉजिटिव (FP / टाइप-1 त्रुटि) और फॉल्स नेगेटिव (FN / टाइप-2 त्रुटि)—सभी मूल्यांकन मानकों का आधार होते हैं।

Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions): Detailed Notes & Architecture (कन्फ्यूजन मैट्रिक्स: ट्रू पॉजिटिव (TP), TN, FP (टाइप 1) और FN (टाइप 2))

1. Binary Confusion Matrix Structure and Cell Definitions (द्विआधारी कन्फ्यूजन मैट्रिक्स की संरचना और चार मान)

[EN] For binary classification (Positive = 1, Negative = 0), every test prediction lands in exactly one of four mutually exclusive cells whose sum equals total samples N = TP + TN + FP + FN. True Positive (TP) occurs when Actual is Positive and Predicted is Positive; True Negative (TN) occurs when Actual is Negative and Predicted is Negative. Both TP and TN lie along the main diagonal of the matrix and represent completely correct classifications.

[HI] द्विआधारी वर्गीकरण (पॉजिटिव = 1, नेगेटिव = 0) में प्रत्येक परीक्षण सैंपल चार परस्पर अपवर्जी खंडों में से एक में जाता है, जिनका योग कुल सैंपल N = TP + TN + FP + FN होता है। जब वास्तविक लेबल और अनुमानित लेबल दोनों पॉजिटिव हों तो ट्रू पॉजिटिव (TP), और दोनों नेगेटिव हों तो ट्रू नेगेटिव (TN) कहलाता है। TP और TN मैट्रिक्स के मुख्य विकर्ण (main diagonal) पर स्थित होते हैं और सही भविष्यवाणियों को दर्शाते हैं।

2. Type I Error (FP) vs Type II Error (FN) in Real-World Systems (वास्तविक प्रणालियों में टाइप-1 (FP) बनाम टाइप-2 (FN) त्रुटि)

[EN] False Positive (FP), statistically known as Type I Error (α), happens when an actually Negative sample is falsely predicted Positive—like marking an urgent bank alert email as spam. False Negative (FN), known as Type II Error (β), happens when an actually Positive sample is missed and predicted Negative—like failing to diagnose a malignant tumor or missing a fraudulent transaction. Depending on domain cost, engineers tune decision thresholds to suppress either FP (high-stakes spam blocking) or FN (medical screening and cybersecurity).

[HI] फॉल्स पॉजिटिव (FP), जिसे सांख्यिकी में टाइप-1 त्रुटि (α) कहा जाता है, तब होती है जब वास्तविक नेगेटिव को गलती से पॉजिटिव मान लिया जाए—जैसे महत्वपूर्ण ईमेल को स्पैम में डाल देना। फॉल्स नेगेटिव (FN), जिसे टाइप-2 त्रुटि (β) कहा जाता है, तब होती है जब वास्तविक पॉजिटिव छूट जाए—जैसे कैंसर रोगी की रिपोर्ट सामान्य दिखाना या धोखाधड़ी न पकड़ पाना। अनुप्रयोग की गंभीरता के अनुसार निर्णय सीमा (threshold) समायोजित करके FP या FN को नियंत्रित किया जाता है।

3. Scikit-Learn Layout Convention and Unpacking Order (Scikit-Learn मैट्रिक्स विन्यास और .ravel() क्रम)

[EN] In scikit-learn's `confusion_matrix(y_true, y_pred)`, rows (axis 0) represent True/Actual labels and columns (axis 1) represent Predicted labels, ordered by sorted class labels [0, 1]. Therefore, row 0 contains [TN, FP] and row 1 contains [FN, TP]. Calling `.ravel()` flattens row-by-row, giving the exact exam-critical unpacking sequence: `tn, fp, fn, tp = confusion_matrix(y_true, y_pred).ravel()`.

[HI] scikit-learn के `confusion_matrix(y_true, y_pred)` में पंक्तियाँ (rows) वास्तविक मानों को और स्तंभ (columns) अनुमानित मानों को सॉर्ट किए गए क्रम [0, 1] में दर्शाते हैं। इस कारण पहली पंक्ति में [TN, FP] तथा दूसरी पंक्ति में [FN, TP] मान होते हैं। `.ravel()` कॉल करने पर मैट्रिक्स पंक्ति-दर-पंक्ति खुलता है और ठीक `tn, fp, fn, tp` क्रम में मान लौटता है।

4. Multi-Class Confusion Matrix Interpretation (C × C) (बहु-वर्ग (Multi-Class) कन्फ्यूजन मैट्रिक्स की व्याख्या)

[EN] When classifying C > 2 categories (such as handwritten digits 0–9), the confusion matrix expands to size C × C. All correct predictions remain on the main diagonal M[i, i], while off-diagonal cells M[i, j] (i ≠ j) reveal exactly which classes get confused with each other. Using one-vs-rest per class i: TPᵢ = M[i, i], FNᵢ equals the sum of row i excluding TPᵢ, FPᵢ equals the sum of column i excluding TPᵢ, and TNᵢ is the sum of all remaining cells.

[HI] जब दो से अधिक C वर्गों (जैसे अंक 0–9) का वर्गीकरण हो, तो कन्फ्यूजन मैट्रिक्स का आकार C × C हो जाता है। सभी सही भविष्यवाणियाँ मुख्य विकर्ण M[i, i] पर रहती हैं, जबकि विकर्ण से बाहर के मान M[i, j] दिखाते हैं कि मॉडल किन वर्गों के बीच भ्रमित हो रहा है। किसी वर्ग i के लिए: TPᵢ = M[i, i], FNᵢ उस पंक्ति के अन्य मानों का योग, FPᵢ उस स्तंभ के अन्य मानों का योग, और TNᵢ शेष बचे सभी खंडों का योग होता है।

Syntax, Formula & Technical Example (Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions))

from sklearn.metrics import confusion_matrix

y_true = [1, 0, 1, 1, 0, 0, 1, 0]
y_pred = [1, 0, 0, 1, 1, 0, 1, 0]
tn, fp, fn, tp = confusion_matrix(y_true, y_pred).ravel()
print(f"TP={tp}, TN={tn}, FP(Type-I)={fp}, FN(Type-II)={fn}")

Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions) Quick Reference & Comparison Table

Matrix CellActual vs Predicted OutcomeError Type / Exam Fact
True Positive (TP)Actual Positive, Predicted PositiveCorrect positive hit on diagonal
True Negative (TN)Actual Negative, Predicted NegativeCorrect negative rejection on diagonal
False Positive (FP)Actual Negative, Predicted PositiveType I Error (Alpha / False Alarm)
False Negative (FN)Actual Positive, Predicted NegativeType II Error (Beta / Missed Detection)

Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions) Top 20 Bilingual MCQs with Answers

Q1. Which cell in a Confusion Matrix corresponds to a statistical Type I Error (α)?

(कन्फ्यूजन मैट्रिक्स का कौन-सा भाग सांख्यिकीय टाइप-1 त्रुटि (α) के समतुल्य है?)

(A) True Negative (TN)

(B) True Positive (TP)

(C) False Positive (FP)

(D) False Negative (FN)

Correct Answer: (C)

[EN] A Type I Error rejects a true null hypothesis (predicting positive/effect when actual state is negative), which is a False Positive (FP).

[HI] टाइप-1 त्रुटि तब होती है जब वास्तविक नेगेटिव को गलत तरीके से पॉजिटिव घोषित किया जाए, अर्थात् फॉल्स पॉजिटिव (FP)।

Q2. Which cell in a Confusion Matrix corresponds to a statistical Type II Error (β)?

(कन्फ्यूजन मैट्रिक्स का कौन-सा भाग सांख्यिकीय टाइप-2 त्रुटि (β) के समतुल्य है?)

(A) False Positive (FP)

(B) True Positive (TP)

(C) True Negative (TN)

(D) False Negative (FN)

Correct Answer: (D)

[EN] A Type II Error fails to detect a true positive condition (predicting negative when actual is positive), which is a False Negative (FN).

[HI] टाइप-2 त्रुटि तब होती है जब वास्तविक पॉजिटिव स्थिति को पहचानने में मॉडल विफल रहे और नेगेटिव बताए, अर्थात् फॉल्स नेगेटिव (FN)।

Q3. What are the dimensions of the Confusion Matrix for a 5-class classification problem?

(5-वर्ग (5-class) वर्गीकरण समस्या के लिए कन्फ्यूजन मैट्रिक्स का आकार क्या होगा?)

(A) 5 × 5

(B) 10 × 5

(C) 5 × 2

(D) 2 × 2

Correct Answer: (A)

[EN] An N-class confusion matrix is always a square N × N grid comparing each actual class against each predicted class.

[HI] N वर्गों वाली समस्या के लिए कन्फ्यूजन मैट्रिक्स हमेशा N × N का वर्गाकार मैट्रिक्स होता है, अतः यहाँ आकार 5 × 5 होगा।

Q4. In scikit-learn, what is the exact unpacking order returned by `confusion_matrix(y_true, y_pred).ravel()` for binary labels [0, 1]?

(scikit-learn में द्विआधारी लेबल [0, 1] के लिए `confusion_matrix(y_true, y_pred).ravel()` मानों को किस क्रम में लौटाता है?)

(A) tp, fn, fp, tn

(B) fn, tp, tn, fp

(C) tn, fp, fn, tp

(D) tp, fp, fn, tn

Correct Answer: (C)

[EN] With rows=actual [0,1] and cols=predicted [0,1], row 0 is [TN, FP] and row 1 is [FN, TP], flattening to tn, fp, fn, tp.

[HI] scikit-learn में पहली पंक्ति [TN, FP] और दूसरी पंक्ति [FN, TP] होती है, अतः `.ravel()` का क्रम `tn, fp, fn, tp` रहता है।

Q5. In a medical cancer screening test, an actually healthy patient is mistakenly told they have cancer. What is this outcome?

(कैंसर जाँच में एक वास्तव में स्वस्थ व्यक्ति को गलती से कैंसर पीड़ित बता दिया जाता है। यह कौन-सी स्थिति है?)

(A) False Negative (FN)

(B) False Positive (FP)

(C) True Negative (TN)

(D) True Positive (TP)

Correct Answer: (B)

[EN] Actual status is Negative (healthy), while test prediction is Positive (disease detected), making it a False Positive.

[HI] रोगी की वास्तविक स्थिति नेगेटिव (स्वस्थ) है और परीक्षण ने पॉजिटिव परिणाम दिया, इसलिए यह फॉल्स पॉजिटिव (FP) है।

Q6. In fraud detection, a genuinely fraudulent credit card transaction slips through undetected as 'legitimate'. Which error occurred?

(धोखाधड़ी पहचान प्रणाली में एक वास्तविक फर्जी लेनदेन बिना पकड़े 'वैध' मान लिया गया। यह कौन-सी त्रुटि है?)

(A) True Negative (TN)

(B) False Negative (FN)

(C) False Positive (FP)

(D) True Positive (TP)

Correct Answer: (B)

[EN] Actual state is Positive (fraud), predicted state is Negative (legitimate)—a missed detection, i.e., False Negative (FN).

[HI] वास्तविक स्थिति पॉजिटिव (धोखाधड़ी) थी पर मॉडल ने नेगेटिव (वैध) बताया; यह छूटा हुआ मामला फॉल्स नेगेटिव (FN) है।

Q7. Given `y_true = [1, 0, 1, 1, 0, 0, 1, 0]` and `y_pred = [1, 0, 0, 1, 1, 0, 1, 0]`, what are (TP, TN, FP, FN)?

(`y_true = [1, 0, 1, 1, 0, 0, 1, 0]` और `y_pred = [1, 0, 0, 1, 1, 0, 1, 0]` के लिए (TP, TN, FP, FN) मान क्या हैं?)

(A) (3, 3, 1, 1)

(B) (4, 2, 1, 1)

(C) (2, 4, 1, 1)

(D) (3, 2, 2, 1)

Correct Answer: (A)

[EN] Comparing pair-by-pair: indices 0,3,6 give TP=3; indices 1,5,7 give TN=3; index 4 (0->1) gives FP=1; index 2 (1->0) gives FN=1.

[HI] तुलना करने पर: इंडेक्स 0,3,6 पर TP=3; इंडेक्स 1,5,7 पर TN=3; इंडेक्स 4 (0→1) पर FP=1; और इंडेक्स 2 (1→0) पर FN=1 है।

Q8. Where do all correct classifications always appear in any Confusion Matrix?

(किसी भी कन्फ्यूजन मैट्रिक्स में सभी सही भविष्यवाणियाँ सदैव कहाँ स्थित होती हैं?)

(A) Along the anti-diagonal only

(B) Strictly in the first row

(C) Only in the bottom-left corner

(D) Along the main diagonal

Correct Answer: (D)

[EN] Whenever Predicted class equals Actual class (i == j), counts fall on the main diagonal entries M[i, i].

[HI] जहाँ भी वास्तविक और अनुमानित वर्ग समान (i == j) होते हैं, वे मान मुख्य विकर्ण M[i, i] पर स्थित होते हैं।

Q9. In a Confusion Matrix, what does the sum `TP + FN` represent?

(कन्फ्यूजन मैट्रिक्स में योग `TP + FN` क्या दर्शाता है?)

(A) Total number of misclassified instances

(B) Total number of actual Positive instances in the dataset

(C) Total number of predicted Positive instances

(D) Total number of actual Negative instances

Correct Answer: (B)

[EN] Every actual positive sample is either correctly predicted positive (TP) or falsely predicted negative (FN), so TP + FN = Actual Positives (Support).

[HI] प्रत्येक वास्तविक पॉजिटिव सैंपल या तो TP में जाता है या FN में, इसलिए TP + FN डेटासेट में कुल वास्तविक पॉजिटिव (Support) दर्शाता है।

Q10. What does the sum `FP + FN` measure in a binary Confusion Matrix?

(द्विआधारी कन्फ्यूजन मैट्रिक्स में योग `FP + FN` किसे मापता है?)

(A) Total number of correct predictions

(B) Total number of incorrect predictions (classification errors)

(C) Total number of model parameters

(D) Total number of actual negative samples

Correct Answer: (B)

[EN] FP and FN are the two off-diagonal error cells; dividing (FP + FN) by N gives the overall Error Rate.

[HI] FP और FN विकर्ण से बाहर स्थित दोनों त्रुटि खंड हैं; इनका योग कुल गलत भविष्यवाणियों की संख्या बताता है।

Q11. In scikit-learn's Confusion Matrix (rows = actual, cols = predicted), how is False Positives (FPᵢ) computed for class i in a multi-class matrix?

(scikit-learn के बहु-वर्ग कन्फ्यूजन मैट्रिक्स (पंक्ति=वास्तविक, स्तंभ=अनुमानित) में वर्ग i के लिए FPᵢ कैसे निकाला जाता है?)

(A) Only the diagonal value M[i, i]

(B) Sum of all rows and columns combined

(C) Sum of column i minus M[i, i]

(D) Sum of row i minus M[i, i]

Correct Answer: (C)

[EN] Column i contains every instance predicted as class i; subtracting true hits M[i, i] leaves false positives FPᵢ.

[HI] स्तंभ i में वर्ग i के रूप में अनुमानित सभी सैंपल होते हैं; इसमें से सही मान M[i, i] घटाने पर FPᵢ प्राप्त होता है।

Q12. If a classifier lowers its probability decision threshold from 0.5 to 0.2 to catch more positives, what usually happens to FP and FN?

(यदि कोई क्लासिफायर अधिक पॉजिटिव पकड़ने के लिए निर्णय थ्रेशोल्ड 0.5 से घटाकर 0.2 कर दे, तो FP और FN पर क्या प्रभाव पड़ेगा?)

(A) False Negatives increase while False Positives decrease

(B) Both FP and FN remain completely unchanged

(C) False Positives (FP) increase while False Negatives (FN) decrease

(D) Both FP and FN increase simultaneously

Correct Answer: (C)

[EN] Lowering the threshold classifies more borderline samples as Positive, catching missed positives (FN drops) at the expense of extra false alarms (FP rises).

[HI] थ्रेशोल्ड घटाने पर अधिक सैंपल पॉजिटिव घोषित होंगे, जिससे छूटे मामले (FN) घटेंगे लेकिन झूठे अलार्म (FP) बढ़ेंगे।

Q13. For a dataset with 100 total samples where TP = 45, TN = 40, and FP = 5, what must FN equal?

(100 सैंपल वाले डेटासेट में यदि TP = 45, TN = 40 और FP = 5 है, तो FN का मान क्या होगा?)

(A) 5

(B) 20

(C) 10

(D) 15

Correct Answer: (C)

[EN] Since TP + TN + FP + FN = Total = 100, FN = 100 - (45 + 40 + 5) = 10.

[HI] चूँकि TP + TN + FP + FN = 100 होता है, इसलिए FN = 100 - (45 + 40 + 5) = 10 होगा।

Q14. Which error is generally considered costlier in an automated spam filter that deletes flagged emails without recovery?

(एक स्वचालित स्पैम फिल्टर जो चिह्नित ईमेल को स्थायी रूप से हटा देता है, उसमें कौन-सी त्रुटि अधिक नुकसानदेह मानी जाती है?)

(A) False Positive (FP) — deleting legitimate important emails

(B) True Positive (TP) — deleting actual spam

(C) Zero variance error

(D) True Negative (TN) — keeping legitimate mail in inbox

Correct Answer: (A)

[EN] A False Positive deletes a genuine message (such as a job offer or bank OTP), whereas a False Negative merely leaves one spam email in the inbox.

[HI] फॉल्स पॉजिटिव (FP) से वास्तविक जरूरी ईमेल (जैसे जॉब ऑफर या बैंक अलर्ट) डिलीट हो सकता है, जो स्पैम इनबॉक्स में आने से कहीं अधिक गंभीर है।

Q15. Can a Confusion Matrix be used directly to evaluate continuous Regression predictions like house prices?

(क्या कन्फ्यूजन मैट्रिक्स का उपयोग सीधे घर की कीमत जैसी निरंतर रिग्रेशन भविष्यवाणियों के मूल्यांकन में किया जा सकता है?)

(A) Only when house prices are negative

(B) No; it applies only to discrete Classification problems

(C) Yes; whenever R² exceeds 0.8

(D) Yes; it is the primary metric for Linear Regression

Correct Answer: (B)

[EN] A confusion matrix requires discrete categorical classes; regression uses continuous error metrics such as MAE, MSE, RMSE, and R².

[HI] नहीं; कन्फ्यूजन मैट्रिक्स केवल वर्गीकरण (classification) के लिए है, जबकि रिग्रेशन के लिए MAE, MSE, RMSE या R² का उपयोग होता है।

Q16. Which of the following statements is NOT true about a Confusion Matrix?

(कन्फ्यूजन मैट्रिक्स के विषय में निम्नलिखित में से कौन-सा कथन सत्य नहीं है?)

(A) The sum of all matrix cells equals total evaluated samples

(B) Off-diagonal elements represent classification errors

(C) A False Negative means an actually negative sample was predicted positive

(D) Type I error corresponds to False Positives

Correct Answer: (C)

[EN] Predicting an actually negative sample as positive is a False Positive, NOT a False Negative.

[HI] वास्तविक नेगेटिव सैंपल को पॉजिटिव बताना फॉल्स पॉजिटिव (FP) कहलाता है, न कि फॉल्स नेगेटिव (FN)।

Q17. Within Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions), which matrix cell directly maps to: "Actual Positive, Predicted Positive"?

(Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions) में कौन सा Matrix Cell सीधे "Actual Positive, Predicted Positive" से संबंधित है?)

(A) False Negative (FN)

(B) True Positive (TP)

(C) False Positive (FP)

(D) True Negative (TN)

Correct Answer: (B)

[EN] In Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions), 'True Positive (TP)' handles 'Actual Positive, Predicted Positive' (Correct positive hit on diagonal).

[HI] Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions) में 'True Positive (TP)' का कार्य/विवरण 'Actual Positive, Predicted Positive' (Correct positive hit on diagonal) है।

Q18. Which option accurately describes 'True Negative (TN)' in Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions)?

(Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions) के संदर्भ में 'True Negative (TN)' की सही विशेषता कौन सी है?)

(A) Actual Negative, Predicted Positive

(B) Actual Positive, Predicted Positive

(C) Actual Positive, Predicted Negative

(D) Actual Negative, Predicted Negative

Correct Answer: (D)

[EN] 'True Negative (TN)' provides 'Actual Negative, Predicted Negative' — key point: Correct negative rejection on diagonal.

[HI] 'True Negative (TN)' का मुख्य विवरण 'Actual Negative, Predicted Negative' है (Correct negative rejection on diagonal)।

Q19. In Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions), identify the correct parameter for the specification: "Actual Negative, Predicted Positive".

(Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions) में "Actual Negative, Predicted Positive" विवरण किस विकल्प के लिए सही है?)

(A) True Negative (TN)

(B) False Negative (FN)

(C) True Positive (TP)

(D) False Positive (FP)

Correct Answer: (D)

[EN] 'False Positive (FP)' corresponds to 'Actual Negative, Predicted Positive' (Type I Error (Alpha / False Alarm)).

[HI] 'False Positive (FP)' का संबंध 'Actual Negative, Predicted Positive' (Type I Error (Alpha / False Alarm)) से है।

Q20. Considering Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions), what key behavior defines 'False Negative (FN)'?

(Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions) में 'False Negative (FN)' की मुख्य भूमिका या मान क्या है?)

(A) Actual Positive, Predicted Positive

(B) Actual Positive, Predicted Negative

(C) Actual Negative, Predicted Positive

(D) Actual Negative, Predicted Negative

Correct Answer: (B)

[EN] 'False Negative (FN)' represents 'Actual Positive, Predicted Negative' (Type II Error (Beta / Missed Detection)).

[HI] 'False Negative (FN)' का अर्थ/मान 'Actual Positive, Predicted Negative' है (Type II Error (Beta / Missed Detection))।

Model Evaluation: Confusion Matrix (TP, TN, FP, FN Definitions) — Exam FAQs

Q1: Is the Confusion Matrix itself a single performance metric?

क्या कन्फ्यूजन मैट्रिक्स स्वयं एक एकल संख्यात्मक मानक (metric) है?

[EN] No, it is a tabular summary of raw outcome counts (TP, TN, FP, FN) from which single scalar metrics like Accuracy, Precision, Recall, and F1-score are derived.

[HI] नहीं, यह TP, TN, FP, FN की गणनाओं वाली एक सारणी है, जिससे Accuracy, Precision, Recall और F1-स्कोर जैसे एकल मानक निकाले जाते हैं।

Q2: Why do textbooks sometimes show Predicted on rows and Actual on columns?

कुछ पुस्तकों में पंक्तियों पर अनुमानित और स्तंभों पर वास्तविक मान क्यों दिखाए जाते हैं?

[EN] Both orientations are mathematically valid transposes of each other as long as axes are clearly labeled; however, scikit-learn strictly places Actual on rows and Predicted on columns.

[HI] यदि अक्ष स्पष्ट रूप से लेबल किए गए हों तो दोनों विन्यास मान्य हैं (एक-दूसरे का ट्रांस्पोज़); हालांकि scikit-learn मानक में पंक्तियाँ वास्तविक और स्तंभ अनुमानित होते हैं।

Q3: Which metric is derived purely from TN and FP without using TP or FN?

कौन-सा मानक बिना TP या FN के केवल TN और FP से निकाला जाता है?

[EN] Specificity (True Negative Rate) = TN / (TN + FP), and False Positive Rate (FPR) = FP / (TN + FP) = 1 - Specificity.

[HI] स्पेसिफिसिटी (True Negative Rate) = TN / (TN + FP) और फॉल्स पॉजिटिव रेट (FPR) = FP / (TN + FP) केवल TN और FP पर आधारित होते हैं।

Related Posts

  • Loading related posts...

Post a Comment

Search Topic Notes & 20 MCQs (Hindi / English)