PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Performance Metrics: Accuracy, Precision, Recall (Sensitivity) (परफॉरमेंस मानक: एक्यूरेसी, प्रिसिजन और रिकॉल के आधिकारिक सूत्र) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: Accuracy, Precision, and Recall convert raw Confusion Matrix counts into actionable percentages assessing overall correctness, positive prediction trustworthiness, and positive coverage. While Accuracy can mislead on imbalanced datasets, Precision guards against False Positives and Recall (Sensitivity) guards against dangerous False Negatives.
अध्याय सार: एक्यूरेसी (Accuracy), प्रिसिजन (Precision) और रिकॉल (Recall / Sensitivity) कन्फ्यूजन मैट्रिक्स के आँकड़ों को मॉडल की समग्र शुद्धता, सकारात्मक भविष्यवाणी की विश्वसनीयता और वास्तविक पॉजिटिव पहचान दर में बदलते हैं। असंतुलित डेटा पर जहाँ एक्यूरेसी भ्रामक हो सकती है, वहीं प्रिसिजन फॉल्स पॉजिटिव को और रिकॉल खतरनाक फॉल्स नेगेटिव को नियंत्रित करता है।
Performance Metrics: Accuracy, Precision, Recall (Sensitivity): Detailed Notes & Architecture (परफॉरमेंस मानक: एक्यूरेसी, प्रिसिजन और रिकॉल के आधिकारिक सूत्र)
1. Accuracy Formula and the Accuracy Paradox on Imbalanced Data (एक्यूरेसी का सूत्र और असंतुलित डेटा पर एक्यूरेसी पैराडॉक्स)
[EN] Accuracy equals the fraction of all predictions that are correct: Accuracy = (TP + TN) / (TP + TN + FP + FN). When class distributions are roughly 50:50, Accuracy gives a reliable snapshot; however, on skewed datasets it triggers the Accuracy Paradox. For instance, if 99% of transactions are legitimate and 1% are fraud, a trivial classifier predicting 'legitimate' every time achieves 99% Accuracy while recording 0% Recall on actual frauds.
[HI] एक्यूरेसी कुल सही भविष्यवाणियों का अनुपात है: Accuracy = (TP + TN) / (TP + TN + FP + FN)। संतुलित डेटा (50:50) पर यह उपयोगी है, लेकिन असंतुलित डेटासेट पर यह 'एक्यूरेसी पैराडॉक्स' पैदा करती है। उदाहरण के लिए यदि 99% लेनदेन वैध और 1% फर्जी हैं, तो हर बार 'वैध' बताने वाला बेकार मॉडल भी 99% एक्यूरेसी पा लेगा जबकि फर्जी पकड़ने की उसकी क्षमता 0% होगी।
2. Precision (Positive Predictive Value): Controlling False Alarms (प्रिसिजन (PPV): झूठे अलार्म (False Positives) पर नियंत्रण)
[EN] Precision, also termed Positive Predictive Value (PPV), answers: 'Of all samples predicted Positive, how many were truly Positive?' via Precision = TP / (TP + FP). Notice that Precision shares no dependency on FN or TN; it strictly penalizes False Positives (Type I Errors). Maximize Precision whenever flagging a negative case mistakenly carries heavy cost—such as spam filters, legal conviction evidence, or children's content recommendations.
[HI] प्रिसिजन, जिसे पॉजिटिव प्रेडिक्टिव वैल्यू (PPV) भी कहते हैं, इस प्रश्न का उत्तर देता है: 'जितने मामले पॉजिटिव बताए गए, उनमें से वास्तव में कितने सही थे?' इसका सूत्र Precision = TP / (TP + FP) है। यह केवल फॉल्स पॉजिटिव (टाइप-1 त्रुटि) को दंडित करता है। प्रिसिजन को तब प्राथमिकता दी जाती है जब गलत अलार्म की कीमत अधिक हो—जैसे स्पैम ईमेल ब्लॉक करना, न्यायिक साक्ष्य प्रणाली या बच्चों के लिए सुरक्षित वीडियो अनुशंसा।
3. Recall (Sensitivity / TPR): Eliminating Missed Detections (रिकॉल (सेंसिटिविटी / TPR): छूटे हुए मामलों (FN) की रोकथाम)
[EN] Recall, equivalently known as Sensitivity or True Positive Rate (TPR), answers: 'Of all actually Positive samples, how many did the model capture?' via Recall = TP / (TP + FN). Recall penalizes False Negatives (Type II Errors) and reaches 1.0 whenever FN = 0. Maximize Recall in high-stakes screening tasks—such as cancer diagnostics, epidemic detection, intrusion prevention, or loan default identification—where missing one true case is disastrous.
[HI] रिकॉल, जिसे सेंसिटिविटी या ट्रू पॉजिटिव रेट (TPR) भी कहते हैं, बताता है कि वास्तविक पॉजिटिव मामलों में से मॉडल ने कितने प्रतिशत पहचाने: Recall = TP / (TP + FN)। यह फॉल्स नेगेटिव (टाइप-2 त्रुटि) पर ध्यान केंद्रित करता है और FN = 0 होने पर 1.0 (100%) हो जाता है। कैंसर जाँच, साइबर घुसपैठ पहचान और आपदा चेतावनी जैसी प्रणालियों में रिकॉल को प्राथमिकता दी जाती है जहाँ एक भी वास्तविक मामला छूटना घातक हो सकता है।
4. Precision-Recall Tradeoff and Specificity (TNR) (प्रिसिजन-रिकॉल ट्रेडऑफ और स्पेसिफिसिटी (TNR))
[EN] Precision and Recall typically move in opposite directions as you adjust a probabilistic model's decision threshold. Raising the threshold makes positive calls more conservative, increasing Precision while lowering Recall; lowering the threshold catches more positives, boosting Recall while hurting Precision. Complementing Recall (TPR) for the negative class is Specificity (True Negative Rate) = TN / (TN + FP), with False Positive Rate FPR = 1 - Specificity.
[HI] किसी संभाव्य मॉडल की निर्णय सीमा (threshold) बदलने पर प्रिसिजन और रिकॉल सामान्यतः विपरीत दिशा में चलते हैं। थ्रेशोल्ड बढ़ाने से प्रिसिजन बढ़ता है पर रिकॉल घटता है, जबकि थ्रेशोल्ड घटाने से रिकॉल बढ़ता है पर प्रिसिजन गिरता है। नेगेटिव वर्ग की पहचान मापने के लिए स्पेसिफिसिटी (TNR) = TN / (TN + FP) का उपयोग होता है, तथा फॉल्स पॉजिटिव रेट FPR = 1 - Specificity होता है।
Syntax, Formula & Technical Example (Performance Metrics: Accuracy, Precision, Recall (Sensitivity))
tp, fp, fn, tn = 40, 10, 5, 45
accuracy = (tp + tn) / (tp + tn + fp + fn)
precision = tp / (tp + fp)
recall = tp / (tp + fn)
specificity = tn / (tn + fp)
print(f"Acc={accuracy:.2f}, Prec={precision:.2f}, Rec={recall:.4f}, Spec={specificity:.4f}")
Performance Metrics: Accuracy, Precision, Recall (Sensitivity) Quick Reference & Comparison Table
| Metric Name | Official Formula | Primary Optimization Goal |
|---|---|---|
| Accuracy | (TP + TN) / (TP + TN + FP + FN) | Measures overall correctness on balanced classes |
| Precision (PPV) | TP / (TP + FP) | Minimizes False Positives (Type I Errors) |
| Recall (Sensitivity / TPR) | TP / (TP + FN) | Minimizes False Negatives (Type II Errors) |
| Specificity (TNR) | TN / (TN + FP) | Measures true negative recognition accuracy |
Performance Metrics: Accuracy, Precision, Recall (Sensitivity) Top 20 Bilingual MCQs with Answers
Q1. What is the official mathematical formula for Classification Accuracy?
(वर्गीकरण एक्यूरेसी (Accuracy) का आधिकारिक गणितीय सूत्र क्या है?)
(A) (FP + FN) / (TP + TN)
(B) (TP + TN) / (TP + TN + FP + FN)
(C) TP / (TP + FP)
(D) TP / (TP + FN)
Correct Answer: (B)
[EN] Accuracy divides the sum of correct predictions (TP + TN) by the total number of evaluated samples (TP + TN + FP + FN).
[HI] एक्यूरेसी कुल सही भविष्यवाणियों (TP + TN) को कुल सैंपल संख्या (TP + TN + FP + FN) से विभाजित करके निकाली जाती है।
Q2. Which metric is defined by the formula TP / (TP + FP)?
(सूत्र TP / (TP + FP) द्वारा कौन-सा मूल्यांकन मानक परिभाषित होता है?)
(A) Recall (Sensitivity)
(B) Precision (Positive Predictive Value)
(C) Specificity (TNR)
(D) Accuracy
Correct Answer: (B)
[EN] Precision measures the purity of predicted positives: true positives divided by all predicted positives (TP + FP).
[HI] प्रिसिजन (PPV) मॉडल द्वारा की गई कुल पॉजिटिव भविष्यवाणियों (TP + FP) में से वास्तव में सही (TP) का अनुपात है।
Q3. Which metric is also widely called Sensitivity or True Positive Rate (TPR)?
(निम्नलिखित में से किस मानक को सेंसिटिविटी (Sensitivity) या ट्रू पॉजिटिव रेट (TPR) भी कहा जाता है?)
(A) Specificity
(B) Recall
(C) False Discovery Rate
(D) Precision
Correct Answer: (B)
[EN] Recall = TP / (TP + FN) measures the fraction of actual positive cases successfully recalled, known in medicine as Sensitivity.
[HI] रिकॉल = TP / (TP + FN) वास्तविक पॉजिटिव मामलों को पहचानने की दर मापता है, जिसे चिकित्सा क्षेत्र में सेंसिटिविटी या TPR भी कहते हैं।
Q4. Given TP = 40, FP = 10, FN = 5, TN = 45, what is the Precision of the model?
(यदि TP = 40, FP = 10, FN = 5 और TN = 45 हो, तो मॉडल का प्रिसिजन कितना होगा?)
(A) 0.89 (88.9%)
(B) 0.85 (85%)
(C) 0.75 (75%)
(D) 0.80 (80%)
Correct Answer: (D)
[EN] Precision = TP / (TP + FP) = 40 / (40 + 10) = 40 / 50 = 0.80.
[HI] प्रिसिजन = TP / (TP + FP) = 40 / (40 + 10) = 40 / 50 = 0.80 (80%) होगा।
Q5. For the same counts (TP = 40, FP = 10, FN = 5, TN = 45), what is the Accuracy?
(उन्हीं आँकड़ों (TP = 40, FP = 10, FN = 5, TN = 45) के लिए मॉडल की एक्यूरेसी क्या होगी?)
(A) 0.90 (90%)
(B) 0.85 (85%)
(C) 0.80 (80%)
(D) 0.88 (88%)
Correct Answer: (B)
[EN] Accuracy = (40 + 45) / (40 + 10 + 5 + 45) = 85 / 100 = 0.85.
[HI] एक्यूरेसी = (40 + 45) / (40 + 10 + 5 + 45) = 85 / 100 = 0.85 (85%) होगी।
Q6. Suppose a dataset has 980 negative samples and 20 positive samples. A dummy classifier always predicts 'Negative'. What are its Accuracy and Recall?
(एक डेटासेट में 980 नेगेटिव और 20 पॉजिटिव सैंपल हैं। एक मॉडल हर बार 'नेगेटिव' अनुमान लगाता है। उसकी एक्यूरेसी और रिकॉल क्या होंगे?)
(A) Accuracy = 50%, Recall = 50%
(B) Accuracy = 2%, Recall = 100%
(C) Accuracy = 98%, Recall = 98%
(D) Accuracy = 98%, Recall = 0%
Correct Answer: (D)
[EN] It gets all 980 negatives right (980/1000 = 98% Accuracy) while catching 0 of 20 positives (TP = 0, so Recall = 0%).
[HI] यह सभी 980 नेगेटिव सही बताकर 98% एक्यूरेसी पा लेगा, लेकिन 20 में से 0 पॉजिटिव पकड़ने से रिकॉल 0% रहेगा (Accuracy Paradox)।
Q7. If a model achieves Recall = 1.00 (100%), what must be true about its Confusion Matrix counts?
(यदि कोई मॉडल रिकॉल = 1.00 (100%) प्राप्त करता है, तो उसके कन्फ्यूजन मैट्रिक्स के बारे में क्या सत्य होना चाहिए?)
(A) True Negatives (TN) = 0
(B) Accuracy = 1.00
(C) False Negatives (FN) = 0
(D) False Positives (FP) = 0
Correct Answer: (C)
[EN] Recall = TP / (TP + FN) equals 1.0 if and only if FN = 0 (assuming TP > 0); FP can still be non-zero.
[HI] रिकॉल = TP / (TP + FN) केवल तभी 1.0 होता है जब FN = 0 हो (कोई भी वास्तविक पॉजिटिव छूटा न हो), भले ही FP मौजूद हो।
Q8. If a model records Precision = 1.00 (100%), what must be true (assuming TP > 0)?
(यदि कोई मॉडल प्रिसिजन = 1.00 (100%) प्राप्त करता है (जहाँ TP > 0 है), तो क्या सत्य होना अनिवार्य है?)
(A) Specificity = 0.00
(B) False Negatives (FN) = 0
(C) False Positives (FP) = 0
(D) Recall = 1.00
Correct Answer: (C)
[EN] Precision = TP / (TP + FP) equals 1.0 only when FP = 0, meaning zero false alarms were triggered.
[HI] प्रिसिजन = TP / (TP + FP) तभी 1.0 होगा जब FP = 0 हो, अर्थात् कोई भी झूठा पॉजिटिव अलार्म न बजा हो।
Q9. In a contagious fatal-disease screening test, which metric should take highest priority?
(एक संक्रामक और घातक रोग की जाँच प्रणाली में किस मानक को सर्वोच्च प्राथमिकता दी जानी चाहिए?)
(A) Recall (Sensitivity)
(B) True Negative count alone
(C) Raw Accuracy only
(D) Precision
Correct Answer: (A)
[EN] Missing a sick patient (FN) risks fatality and epidemic spread, so maximizing Recall (minimizing FN) is paramount.
[HI] रोगी का छूटना (FN) जानलेवा और संक्रमण फैलाने वाला हो सकता है, इसलिए FN घटाने हेतु रिकॉल (सेंसिटिविटी) को प्राथमिकता दी जाती है।
Q10. In a high-precision email spam detector where losing legitimate work emails is unacceptable, which metric is prioritized?
(एक स्पैम डिटेक्टर जहाँ काम से जुड़े असली ईमेल खोना बिल्कुल अस्वीकार्य है, किस मानक को प्राथमिकता दी जाएगी?)
(A) False Positive Rate
(B) Precision
(C) Error Rate
(D) Recall
Correct Answer: (B)
[EN] Prioritizing Precision ensures that emails labeled 'spam' truly are spam, keeping False Positives near zero.
[HI] प्रिसिजन को प्राथमिकता देने से यह सुनिश्चित होता है कि जिन्हें स्पैम कहा गया वे वास्तव में स्पैम ही हैं (FP न्यूनतम रहे)।
Q11. What is the formula for Specificity (True Negative Rate)?
(स्पेसिफिसिटी (True Negative Rate) का सही सूत्र क्या है?)
(A) FP / (TN + FP)
(B) TN / (TN + FP)
(C) TN / (TN + FN)
(D) TP / (TP + TN)
Correct Answer: (B)
[EN] Specificity measures the proportion of actual negative cases correctly identified as negative: TN / (TN + FP).
[HI] स्पेसिफिसिटी वास्तविक नेगेटिव मामलों में से सही पहचाने गए नेगेटिव का अनुपात है: TN / (TN + FP)।
Q12. How is False Positive Rate (FPR) related to Specificity?
(फॉल्स पॉजिटिव रेट (FPR) और स्पेसिफिसिटी के बीच क्या गणितीय संबंध है?)
(A) FPR = 1 - Recall
(B) FPR = Specificity × Precision
(C) FPR = Specificity + Accuracy
(D) FPR = 1 - Specificity
Correct Answer: (D)
[EN] Since FPR = FP / (TN + FP) and Specificity = TN / (TN + FP), their sum equals (FP + TN)/(TN + FP) = 1.
[HI] चूँकि FPR = FP / (TN + FP) और स्पेसिफिसिटी = TN / (TN + FP) है, इसलिए दोनों का योग 1 होता है, अर्थात् FPR = 1 - Specificity।
Q13. If a classifier makes 50 positive predictions out of which 30 are correct, and there are 60 total actual positives in the test set, what are Precision and Recall?
(यदि एक मॉडल 50 पॉजिटिव भविष्यवाणियाँ करता है जिनमें 30 सही हैं, तथा टेस्ट सेट में कुल 60 वास्तविक पॉजिटिव हैं, तो प्रिसिजन और रिकॉल क्या होंगे?)
(A) Precision = 0.60, Recall = 0.50
(B) Precision = 0.50, Recall = 0.60
(C) Precision = 0.60, Recall = 0.83
(D) Precision = 0.80, Recall = 0.50
Correct Answer: (A)
[EN] TP = 30, TP+FP = 50 -> Precision = 30/50 = 0.60; TP+FN = 60 -> Recall = 30/60 = 0.50.
[HI] यहाँ TP = 30, कुल अनुमानित पॉजिटिव = 50 (Precision = 30/50 = 0.60) और कुल वास्तविक पॉजिटिव = 60 (Recall = 30/60 = 0.50) होगा।
Q14. Which trivial strategy achieves Recall = 1.0 on any dataset without actually learning patterns?
(बिना कुछ सीखे किसी भी डेटासेट पर 1.0 रिकॉल पाने की कौन-सी निरर्थक चाल है?)
(A) Predicting every single sample as Positive
(B) Flipping labels randomly with p = 0.5
(C) Predicting every single sample as Negative
(D) Dropping all negative rows
Correct Answer: (A)
[EN] Predicting Positive for all samples guarantees FN = 0 (making Recall = 1.0), though Precision collapses to the minority prevalence.
[HI] सभी सैंपल को पॉजिटिव घोषित करने से FN = 0 और रिकॉल = 1.0 हो जाता है, भले ही प्रिसिजन बहुत गिर जाए।
Q15. In scikit-learn, if `y_true = [1, 1, 0, 0]` and `y_pred = [1, 0, 0, 0]`, what does `recall_score(y_true, y_pred)` return?
(scikit-learn में `y_true = [1, 1, 0, 0]` और `y_pred = [1, 0, 0, 0]` पर `recall_score(y_true, y_pred)` क्या मान लौटाएगा?)
(A) 0.25
(B) 0.5
(C) 1.0
(D) 0.75
Correct Answer: (B)
[EN] Here TP = 1 and FN = 1 (one actual 1 predicted as 0), so Recall = 1 / (1 + 1) = 0.5.
[HI] यहाँ TP = 1 और FN = 1 है (एक वास्तविक 1 को 0 बताया गया), अतः रिकॉल = 1 / (1 + 1) = 0.5 होगा।
Q16. Which of the following statements is NOT true regarding Accuracy, Precision, and Recall?
(एक्यूरेसी, प्रिसिजन और रिकॉल के संदर्भ में निम्नलिखित में से कौन-सा कथन सत्य नहीं है?)
(A) Sensitivity is mathematically identical to Recall
(B) Raising the decision threshold generally raises Precision while lowering Recall
(C) Accuracy can be misleading when classes are severely imbalanced
(D) Precision and Recall depend heavily on True Negatives (TN) in their denominators
Correct Answer: (D)
[EN] Neither Precision = TP/(TP+FP) nor Recall = TP/(TP+FN) uses True Negatives (TN) anywhere in its formula.
[HI] प्रिसिजन और रिकॉल दोनों के सूत्रों में कहीं भी ट्रू नेगेटिव (TN) का उपयोग नहीं होता; TN केवल एक्यूरेसी और स्पेसिफिसिटी में आता है।
Q17. Within Performance Metrics: Accuracy, Precision, Recall (Sensitivity), which metric name directly maps to: "(TP + TN) / (TP + TN + FP + FN)"?
(Performance Metrics: Accuracy, Precision, Recall (Sensitivity) में कौन सा Metric Name सीधे "(TP + TN) / (TP + TN + FP + FN)" से संबंधित है?)
(A) Accuracy
(B) Recall (Sensitivity / TPR)
(C) Specificity (TNR)
(D) Precision (PPV)
Correct Answer: (A)
[EN] In Performance Metrics: Accuracy, Precision, Recall (Sensitivity), 'Accuracy' handles '(TP + TN) / (TP + TN + FP + FN)' (Measures overall correctness on balanced classes).
[HI] Performance Metrics: Accuracy, Precision, Recall (Sensitivity) में 'Accuracy' का कार्य/विवरण '(TP + TN) / (TP + TN + FP + FN)' (Measures overall correctness on balanced classes) है।
Q18. Which option accurately describes 'Precision (PPV)' in Performance Metrics: Accuracy, Precision, Recall (Sensitivity)?
(Performance Metrics: Accuracy, Precision, Recall (Sensitivity) के संदर्भ में 'Precision (PPV)' की सही विशेषता कौन सी है?)
(A) (TP + TN) / (TP + TN + FP + FN)
(B) TP / (TP + FP)
(C) TN / (TN + FP)
(D) TP / (TP + FN)
Correct Answer: (B)
[EN] 'Precision (PPV)' provides 'TP / (TP + FP)' — key point: Minimizes False Positives (Type I Errors).
[HI] 'Precision (PPV)' का मुख्य विवरण 'TP / (TP + FP)' है (Minimizes False Positives (Type I Errors))।
Q19. In Performance Metrics: Accuracy, Precision, Recall (Sensitivity), identify the correct parameter for the specification: "TP / (TP + FN)".
(Performance Metrics: Accuracy, Precision, Recall (Sensitivity) में "TP / (TP + FN)" विवरण किस विकल्प के लिए सही है?)
(A) Recall (Sensitivity / TPR)
(B) Accuracy
(C) Precision (PPV)
(D) Specificity (TNR)
Correct Answer: (A)
[EN] 'Recall (Sensitivity / TPR)' corresponds to 'TP / (TP + FN)' (Minimizes False Negatives (Type II Errors)).
[HI] 'Recall (Sensitivity / TPR)' का संबंध 'TP / (TP + FN)' (Minimizes False Negatives (Type II Errors)) से है।
Q20. Considering Performance Metrics: Accuracy, Precision, Recall (Sensitivity), what key behavior defines 'Specificity (TNR)'?
(Performance Metrics: Accuracy, Precision, Recall (Sensitivity) में 'Specificity (TNR)' की मुख्य भूमिका या मान क्या है?)
(A) TP / (TP + FP)
(B) (TP + TN) / (TP + TN + FP + FN)
(C) TN / (TN + FP)
(D) TP / (TP + FN)
Correct Answer: (C)
[EN] 'Specificity (TNR)' represents 'TN / (TN + FP)' (Measures true negative recognition accuracy).
[HI] 'Specificity (TNR)' का अर्थ/मान 'TN / (TN + FP)' है (Measures true negative recognition accuracy)।
Performance Metrics: Accuracy, Precision, Recall (Sensitivity) — Exam FAQs
Q1: Can a model have high Accuracy yet terrible Precision or Recall?
क्या किसी मॉडल की एक्यूरेसी बहुत अधिक होने के बावजूद प्रिसिजन या रिकॉल बहुत खराब हो सकता है?
[EN] Yes—on severely imbalanced data (e.g., 99% negative, 1% positive), predicting only the majority negative class gives 99% Accuracy with 0% Recall.
[HI] हाँ—अत्यधिक असंतुलित डेटा (जैसे 99% नेगेटिव, 1% पॉजिटिव) पर केवल बहुमत वर्ग बताने से 99% एक्यूरेसी मिलती है जबकि रिकॉल 0% रह जाता है।
Q2: Which scikit-learn function prints Precision, Recall, and F1-Score for every class in one call?
scikit-learn में कौन-सा फ़ंक्शन एक ही बार में सभी वर्गों के लिए प्रिसिजन, रिकॉल और F1-स्कोर प्रिंट करता है?
[EN] `sklearn.metrics.classification_report(y_true, y_pred)` generates a complete table showing per-class Precision, Recall, F1, support, and macro/weighted averages.
[HI] `sklearn.metrics.classification_report(y_true, y_pred)` एक ही कॉल में प्रत्येक वर्ग का प्रिसिजन, रिकॉल, F1-स्कोर और सपोर्ट दर्शाने वाली पूरी तालिका देता है।
Q3: How do ROC curves relate to Recall and Specificity?
ROC वक्र (Receiver Operating Characteristic) का रिकॉल और स्पेसिफिसिटी से क्या संबंध है?
[EN] An ROC curve plots Recall (True Positive Rate) on the Y-axis against 1 - Specificity (False Positive Rate) on the X-axis across all classification thresholds.
[HI] ROC वक्र सभी थ्रेशोल्ड पर Y-अक्ष पर रिकॉल (TPR) और X-अक्ष पर 1 - स्पेसिफिसिटी (FPR) को प्लॉट करता है।
Post a Comment
Post a Comment