<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by SyedFarhanQadri on Medium]]></title>
        <description><![CDATA[Stories by SyedFarhanQadri on Medium]]></description>
        <link>https://medium.com/@farhanqadri999?source=rss-b41321266d59------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bi1TRMgWMwcdq4UT</url>
            <title>Stories by SyedFarhanQadri on Medium</title>
            <link>https://medium.com/@farhanqadri999?source=rss-b41321266d59------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:53:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@farhanqadri999/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Confusion Matrix]]></title>
            <link>https://medium.com/@farhanqadri999/confusion-matrix-c6feacd70416?source=rss-b41321266d59------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6feacd70416</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[confusion-matrix]]></category>
            <category><![CDATA[predictions]]></category>
            <dc:creator><![CDATA[SyedFarhanQadri]]></dc:creator>
            <pubDate>Thu, 18 Dec 2025 16:25:42 GMT</pubDate>
            <atom:updated>2025-12-18T16:26:57.900Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is a Confusion Matrix?</h3><p>A confusion matrix is a simple table used in machine learning to understand how well a classification model is working. It shows how many predictions the model got right and how many it got wrong by comparing predicted results with actual results. This helps us clearly see the strengths and weaknesses of the model.</p><p><strong><em>The confusion matrix is built using four basic outcomes:</em></strong></p><p><strong>True Positive (TP):</strong><br> When the model correctly predicts something as positive, and it is actually positive.<br> Example: A medical test correctly says a patient has cancer when the patient really has it.</p><p><strong>True Negative (TN):</strong><br> When the model correctly predicts something as negative, and it is actually negative.<br> Example: The model correctly says a healthy person does not have cancer.</p><p><strong>False Positive (FP):</strong><br> When the model predicts positive, but the actual result is negative.<br> Example: The model says a healthy person has cancer. This shows the model is giving unnecessary warnings.</p><p><strong>False Negative (FN):</strong><br> When the model predicts negative, but the actual result is positive.<br> Example: The model fails to detect cancer in a patient who actually has it. This is dangerous in sensitive applications like healthcare.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*-12fukCQili5k712ormJbw.jpeg" /></figure><p><strong><em>Using these four values, we calculate important performance measures:</em></strong></p><p><strong>Accuracy:</strong><br> Shows how many predictions were correct overall. It is useful, but not always reliable when one class is much larger than the other.</p><p><strong>Precision:</strong><br> Tells us how many predicted positives were actually correct. It is important when false alarms are costly.</p><p><strong>Recall (Sensitivity):</strong><br> Shows how well the model finds actual positive cases. It is important when missing a positive case is risky.</p><p><strong>Specificity:</strong><br> Shows how well the model correctly identifies negative cases.</p><p><strong>F1-Score:</strong><br> Combines precision and recall into one value, giving a balanced view of the model’s performance when both false positives and false negatives matter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6feacd70416" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>