<?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 Badhon on Medium]]></title>
        <description><![CDATA[Stories by Badhon on Medium]]></description>
        <link>https://medium.com/@badhon1512?source=rss-306e6d96cd3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iMxwVjqbr2a007x4DiM5hw.png</url>
            <title>Stories by Badhon on Medium</title>
            <link>https://medium.com/@badhon1512?source=rss-306e6d96cd3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:47:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@badhon1512/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[Overfitting vs. Underfitting: A Real-Life Analogy]]></title>
            <link>https://medium.com/@badhon1512/overfitting-vs-underfitting-a-real-life-analogy-dc3bf770a017?source=rss-306e6d96cd3------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc3bf770a017</guid>
            <dc:creator><![CDATA[Badhon]]></dc:creator>
            <pubDate>Tue, 09 Jul 2024 18:58:16 GMT</pubDate>
            <atom:updated>2024-07-10T00:01:11.319Z</atom:updated>
            <content:encoded><![CDATA[<p>In machine learning, one of the key challenges is ensuring that a model can generalize well to new, unseen data rather than just performing well on the data it was trained on. Despite having several years of experience in Machine Learning/Deep Learning, we sometimes still struggle to determine whether a trained model can generalize well or not. One common mistake for beginners is not focusing enough on model evaluation. Only focusing on training and testing a model on separate datasets might provide good accuracy that seems satisfactory. However, the model might not perform well on unseen data.</p><p>The primary goal of building a model is to ensure it performs well on new data, similar to what it might encounter in a real application. To achieve this goal, it is significant to understand the model’s insights properly. It is important to diagnose the model in depth and ensure it is neither overfitted nor underfitted. It is always preferred to make three different splits of the dataset into training, validation (or dev), and test sets. The model’s performance must be evaluated on the validation dataset, which is used to tune the model’s hyperparameters and make decisions about model improvements. On the contrary, the test set should be kept aside and only used during the final testing of the model to understand its performance on unseen data.</p><p>Let’s dive into model overfitting and underfitting with a real-life example to understand the concept clearly.</p><p>One of the fundamental skills for computer science students is programming. Most students want to be <strong>good at programming</strong>, but many follow the wrong procedure to achieve this. The main goal should be to understand the concepts of programming and grasp the underlying logic. This way, students can become proficient in any programming language quickly, rather than focusing on mastering a specific language. Many students focus only on <strong>particular languages and struggle to switch to another language</strong>, becoming proficient in it. This can be compared to model <strong>overfitting</strong>. Overfitting occurs when a model performs well on the training data but fails to generalize to new, unseen data. Similarly, a student who only performs well in a specific, already known language and struggles with others exhibits undesirable(unknown) behavior, just like an overfitted model. In this case, the student has failed to capture the core concepts of programming and has instead merely memorized a specific language. As a result, the student cannot adapt well to new languages, just as an overfitted model cannot perform well on unseen data.</p><p>Now, let’s focus on another type of student who is not comfortable with programming. They don’t want to <strong>learn it</strong> and might be good at other domains of computer science. These students are neither <strong>proficient in a particular programming language nor in programming logic</strong>, resulting in poor programming skills overall. This type of student is similar to model underfitting. A model is underfitted if it performs poorly on both the training and validation datasets, indicating poor performance on both seen and unseen data.</p><p>So, <strong>The model should learn the underlying patterns of the data, rather than simply memorizing the training set</strong>. To achieve a generalizable model, it is necessary to fine-tune the model’s parameters using the validation dataset. The test dataset should only be used to evaluate the model’s performance on truly unseen data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc3bf770a017" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>