<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet href="/static/feed.xsl" type="text/xsl" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:quartz="https://quartz.jzhao.xyz/ns">
  <script xmlns="http://www.w3.org/1999/xhtml" src="/static/scripts/xslt-polyfill-214fd525.js"></script>
  <title>/wiki / data-science</title>
  <subtitle>Recent notes in /wiki / data-science on Animesh Mishra</subtitle>
  <link href="https://animishraa05.github.io/wiki/data-science" />
  <link rel="alternate" type="text/html" href="https://animishraa05.github.io/wiki/data-science" />
  <category term="wiki/data-science" />
  <id>https://animishraa05.github.io/wiki/data-science</id>
  <updated>2026-09-02T00:00:00.000Z</updated>
  <contributor>
    <name>Animesh Mishra</name>
    <email>animesh.mishra818@gmail.com</email>
  </contributor>
  <logo>https://animishraa05.github.io/icon.png</logo>
  <icon>https://animishraa05.github.io/icon.png</icon>
  <generator>Quartz v4.6.0 -- quartz.jzhao.xyz</generator>
  <rights type="html">&amp;amp;copy; 2026 Animesh Mishra</rights>
  
  <entry>
    <title>Data Science -- Map of Content</title>
    <link href="https://animishraa05.github.io/wiki/data-science/" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/.md" />
    <summary> Map of Content for Data Science — 16 concepts. Start here to navigate data-science.</summary>
    <published>2026-09-02T00:00:00.000Z</published>
    <updated>2026-09-02T00:00:00.000Z</updated>
    <publishedTime>Sep 02, 2026</publishedTime>
    <updatedTime>Sep 02, 2026</updatedTime>
    <category term="meta" label="meta" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p dir=&quot;auto&quot;&gt;Map of Content for &lt;strong&gt;Data Science&lt;/strong&gt; — 16 concepts. Start here to navigate data-science.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;core-concepts&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Concepts&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-concepts&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;&lt;a href=&quot;../../classification&quot; class=&quot;internal alias&quot; data-slug=&quot;classification&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Classification&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../cross-validation&quot; class=&quot;internal alias&quot; data-slug=&quot;cross-validation&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Cross-Validation&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../data-cleaning&quot; class=&quot;internal alias&quot; data-slug=&quot;data-cleaning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Cleaning&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../data-modeling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-modeling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Modeling&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../data-science&quot; class=&quot;internal alias&quot; data-slug=&quot;data-science&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Science&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../data-transformation&quot; class=&quot;internal alias&quot; data-slug=&quot;data-transformation&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Transformation&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../data-visualization&quot; class=&quot;internal alias&quot; data-slug=&quot;data-visualization&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Visualization&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../data-wrangling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-wrangling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Wrangling&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../exploratory-data-analysis&quot; class=&quot;internal alias&quot; data-slug=&quot;exploratory-data-analysis&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Exploratory Data Analysis&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../feature-engineering&quot; class=&quot;internal alias&quot; data-slug=&quot;feature-engineering&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Feature Engineering&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../overfitting&quot; class=&quot;internal alias&quot; data-slug=&quot;overfitting&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Overfitting&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../regression&quot; class=&quot;internal alias&quot; data-slug=&quot;regression&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Regression&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../supervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;supervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Supervised Learning&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../train-test-split&quot; class=&quot;internal alias&quot; data-slug=&quot;train-test-split&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Train-Test Split&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../underfitting&quot; class=&quot;internal alias&quot; data-slug=&quot;underfitting&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Underfitting&lt;/a&gt; — concept&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../unsupervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;unsupervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Unsupervised Learning&lt;/a&gt; — concept&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;mechanisms--how-things-work&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Mechanisms &amp;#x26; How Things Work&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#mechanisms--how-things-work&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;&lt;em&gt;Pages that explain processes/flows.&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;comparisons--tradeoffs&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Comparisons &amp;#x26; Tradeoffs&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#comparisons--tradeoffs&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;&lt;em&gt;(No synthesis yet — create via ingest or query —save)&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;suggested-reading-order&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Suggested Reading Order&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#suggested-reading-order&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Browse Core Concepts above — start with most-linked page&lt;/li&gt;
&lt;li&gt;Follow Connections sections for dense graph traversal&lt;/li&gt;
&lt;/ol&gt;</content>
  </entry><entry>
    <title>classification</title>
    <link href="https://animishraa05.github.io/wiki/data-science/classification" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/classification.md" />
    <summary>The Problem We need to predict which category or class an observation belongs to (spam/not-spam, cat/dog, disease/no-disease).</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-05-06T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>May 06, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;We need to predict which category or class an observation belongs to (spam/not-spam, cat/dog, disease/no-disease).&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Supervised learning task where the goal is to predict a discrete categorical label from input features.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Collect labeled data: features X and categorical labels y (e.g., 0/1, cat/dog)&lt;/li&gt;
&lt;li&gt;Choose classifier: logistic regression, decision trees, SVM, neural networks, etc.&lt;/li&gt;
&lt;li&gt;Define loss function: log loss, hinge loss, or misclassification rate&lt;/li&gt;
&lt;li&gt;Train: find model parameters that minimize classification error&lt;/li&gt;
&lt;li&gt;Predict: for new inputs, output class label or probability distribution&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;415pt&quot; height=&quot;152pt&quot; viewBox=&quot;0.00 0.00 415.00 152.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 148)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-148 410.57,-148 410.57,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Features (X) --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Features (X)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M74.36,-63C74.36,-63 12,-63 12,-63 6,-63 0,-57 0,-51 0,-51 0,-39 0,-39 0,-33 6,-27 12,-27 12,-27 74.36,-27 74.36,-27 80.36,-27 86.36,-33 86.36,-39 86.36,-39 86.36,-51 86.36,-51 86.36,-57 80.36,-63 74.36,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;43.18&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Features (X)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Classifier --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Classifier&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M199.08,-63C199.08,-63 153.42,-63 153.42,-63 147.42,-63 141.42,-57 141.42,-51 141.42,-51 141.42,-39 141.42,-39 141.42,-33 147.42,-27 153.42,-27 153.42,-27 199.08,-27 199.08,-27 205.08,-27 211.08,-33 211.08,-39 211.08,-39 211.08,-51 211.08,-51 211.08,-57 205.08,-63 199.08,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;176.25&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Classifier&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Features (X)&amp;#45;&amp;gt;Classifier --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Features (X)-&gt;Classifier&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M86.73,-38.63C100.52,-38.16 115.85,-38.12 129.83,-38.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;129.55,-42.03 139.68,-38.94 129.83,-35.04 129.55,-42.03&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Features (X)&amp;#45;&amp;gt;Classifier --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Features (X)-&gt;Classifier&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M86.73,-51.37C100.52,-51.84 115.85,-51.88 129.83,-51.46&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;129.83,-54.96 139.68,-51.06 129.55,-47.97 129.83,-54.96&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Class Prediction (ŷ) --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Class Prediction (ŷ)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M387.96,-90C387.96,-90 284.75,-90 284.75,-90 278.75,-90 272.75,-84 272.75,-78 272.75,-78 272.75,-66 272.75,-66 272.75,-60 278.75,-54 284.75,-54 284.75,-54 387.96,-54 387.96,-54 393.96,-54 399.96,-60 399.96,-66 399.96,-66 399.96,-78 399.96,-78 399.96,-84 393.96,-90 387.96,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;336.35&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Class Prediction (ŷ)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Classifier&amp;#45;&amp;gt;Class Prediction (ŷ) --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Classifier-&gt;Class Prediction (ŷ)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M211.55,-50.86C226.16,-53.35 243.8,-56.36 261.12,-59.32&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;260.49,-62.77 270.94,-61 261.67,-55.87 260.49,-62.77&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Class Probabilities (p) --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Class Probabilities (p)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M394.57,-36C394.57,-36 278.13,-36 278.13,-36 272.13,-36 266.13,-30 266.13,-24 266.13,-24 266.13,-12 266.13,-12 266.13,-6 272.13,0 278.13,0 278.13,0 394.57,0 394.57,0 400.57,0 406.57,-6 406.57,-12 406.57,-12 406.57,-24 406.57,-24 406.57,-30 400.57,-36 394.57,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;336.35&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Class Probabilities (p)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Classifier&amp;#45;&amp;gt;Class Probabilities (p) --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Classifier-&gt;Class Probabilities (p)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M211.55,-39.14C224.34,-36.96 239.46,-34.38 254.66,-31.78&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;254.95,-35.28 264.22,-30.15 253.77,-28.38 254.95,-35.28&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Labels (y) --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Labels (y)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M67.75,-144C67.75,-144 18.61,-144 18.61,-144 12.61,-144 6.61,-138 6.61,-132 6.61,-132 6.61,-120 6.61,-120 6.61,-114 12.61,-108 18.61,-108 18.61,-108 67.75,-108 67.75,-108 73.75,-108 79.75,-114 79.75,-120 79.75,-120 79.75,-132 79.75,-132 79.75,-138 73.75,-144 67.75,-144&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;43.18&quot; y=&quot;-121.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Labels (y)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Loss (Log Loss) --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Loss (Log Loss)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M218.13,-144C218.13,-144 134.36,-144 134.36,-144 128.36,-144 122.36,-138 122.36,-132 122.36,-132 122.36,-120 122.36,-120 122.36,-114 128.36,-108 134.36,-108 134.36,-108 218.13,-108 218.13,-108 224.13,-108 230.13,-114 230.13,-120 230.13,-120 230.13,-132 230.13,-132 230.13,-138 224.13,-144 218.13,-144&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;176.25&quot; y=&quot;-121.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Loss (Log Loss)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Labels (y)&amp;#45;&amp;gt;Loss (Log Loss) --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Labels (y)-&gt;Loss (Log Loss)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M80,-126C89.57,-126 100.22,-126 110.83,-126&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;110.76,-129.5 120.76,-126 110.76,-122.5 110.76,-129.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Optimize --&gt;
&lt;g id=&quot;node7&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Optimize&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M358.4,-144C358.4,-144 314.3,-144 314.3,-144 308.3,-144 302.3,-138 302.3,-132 302.3,-132 302.3,-120 302.3,-120 302.3,-114 308.3,-108 314.3,-108 314.3,-108 358.4,-108 358.4,-108 364.4,-108 370.4,-114 370.4,-120 370.4,-120 370.4,-132 370.4,-132 370.4,-138 364.4,-144 358.4,-144&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;336.35&quot; y=&quot;-121.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Optimize&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Loss (Log Loss)&amp;#45;&amp;gt;Optimize --&gt;
&lt;g id=&quot;edge6&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Loss (Log Loss)-&gt;Optimize&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M230.33,-126C249.85,-126 271.75,-126 290.48,-126&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;290.46,-129.5 300.46,-126 290.46,-122.5 290.46,-129.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Discrete output: predicts categories or class membership probabilities&lt;/li&gt;
&lt;li&gt;Probabilistic or deterministic: can output “most likely class” or full probability distribution&lt;/li&gt;
&lt;li&gt;Imbalanced: rare classes are harder to learn (may need special techniques)&lt;/li&gt;
&lt;li&gt;Metrics: accuracy, precision, recall, F1-score, AUC-ROC (not just “error rate”)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Classification Pages: 1 --&gt;
&lt;svg width=&quot;178pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 178.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Classification&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 174.12,-165.63 174.12,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;65.63&quot; cy=&quot;-86.21&quot; rx=&quot;61.3&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;65.63&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Classification&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;109.53&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;109.53&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M79.28,-104.06C84.62,-111.04 90.72,-119.02 96.04,-125.98&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;68.62&quot; y=&quot;-119.22&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;41.67&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;41.67&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.21,-67.93C55.72,-57.98 51.42,-45.73 47.95,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;83.33&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../supervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;supervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Supervised Learning&lt;/a&gt; — classification is a supervised task&lt;/li&gt;
&lt;li&gt;Contrasts with: &lt;a href=&quot;../../regression&quot; class=&quot;internal alias&quot; data-slug=&quot;regression&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Regression&lt;/a&gt; — predicts categories instead of continuous numbers&lt;/li&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../decision-tree-structure&quot; class=&quot;internal alias&quot; data-slug=&quot;decision-tree-structure&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Decision Tree Structure&lt;/a&gt; — trees solve classification via leaf class labels&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../decision-tree-prediction&quot; class=&quot;internal alias&quot; data-slug=&quot;decision-tree-prediction&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Decision Tree Prediction&lt;/a&gt; — trees classify by root-to-leaf traversal&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../train-test-split&quot; class=&quot;internal alias&quot; data-slug=&quot;train-test-split&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Train-Test Split&lt;/a&gt; — classification needs stratified splitting&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../overfitting&quot; class=&quot;internal alias&quot; data-slug=&quot;overfitting&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Overfitting&lt;/a&gt; — classifiers can memorize training examples&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Class imbalance: accuracy is misleading when 95% of examples are one class&lt;/li&gt;
&lt;li&gt;Threshold choice: default 0.5 may not be optimal for asymmetric costs&lt;/li&gt;
&lt;li&gt;Multiclass vs multilabel: one example can belong to multiple categories (different problem)&lt;/li&gt;
&lt;li&gt;Calibration: predicted probabilities may not match true probabilities&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>cross-validation</title>
    <link href="https://animishraa05.github.io/wiki/data-science/cross-validation" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/cross-validation.md" />
    <summary>The Problem A single train-test split gives a noisy estimate of model performance — different splits give different results, especially on small datasets.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;A single train-test split gives a noisy estimate of model performance — different splits give different results, especially on small datasets.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;A resampling technique that repeatedly splits data into train and validation sets to get a more robust estimate of model performance.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Choose k (typically 5 or 10)&lt;/li&gt;
&lt;li&gt;Split data into k roughly equal folds&lt;/li&gt;
&lt;li&gt;For each fold i: train on all folds except i, validate on fold i&lt;/li&gt;
&lt;li&gt;Compute performance metric for each fold&lt;/li&gt;
&lt;li&gt;Average the k performance scores for final estimate&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;515pt&quot; height=&quot;188pt&quot; viewBox=&quot;0.00 0.00 515.00 188.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 184)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-184 510.74,-184 510.74,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Dataset --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Dataset&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M270.36,-180C270.36,-180 236.38,-180 236.38,-180 230.38,-180 224.38,-174 224.38,-168 224.38,-168 224.38,-156 224.38,-156 224.38,-150 230.38,-144 236.38,-144 236.38,-144 270.36,-144 270.36,-144 276.36,-144 282.36,-150 282.36,-156 282.36,-156 282.36,-168 282.36,-168 282.36,-174 276.36,-180 270.36,-180&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;253.37&quot; y=&quot;-157.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Dataset&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Fold 1,2,3,4,5 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Fold 1,2,3,4,5&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M288.46,-108C288.46,-108 218.28,-108 218.28,-108 212.28,-108 206.28,-102 206.28,-96 206.28,-96 206.28,-84 206.28,-84 206.28,-78 212.28,-72 218.28,-72 218.28,-72 288.46,-72 288.46,-72 294.46,-72 300.46,-78 300.46,-84 300.46,-84 300.46,-96 300.46,-96 300.46,-102 294.46,-108 288.46,-108&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;253.37&quot; y=&quot;-85.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Fold 1,2,3,4,5&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Dataset&amp;#45;&amp;gt;Fold 1,2,3,4,5 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Dataset-&gt;Fold 1,2,3,4,5&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M253.37,-143.7C253.37,-136.41 253.37,-127.73 253.37,-119.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;256.87,-119.62 253.37,-109.62 249.87,-119.62 256.87,-119.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Train on 4, Validate on 1 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Train on 4, Validate on 1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M144.74,-36C144.74,-36 12,-36 12,-36 6,-36 0,-30 0,-24 0,-24 0,-12 0,-12 0,-6 6,0 12,0 12,0 144.74,0 144.74,0 150.74,0 156.74,-6 156.74,-12 156.74,-12 156.74,-24 156.74,-24 156.74,-30 150.74,-36 144.74,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;78.37&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Train on 4, Validate on 1&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Fold 1,2,3,4,5&amp;#45;&amp;gt;Train on 4, Validate on 1 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Fold 1,2,3,4,5-&gt;Train on 4, Validate on 1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M209.66,-71.52C186.19,-62.13 157.05,-50.47 132.19,-40.53&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;133.81,-37.41 123.23,-36.94 131.21,-43.91 133.81,-37.41&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Train on 4, Validate on 2 --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Train on 4, Validate on 2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M319.74,-36C319.74,-36 187,-36 187,-36 181,-36 175,-30 175,-24 175,-24 175,-12 175,-12 175,-6 181,0 187,0 187,0 319.74,0 319.74,0 325.74,0 331.74,-6 331.74,-12 331.74,-12 331.74,-24 331.74,-24 331.74,-30 325.74,-36 319.74,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;253.37&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Train on 4, Validate on 2&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Fold 1,2,3,4,5&amp;#45;&amp;gt;Train on 4, Validate on 2 --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Fold 1,2,3,4,5-&gt;Train on 4, Validate on 2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M253.37,-71.7C253.37,-64.41 253.37,-55.73 253.37,-47.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;256.87,-47.62 253.37,-37.62 249.87,-47.62 256.87,-47.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Train on 4, Validate on 5 --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Train on 4, Validate on 5&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M494.74,-36C494.74,-36 362,-36 362,-36 356,-36 350,-30 350,-24 350,-24 350,-12 350,-12 350,-6 356,0 362,0 362,0 494.74,0 494.74,0 500.74,0 506.74,-6 506.74,-12 506.74,-12 506.74,-24 506.74,-24 506.74,-30 500.74,-36 494.74,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;428.37&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Train on 4, Validate on 5&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Fold 1,2,3,4,5&amp;#45;&amp;gt;Train on 4, Validate on 5 --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Fold 1,2,3,4,5-&gt;Train on 4, Validate on 5&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M297.08,-71.52C320.55,-62.13 349.69,-50.47 374.55,-40.53&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;375.52,-43.91 383.51,-36.94 372.92,-37.41 375.52,-43.91&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- All Validations --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;All Validations&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M426.34,-180C426.34,-180 348.4,-180 348.4,-180 342.4,-180 336.4,-174 336.4,-168 336.4,-168 336.4,-156 336.4,-156 336.4,-150 342.4,-144 348.4,-144 348.4,-144 426.34,-144 426.34,-144 432.34,-144 438.34,-150 438.34,-156 438.34,-156 438.34,-168 438.34,-168 438.34,-174 432.34,-180 426.34,-180&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;387.37&quot; y=&quot;-157.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;All Validations&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Average Performance --&gt;
&lt;g id=&quot;node7&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Average Performance&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M444.58,-108C444.58,-108 330.15,-108 330.15,-108 324.15,-108 318.15,-102 318.15,-96 318.15,-96 318.15,-84 318.15,-84 318.15,-78 324.15,-72 330.15,-72 330.15,-72 444.58,-72 444.58,-72 450.58,-72 456.58,-78 456.58,-84 456.58,-84 456.58,-96 456.58,-96 456.58,-102 450.58,-108 444.58,-108&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;387.37&quot; y=&quot;-85.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Average Performance&lt;/text&gt;
&lt;/g&gt;
&lt;!-- All Validations&amp;#45;&amp;gt;Average Performance --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;All Validations-&gt;Average Performance&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M387.37,-143.7C387.37,-136.41 387.37,-127.73 387.37,-119.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;390.87,-119.62 387.37,-109.62 383.87,-119.62 390.87,-119.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Robust: reduces variance of performance estimate compared to single split&lt;/li&gt;
&lt;li&gt;Computationally expensive: requires training k models instead of one&lt;/li&gt;
&lt;li&gt;Data-efficient: uses all data for both training and validation (just not simultaneously)&lt;/li&gt;
&lt;li&gt;Standard: the gold standard for model evaluation in ML research&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Cross_Validation Pages: 1 --&gt;
&lt;svg width=&quot;186pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 186.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Cross_Validation&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 181.75,-165.63 181.75,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;73.27&quot; cy=&quot;-86.21&quot; rx=&quot;73.27&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;73.27&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Cross Validation&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;117.16&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;117.16&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M87.16,-104.37C92.38,-111.21 98.31,-118.97 103.52,-125.77&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;76.29&quot; y=&quot;-119.27&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;49.31&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;49.31&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M66.85,-67.93C63.36,-57.98 59.05,-45.73 55.58,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;90.97&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../train-test-split&quot; class=&quot;internal alias&quot; data-slug=&quot;train-test-split&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Train-Test Split&lt;/a&gt; — cross-validation is a multi-split extension&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../overfitting&quot; class=&quot;internal alias&quot; data-slug=&quot;overfitting&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Overfitting&lt;/a&gt; — CV helps detect overfitting more reliably&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../supervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;supervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Supervised Learning&lt;/a&gt; — CV is used to evaluate supervised models&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-modeling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-modeling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Modeling&lt;/a&gt; — model selection uses CV to compare algorithms&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Time series data: standard k-fold breaks temporal ordering (use time-series CV)&lt;/li&gt;
&lt;li&gt;Data leakage: preprocessing (normalization) must be done inside each fold&lt;/li&gt;
&lt;li&gt;Stratification: for classification, ensure each fold has representative class proportions&lt;/li&gt;
&lt;li&gt;Small datasets: leave-one-out CV (k=n) can have high variance despite being “exact”&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>data-cleaning</title>
    <link href="https://animishraa05.github.io/wiki/data-science/data-cleaning" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/data-cleaning.md" />
    <summary>The Problem Real-world data contains missing values, duplicates, outliers, and incorrect types that break analysis and models.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Real-world data contains missing values, duplicates, outliers, and incorrect types that break analysis and models.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Identifying and fixing errors, inconsistencies, and missing values in a dataset to make it suitable for analysis.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Profile data: summarize columns, check types, identify missing values&lt;/li&gt;
&lt;li&gt;Handle missing data: drop, impute with mean/median/mode, or model-based imputation&lt;/li&gt;
&lt;li&gt;Remove duplicates: identify and eliminate repeated records&lt;/li&gt;
&lt;li&gt;Fix data types: convert strings to dates, numbers, or categories&lt;/li&gt;
&lt;li&gt;Handle outliers: cap, transform, or remove extreme values&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;769pt&quot; height=&quot;44pt&quot; viewBox=&quot;0.00 0.00 769.00 44.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 40)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-40 764.64,-40 764.64,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Dirty Data --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Dirty Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M63.48,-36C63.48,-36 12,-36 12,-36 6,-36 0,-30 0,-24 0,-24 0,-12 0,-12 0,-6 6,0 12,0 12,0 63.48,0 63.48,0 69.48,0 75.48,-6 75.48,-12 75.48,-12 75.48,-24 75.48,-24 75.48,-30 69.48,-36 63.48,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;37.74&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Dirty Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Profile --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Profile&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M153.58,-36C153.58,-36 123.48,-36 123.48,-36 117.48,-36 111.48,-30 111.48,-24 111.48,-24 111.48,-12 111.48,-12 111.48,-6 117.48,0 123.48,0 123.48,0 153.58,0 153.58,0 159.58,0 165.58,-6 165.58,-12 165.58,-12 165.58,-24 165.58,-24 165.58,-30 159.58,-36 153.58,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;138.53&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Profile&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Dirty Data&amp;#45;&amp;gt;Profile --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Dirty Data-&gt;Profile&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M75.81,-18C83.59,-18 91.8,-18 99.62,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;99.54,-21.5 109.54,-18 99.54,-14.5 99.54,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Handle Missing --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Handle Missing&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M294.63,-36C294.63,-36 213.58,-36 213.58,-36 207.58,-36 201.58,-30 201.58,-24 201.58,-24 201.58,-12 201.58,-12 201.58,-6 207.58,0 213.58,0 213.58,0 294.63,0 294.63,0 300.63,0 306.63,-6 306.63,-12 306.63,-12 306.63,-24 306.63,-24 306.63,-30 300.63,-36 294.63,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;254.11&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Handle Missing&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Profile&amp;#45;&amp;gt;Handle Missing --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Profile-&gt;Handle Missing&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M165.87,-18C173.26,-18 181.61,-18 190.16,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;189.92,-21.5 199.92,-18 189.92,-14.5 189.92,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Dedup --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Dedup&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M384.63,-36C384.63,-36 354.63,-36 354.63,-36 348.63,-36 342.63,-30 342.63,-24 342.63,-24 342.63,-12 342.63,-12 342.63,-6 348.63,0 354.63,0 354.63,0 384.63,0 384.63,0 390.63,0 396.63,-6 396.63,-12 396.63,-12 396.63,-24 396.63,-24 396.63,-30 390.63,-36 384.63,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;369.63&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Dedup&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Handle Missing&amp;#45;&amp;gt;Dedup --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Handle Missing-&gt;Dedup&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M306.89,-18C315.04,-18 323.34,-18 331.09,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;330.83,-21.5 340.83,-18 330.83,-14.5 330.83,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Fix Types --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Fix Types&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M493.02,-36C493.02,-36 444.63,-36 444.63,-36 438.63,-36 432.63,-30 432.63,-24 432.63,-24 432.63,-12 432.63,-12 432.63,-6 438.63,0 444.63,0 444.63,0 493.02,0 493.02,0 499.02,0 505.02,-6 505.02,-12 505.02,-12 505.02,-24 505.02,-24 505.02,-30 499.02,-36 493.02,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;468.83&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Fix Types&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Dedup&amp;#45;&amp;gt;Fix Types --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Dedup-&gt;Fix Types&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M396.94,-18C404.35,-18 412.65,-18 420.88,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;420.87,-21.5 430.87,-18 420.87,-14.5 420.87,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Handle Outliers --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Handle Outliers&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M634.06,-36C634.06,-36 553.02,-36 553.02,-36 547.02,-36 541.02,-30 541.02,-24 541.02,-24 541.02,-12 541.02,-12 541.02,-6 547.02,0 553.02,0 553.02,0 634.06,0 634.06,0 640.06,0 646.06,-6 646.06,-12 646.06,-12 646.06,-24 646.06,-24 646.06,-30 640.06,-36 634.06,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;593.54&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Handle Outliers&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Fix Types&amp;#45;&amp;gt;Handle Outliers --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Fix Types-&gt;Handle Outliers&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M505.32,-18C512.91,-18 521.15,-18 529.43,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;529.18,-21.5 539.18,-18 529.18,-14.5 529.18,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Clean Data --&gt;
&lt;g id=&quot;node7&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Clean Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M748.64,-36C748.64,-36 694.06,-36 694.06,-36 688.06,-36 682.06,-30 682.06,-24 682.06,-24 682.06,-12 682.06,-12 682.06,-6 688.06,0 694.06,0 694.06,0 748.64,0 748.64,0 754.64,0 760.64,-6 760.64,-12 760.64,-12 760.64,-24 760.64,-24 760.64,-30 754.64,-36 748.64,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;721.35&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Clean Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Handle Outliers&amp;#45;&amp;gt;Clean Data --&gt;
&lt;g id=&quot;edge6&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Handle Outliers-&gt;Clean Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M646.44,-18C654.35,-18 662.5,-18 670.37,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;670.13,-21.5 680.13,-18 670.13,-14.5 670.13,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Dataset-specific: cleaning steps vary by domain and data source&lt;/li&gt;
&lt;li&gt;Trade-off: aggressive cleaning vs preserving information&lt;/li&gt;
&lt;li&gt;Documentation-critical: every cleaning decision must be recorded&lt;/li&gt;
&lt;li&gt;Statistical: often requires understanding distributions to identify issues&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Data_Cleaning Pages: 1 --&gt;
&lt;svg width=&quot;178pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 178.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Data_Cleaning&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 174.12,-165.63 174.12,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;65.63&quot; cy=&quot;-86.21&quot; rx=&quot;65.14&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;65.63&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Data Cleaning&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;109.53&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;109.53&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M79.28,-104.06C84.62,-111.04 90.72,-119.02 96.04,-125.98&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;68.62&quot; y=&quot;-119.22&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;41.67&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;41.67&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.21,-67.93C55.72,-57.98 51.42,-45.73 47.95,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;83.33&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../data-wrangling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-wrangling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Wrangling&lt;/a&gt; — cleaning is a phase within wrangling&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../data-transformation&quot; class=&quot;internal alias&quot; data-slug=&quot;data-transformation&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Transformation&lt;/a&gt; — clean data is ready for reshaping&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../exploratory-data-analysis&quot; class=&quot;internal alias&quot; data-slug=&quot;exploratory-data-analysis&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;EDA&lt;/a&gt; — profiling reveals what needs cleaning&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../feature-engineering&quot; class=&quot;internal alias&quot; data-slug=&quot;feature-engineering&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Feature Engineering&lt;/a&gt; — clean features enable better models&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Blindly dropping all missing values can bias results&lt;/li&gt;
&lt;li&gt;Mean imputation distorts variance and correlations&lt;/li&gt;
&lt;li&gt;Automated duplicate detection may miss fuzzy duplicates&lt;/li&gt;
&lt;li&gt;Over-aggressive outlier removal eliminates rare but important events&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>data-modeling</title>
    <link href="https://animishraa05.github.io/wiki/data-science/data-modeling" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/data-modeling.md" />
    <summary>The Problem Organizations need to make predictions, classify objects, or discover patterns — tasks that require mathematical models trained on data.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Organizations need to make predictions, classify objects, or discover patterns — tasks that require mathematical models trained on data.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;The process of selecting, training, and evaluating machine learning algorithms to make predictions or discover patterns in data.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Define the task: regression (predict number), classification (predict category), or clustering (find groups)&lt;/li&gt;
&lt;li&gt;Split data: training set (learn patterns), validation set (tune), test set (evaluate)&lt;/li&gt;
&lt;li&gt;Select algorithms: choose models appropriate for the task and data size&lt;/li&gt;
&lt;li&gt;Train models: fit algorithms to training data by minimizing a loss function&lt;/li&gt;
&lt;li&gt;Evaluate: assess performance using appropriate metrics (RMSE, accuracy, F1)&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;138pt&quot; height=&quot;404pt&quot; viewBox=&quot;0.00 0.00 138.00 404.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 400)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-400 133.93,-400 133.93,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Task Definition --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Task Definition&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M105.09,-396C105.09,-396 24.83,-396 24.83,-396 18.83,-396 12.83,-390 12.83,-384 12.83,-384 12.83,-372 12.83,-372 12.83,-366 18.83,-360 24.83,-360 24.83,-360 105.09,-360 105.09,-360 111.09,-360 117.09,-366 117.09,-372 117.09,-372 117.09,-384 117.09,-384 117.09,-390 111.09,-396 105.09,-396&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;64.96&quot; y=&quot;-373.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Task Definition&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Data Split --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Data Split&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M89.16,-324C89.16,-324 40.77,-324 40.77,-324 34.77,-324 28.77,-318 28.77,-312 28.77,-312 28.77,-300 28.77,-300 28.77,-294 34.77,-288 40.77,-288 40.77,-288 89.16,-288 89.16,-288 95.16,-288 101.16,-294 101.16,-300 101.16,-300 101.16,-312 101.16,-312 101.16,-318 95.16,-324 89.16,-324&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;64.96&quot; y=&quot;-301.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Data Split&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Task Definition&amp;#45;&amp;gt;Data Split --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Task Definition-&gt;Data Split&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M64.96,-359.7C64.96,-352.41 64.96,-343.73 64.96,-335.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;68.46,-335.62 64.96,-325.62 61.46,-335.62 68.46,-335.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Algorithm Selection --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Algorithm Selection&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M117.93,-252C117.93,-252 12,-252 12,-252 6,-252 0,-246 0,-240 0,-240 0,-228 0,-228 0,-222 6,-216 12,-216 12,-216 117.93,-216 117.93,-216 123.93,-216 129.93,-222 129.93,-228 129.93,-228 129.93,-240 129.93,-240 129.93,-246 123.93,-252 117.93,-252&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;64.96&quot; y=&quot;-229.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Algorithm Selection&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Data Split&amp;#45;&amp;gt;Algorithm Selection --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Data Split-&gt;Algorithm Selection&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M64.96,-287.7C64.96,-280.41 64.96,-271.73 64.96,-263.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;68.46,-263.62 64.96,-253.62 61.46,-263.62 68.46,-263.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Training --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Training&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M85.07,-180C85.07,-180 44.86,-180 44.86,-180 38.86,-180 32.86,-174 32.86,-168 32.86,-168 32.86,-156 32.86,-156 32.86,-150 38.86,-144 44.86,-144 44.86,-144 85.07,-144 85.07,-144 91.07,-144 97.07,-150 97.07,-156 97.07,-156 97.07,-168 97.07,-168 97.07,-174 91.07,-180 85.07,-180&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;64.96&quot; y=&quot;-157.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Training&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Algorithm Selection&amp;#45;&amp;gt;Training --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Algorithm Selection-&gt;Training&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M64.96,-215.7C64.96,-208.41 64.96,-199.73 64.96,-191.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;68.46,-191.62 64.96,-181.62 61.46,-191.62 68.46,-191.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Evaluation --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Evaluation&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M91.29,-108C91.29,-108 38.64,-108 38.64,-108 32.64,-108 26.64,-102 26.64,-96 26.64,-96 26.64,-84 26.64,-84 26.64,-78 32.64,-72 38.64,-72 38.64,-72 91.29,-72 91.29,-72 97.29,-72 103.29,-78 103.29,-84 103.29,-84 103.29,-96 103.29,-96 103.29,-102 97.29,-108 91.29,-108&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;64.96&quot; y=&quot;-85.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Evaluation&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Training&amp;#45;&amp;gt;Evaluation --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Training-&gt;Evaluation&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M64.96,-143.7C64.96,-136.41 64.96,-127.73 64.96,-119.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;68.46,-119.62 64.96,-109.62 61.46,-119.62 68.46,-119.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Deployment --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Deployment&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M95.57,-36C95.57,-36 34.36,-36 34.36,-36 28.36,-36 22.36,-30 22.36,-24 22.36,-24 22.36,-12 22.36,-12 22.36,-6 28.36,0 34.36,0 34.36,0 95.57,0 95.57,0 101.57,0 107.57,-6 107.57,-12 107.57,-12 107.57,-24 107.57,-24 107.57,-30 101.57,-36 95.57,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;64.96&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Deployment&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Evaluation&amp;#45;&amp;gt;Deployment --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Evaluation-&gt;Deployment&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M64.96,-71.7C64.96,-64.41 64.96,-55.73 64.96,-47.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;68.46,-47.62 64.96,-37.62 61.46,-47.62 68.46,-47.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Task-dependent: different problems require different model types&lt;/li&gt;
&lt;li&gt;Data-hungry: more data usually improves performance (up to a point)&lt;/li&gt;
&lt;li&gt;Non-convex: many models have multiple local optima during training&lt;/li&gt;
&lt;li&gt;Stochastic: same model with different random seeds can produce different results&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Data_Modeling Pages: 1 --&gt;
&lt;svg width=&quot;179pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 179.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Data_Modeling&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 174.58,-165.63 174.58,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;66.1&quot; cy=&quot;-86.21&quot; rx=&quot;66.1&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;66.1&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Data Modeling&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;109.99&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;109.99&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M79.75,-104.06C85.08,-111.04 91.18,-119.02 96.5,-125.98&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;69.08&quot; y=&quot;-119.22&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;42.14&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;42.14&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.68,-67.93C56.19,-57.98 51.88,-45.73 48.41,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;83.8&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../feature-engineering&quot; class=&quot;internal alias&quot; data-slug=&quot;feature-engineering&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Feature Engineering&lt;/a&gt; — models need engineered features&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../supervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;supervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Supervised Learning&lt;/a&gt; — modeling approach for labeled data&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../unsupervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;unsupervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Unsupervised Learning&lt;/a&gt; — modeling approach for unlabeled data&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-science&quot; class=&quot;internal alias&quot; data-slug=&quot;data-science&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Science&lt;/a&gt; — modeling is the core of data science&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Overfitting: model memorizes training data, fails on new data&lt;/li&gt;
&lt;li&gt;Underfitting: model is too simple to capture underlying patterns&lt;/li&gt;
&lt;li&gt;Data leakage: information from test set inadvertently used during training&lt;/li&gt;
&lt;li&gt;Ignoring model assumptions: linear models assume linear relationships&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>data-science</title>
    <link href="https://animishraa05.github.io/wiki/data-science/data-science" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/data-science.md" />
    <summary>The Problem Organizations collect massive amounts of raw data but lack methods to extract actionable insights, predict trends, or automate decisions from it.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Organizations collect massive amounts of raw data but lack methods to extract actionable insights, predict trends, or automate decisions from it.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Interdisciplinary field combining statistics, programming, and domain expertise to extract knowledge and insights from structured and unstructured data.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Data collection from diverse sources (databases, APIs, sensors)&lt;/li&gt;
&lt;li&gt;Data wrangling to clean and transform raw data into usable format&lt;/li&gt;
&lt;li&gt;Exploratory data analysis to understand patterns and relationships&lt;/li&gt;
&lt;li&gt;Feature engineering to create predictive variables&lt;/li&gt;
&lt;li&gt;Model training and evaluation to build predictive systems&lt;/li&gt;
&lt;li&gt;Deployment and monitoring of models in production&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;717pt&quot; height=&quot;98pt&quot; viewBox=&quot;0.00 0.00 717.00 98.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 94)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-94 712.61,-94 712.61,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Raw Data --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Raw Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.59,-90C59.59,-90 12,-90 12,-90 6,-90 0,-84 0,-78 0,-78 0,-66 0,-66 0,-60 6,-54 12,-54 12,-54 59.59,-54 59.59,-54 65.59,-54 71.59,-60 71.59,-66 71.59,-66 71.59,-78 71.59,-78 71.59,-84 65.59,-90 59.59,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;35.79&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Raw Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Data Wrangling --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Data Wrangling&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M207.22,-90C207.22,-90 125.43,-90 125.43,-90 119.43,-90 113.43,-84 113.43,-78 113.43,-78 113.43,-66 113.43,-66 113.43,-60 119.43,-54 125.43,-54 125.43,-54 207.22,-54 207.22,-54 213.22,-54 219.22,-60 219.22,-66 219.22,-66 219.22,-78 219.22,-78 219.22,-84 213.22,-90 207.22,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;166.33&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Data Wrangling&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Raw Data&amp;#45;&amp;gt;Data Wrangling --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Raw Data-&gt;Data Wrangling&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M71.92,-72C81.31,-72 91.75,-72 102.15,-72&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;101.86,-75.5 111.86,-72 101.86,-68.5 101.86,-75.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- EDA --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;EDA&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M303.06,-82C303.06,-82 273.06,-82 273.06,-82 267.06,-82 261.06,-76 261.06,-70 261.06,-70 261.06,-58 261.06,-58 261.06,-52 267.06,-46 273.06,-46 273.06,-46 303.06,-46 303.06,-46 309.06,-46 315.06,-52 315.06,-58 315.06,-58 315.06,-70 315.06,-70 315.06,-76 309.06,-82 303.06,-82&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;288.06&quot; y=&quot;-59.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;EDA&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Data Wrangling&amp;#45;&amp;gt;EDA --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Data Wrangling-&gt;EDA&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M219.5,-68.51C229.51,-67.85 239.82,-67.16 249.27,-66.53&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;249.45,-70.02 259.19,-65.86 248.98,-63.04 249.45,-70.02&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Feature Engineering --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Feature Engineering&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M468.96,-82C468.96,-82 363.06,-82 363.06,-82 357.06,-82 351.06,-76 351.06,-70 351.06,-70 351.06,-58 351.06,-58 351.06,-52 357.06,-46 363.06,-46 363.06,-46 468.96,-46 468.96,-46 474.96,-46 480.96,-52 480.96,-58 480.96,-58 480.96,-70 480.96,-70 480.96,-76 474.96,-82 468.96,-82&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;416.01&quot; y=&quot;-59.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Feature Engineering&lt;/text&gt;
&lt;/g&gt;
&lt;!-- EDA&amp;#45;&amp;gt;Feature Engineering --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;EDA-&gt;Feature Engineering&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M315.47,-64C322.69,-64 330.89,-64 339.42,-64&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;339.24,-67.5 349.24,-64 339.24,-60.5 339.24,-67.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Modeling --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Modeling&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M575.4,-59C575.4,-59 528.96,-59 528.96,-59 522.96,-59 516.96,-53 516.96,-47 516.96,-47 516.96,-35 516.96,-35 516.96,-29 522.96,-23 528.96,-23 528.96,-23 575.4,-23 575.4,-23 581.4,-23 587.4,-29 587.4,-35 587.4,-35 587.4,-47 587.4,-47 587.4,-53 581.4,-59 575.4,-59&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;552.18&quot; y=&quot;-36.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Modeling&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Feature Engineering&amp;#45;&amp;gt;Modeling --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Feature Engineering-&gt;Modeling&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M481.35,-52.97C489.57,-51.56 497.85,-50.14 505.69,-48.8&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;506.04,-52.29 515.31,-47.15 504.86,-45.39 506.04,-52.29&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Deployment --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Deployment&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M696.61,-59C696.61,-59 635.4,-59 635.4,-59 629.4,-59 623.4,-53 623.4,-47 623.4,-47 623.4,-35 623.4,-35 623.4,-29 629.4,-23 635.4,-23 635.4,-23 696.61,-23 696.61,-23 702.61,-23 708.61,-29 708.61,-35 708.61,-35 708.61,-47 708.61,-47 708.61,-53 702.61,-59 696.61,-59&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;666.01&quot; y=&quot;-36.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Deployment&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Modeling&amp;#45;&amp;gt;Deployment --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Modeling-&gt;Deployment&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M587.65,-41C595.24,-41 603.45,-41 611.59,-41&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;611.46,-44.5 621.46,-41 611.46,-37.5 611.46,-44.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Domain Expertise --&gt;
&lt;g id=&quot;node7&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Domain Expertise&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M213.06,-36C213.06,-36 119.59,-36 119.59,-36 113.59,-36 107.59,-30 107.59,-24 107.59,-24 107.59,-12 107.59,-12 107.59,-6 113.59,0 119.59,0 119.59,0 213.06,0 213.06,0 219.06,0 225.06,-6 225.06,-12 225.06,-12 225.06,-24 225.06,-24 225.06,-30 219.06,-36 213.06,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;166.33&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Domain Expertise&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Domain Expertise&amp;#45;&amp;gt;EDA --&gt;
&lt;g id=&quot;edge6&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Domain Expertise-&gt;EDA&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M215.34,-36.44C226.95,-40.91 239.18,-45.61 250.19,-49.84&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;248.73,-53.02 259.32,-53.34 251.24,-46.49 248.73,-53.02&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Domain Expertise&amp;#45;&amp;gt;Modeling --&gt;
&lt;g id=&quot;edge7&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Domain Expertise-&gt;Modeling&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M225.21,-21.47C301.89,-26.06 435.59,-34.07 505.55,-38.27&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;504.92,-41.73 515.11,-38.84 505.34,-34.75 504.92,-41.73&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Interdisciplinary: combines statistics, computer science, and domain knowledge&lt;/li&gt;
&lt;li&gt;End-to-end: covers full pipeline from raw data to production insights&lt;/li&gt;
&lt;li&gt;Iterative: requires constant refinement of models and features&lt;/li&gt;
&lt;li&gt;Data-driven: relies on empirical evidence rather than assumptions&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Data_Science Pages: 1 --&gt;
&lt;svg width=&quot;178pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 178.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Data_Science&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 174.12,-165.63 174.12,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;65.63&quot; cy=&quot;-86.21&quot; rx=&quot;61.79&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;65.63&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Data Science&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;109.53&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;109.53&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M79.28,-104.06C84.62,-111.04 90.72,-119.02 96.04,-125.98&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;68.62&quot; y=&quot;-119.22&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;41.67&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;41.67&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.21,-67.93C55.72,-57.98 51.42,-45.73 47.95,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;83.33&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../data-wrangling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-wrangling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Wrangling&lt;/a&gt; — foundational step for all data science work&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../data-modeling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-modeling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Modeling&lt;/a&gt; — core output of data science pipelines&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../exploratory-data-analysis&quot; class=&quot;internal alias&quot; data-slug=&quot;exploratory-data-analysis&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;EDA&lt;/a&gt; — critical exploratory phase&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../feature-engineering&quot; class=&quot;internal alias&quot; data-slug=&quot;feature-engineering&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Feature Engineering&lt;/a&gt; — key preparatory step for modeling&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Confusing correlation with causation in insights&lt;/li&gt;
&lt;li&gt;Overfitting models to training data&lt;/li&gt;
&lt;li&gt;Ignoring domain expertise in favor of pure technical approaches&lt;/li&gt;
&lt;li&gt;Neglecting data quality issues in raw sources&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>data-transformation</title>
    <link href="https://animishraa05.github.io/wiki/data-science/data-transformation" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/data-transformation.md" />
    <summary>The Problem Data is often in the wrong shape, scale, or format for the intended analysis or model algorithm.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Data is often in the wrong shape, scale, or format for the intended analysis or model algorithm.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Converting data from one format, structure, or scale to another to make it suitable for analysis and modeling.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Reshaping: pivot, melt, or cast data between wide and long formats&lt;/li&gt;
&lt;li&gt;Scaling: normalize (0-1) or standardize (mean=0, std=1) numeric features&lt;/li&gt;
&lt;li&gt;Encoding: convert categorical variables to numeric (one-hot, label encoding)&lt;/li&gt;
&lt;li&gt;Log/power transforms: handle skewed distributions&lt;/li&gt;
&lt;li&gt;Aggregation: group by dimensions and compute summary statistics&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;126pt&quot; height=&quot;404pt&quot; viewBox=&quot;0.00 0.00 126.00 404.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 400)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-400 122.23,-400 122.23,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Original Data --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Original Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M93.41,-396C93.41,-396 24.82,-396 24.82,-396 18.82,-396 12.82,-390 12.82,-384 12.82,-384 12.82,-372 12.82,-372 12.82,-366 18.82,-360 24.82,-360 24.82,-360 93.41,-360 93.41,-360 99.41,-360 105.41,-366 105.41,-372 105.41,-372 105.41,-384 105.41,-384 105.41,-390 99.41,-396 93.41,-396&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;59.12&quot; y=&quot;-373.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Original Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Reshape --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Reshape&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M78.83,-324C78.83,-324 39.4,-324 39.4,-324 33.4,-324 27.4,-318 27.4,-312 27.4,-312 27.4,-300 27.4,-300 27.4,-294 33.4,-288 39.4,-288 39.4,-288 78.83,-288 78.83,-288 84.83,-288 90.83,-294 90.83,-300 90.83,-300 90.83,-312 90.83,-312 90.83,-318 84.83,-324 78.83,-324&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;59.12&quot; y=&quot;-301.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Reshape&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Original Data&amp;#45;&amp;gt;Reshape --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Original Data-&gt;Reshape&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.12,-359.7C59.12,-352.41 59.12,-343.73 59.12,-335.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;62.62,-335.62 59.12,-325.62 55.62,-335.62 62.62,-335.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Scale/Encode --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Scale/Encode&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M93.21,-252C93.21,-252 25.02,-252 25.02,-252 19.02,-252 13.02,-246 13.02,-240 13.02,-240 13.02,-228 13.02,-228 13.02,-222 19.02,-216 25.02,-216 25.02,-216 93.21,-216 93.21,-216 99.21,-216 105.21,-222 105.21,-228 105.21,-228 105.21,-240 105.21,-240 105.21,-246 99.21,-252 93.21,-252&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;59.12&quot; y=&quot;-229.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Scale/Encode&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Reshape&amp;#45;&amp;gt;Scale/Encode --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Reshape-&gt;Scale/Encode&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.12,-287.7C59.12,-280.41 59.12,-271.73 59.12,-263.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;62.62,-263.62 59.12,-253.62 55.62,-263.62 62.62,-263.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Handle Skew --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Handle Skew&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M92.63,-180C92.63,-180 25.6,-180 25.6,-180 19.6,-180 13.6,-174 13.6,-168 13.6,-168 13.6,-156 13.6,-156 13.6,-150 19.6,-144 25.6,-144 25.6,-144 92.63,-144 92.63,-144 98.63,-144 104.63,-150 104.63,-156 104.63,-156 104.63,-168 104.63,-168 104.63,-174 98.63,-180 92.63,-180&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;59.12&quot; y=&quot;-157.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Handle Skew&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Scale/Encode&amp;#45;&amp;gt;Handle Skew --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Scale/Encode-&gt;Handle Skew&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.12,-215.7C59.12,-208.41 59.12,-199.73 59.12,-191.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;62.62,-191.62 59.12,-181.62 55.62,-191.62 62.62,-191.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Aggregate --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Aggregate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M84.27,-108C84.27,-108 33.96,-108 33.96,-108 27.96,-108 21.96,-102 21.96,-96 21.96,-96 21.96,-84 21.96,-84 21.96,-78 27.96,-72 33.96,-72 33.96,-72 84.27,-72 84.27,-72 90.27,-72 96.27,-78 96.27,-84 96.27,-84 96.27,-96 96.27,-96 96.27,-102 90.27,-108 84.27,-108&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;59.12&quot; y=&quot;-85.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Aggregate&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Handle Skew&amp;#45;&amp;gt;Aggregate --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Handle Skew-&gt;Aggregate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.12,-143.7C59.12,-136.41 59.12,-127.73 59.12,-119.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;62.62,-119.62 59.12,-109.62 55.62,-119.62 62.62,-119.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Transformed Data --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Transformed Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M106.23,-36C106.23,-36 12,-36 12,-36 6,-36 0,-30 0,-24 0,-24 0,-12 0,-12 0,-6 6,0 12,0 12,0 106.23,0 106.23,0 112.23,0 118.23,-6 118.23,-12 118.23,-12 118.23,-24 118.23,-24 118.23,-30 112.23,-36 106.23,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;59.12&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Transformed Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Aggregate&amp;#45;&amp;gt;Transformed Data --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Aggregate-&gt;Transformed Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.12,-71.7C59.12,-64.41 59.12,-55.73 59.12,-47.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;62.62,-47.62 59.12,-37.62 55.62,-47.62 62.62,-47.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Algorithm-dependent: some models require specific data shapes or scales&lt;/li&gt;
&lt;li&gt;Information-preserving: good transforms maintain relationships in data&lt;/li&gt;
&lt;li&gt;Reversible: many transforms can be undone (important for interpretability)&lt;/li&gt;
&lt;li&gt;Standardization: consistent transforms across train and test sets&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Data_Transformation Pages: 1 --&gt;
&lt;svg width=&quot;202pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 202.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Data_Transformation&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 197.54,-165.63 197.54,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;89.05&quot; cy=&quot;-86.21&quot; rx=&quot;89.05&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;89.05&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Data Transformation&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;132.95&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;132.95&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M102.94,-104.37C108.16,-111.21 114.09,-118.97 119.3,-125.77&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;92.08&quot; y=&quot;-119.27&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;65.09&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;65.09&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M82.63,-67.93C79.14,-57.98 74.83,-45.73 71.36,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;106.75&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../data-cleaning&quot; class=&quot;internal alias&quot; data-slug=&quot;data-cleaning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Cleaning&lt;/a&gt; — clean data is prerequisite&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../feature-engineering&quot; class=&quot;internal alias&quot; data-slug=&quot;feature-engineering&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Feature Engineering&lt;/a&gt; — transformed features become inputs&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-wrangling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-wrangling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Wrangling&lt;/a&gt; — transformation is a wrangling step&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../exploratory-data-analysis&quot; class=&quot;internal alias&quot; data-slug=&quot;exploratory-data-analysis&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;EDA&lt;/a&gt; — transforms often inspired by EDA findings&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Applying different transforms to train vs test sets causes data leakage&lt;/li&gt;
&lt;li&gt;One-hot encoding high-cardinality categoricals creates dimensionality explosion&lt;/li&gt;
&lt;li&gt;Standardization before train/test split causes information leakage&lt;/li&gt;
&lt;li&gt;Log transforms fail on zero or negative values without adjustment&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>data-visualization</title>
    <link href="https://animishraa05.github.io/wiki/data-science/data-visualization" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/data-visualization.md" />
    <summary>The Problem Tables of numbers are incomprehensible at scale — humans cannot intuitively grasp patterns, trends, or outliers from raw data.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Tables of numbers are incomprehensible at scale — humans cannot intuitively grasp patterns, trends, or outliers from raw data.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Representing data graphically to enable pattern recognition, comparison, and communication of insights.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Select chart type based on data and message (bar, line, scatter, heatmap)&lt;/li&gt;
&lt;li&gt;Map data variables to visual channels (x, y, color, size, shape)&lt;/li&gt;
&lt;li&gt;Apply design principles: minimize clutter, highlight key findings&lt;/li&gt;
&lt;li&gt;Iterate: refine based on what the audience needs to understand&lt;/li&gt;
&lt;li&gt;Communicate: use visualizations to tell a data-driven story&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;668pt&quot; height=&quot;44pt&quot; viewBox=&quot;0.00 0.00 668.00 44.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 40)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-40 664.31,-40 664.31,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Data --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M42,-36C42,-36 12,-36 12,-36 6,-36 0,-30 0,-24 0,-24 0,-12 0,-12 0,-6 6,0 12,0 12,0 42,0 42,0 48,0 54,-6 54,-12 54,-12 54,-24 54,-24 54,-30 48,-36 42,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;27&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Select Chart --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Select Chart&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M162.81,-36C162.81,-36 102,-36 102,-36 96,-36 90,-30 90,-24 90,-24 90,-12 90,-12 90,-6 96,0 102,0 102,0 162.81,0 162.81,0 168.81,0 174.81,-6 174.81,-12 174.81,-12 174.81,-24 174.81,-24 174.81,-30 168.81,-36 162.81,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;132.41&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Select Chart&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Data&amp;#45;&amp;gt;Select Chart --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Data-&gt;Select Chart&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M54.36,-18C61.77,-18 70.09,-18 78.46,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;78.31,-21.5 88.31,-18 78.31,-14.5 78.31,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Map Variables --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Map Variables&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M297.61,-36C297.61,-36 222.81,-36 222.81,-36 216.81,-36 210.81,-30 210.81,-24 210.81,-24 210.81,-12 210.81,-12 210.81,-6 216.81,0 222.81,0 222.81,0 297.61,0 297.61,0 303.61,0 309.61,-6 309.61,-12 309.61,-12 309.61,-24 309.61,-24 309.61,-30 303.61,-36 297.61,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;260.21&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Map Variables&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Select Chart&amp;#45;&amp;gt;Map Variables --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Select Chart-&gt;Map Variables&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M175.3,-18C182.97,-18 191.12,-18 199.21,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;199.02,-21.5 209.02,-18 199.02,-14.5 199.02,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Apply Design --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Apply Design&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M427.78,-36C427.78,-36 357.61,-36 357.61,-36 351.61,-36 345.61,-30 345.61,-24 345.61,-24 345.61,-12 345.61,-12 345.61,-6 351.61,0 357.61,0 357.61,0 427.78,0 427.78,0 433.78,0 439.78,-6 439.78,-12 439.78,-12 439.78,-24 439.78,-24 439.78,-30 433.78,-36 427.78,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;392.7&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Apply Design&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Map Variables&amp;#45;&amp;gt;Apply Design --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Map Variables-&gt;Apply Design&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M309.8,-18C317.68,-18 325.91,-18 333.98,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;333.72,-21.5 343.72,-18 333.72,-14.5 333.72,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Iterate --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Iterate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M517.78,-36C517.78,-36 487.78,-36 487.78,-36 481.78,-36 475.78,-30 475.78,-24 475.78,-24 475.78,-12 475.78,-12 475.78,-6 481.78,0 487.78,0 487.78,0 517.78,0 517.78,0 523.78,0 529.78,-6 529.78,-12 529.78,-12 529.78,-24 529.78,-24 529.78,-30 523.78,-36 517.78,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;502.78&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Iterate&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Apply Design&amp;#45;&amp;gt;Iterate --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Apply Design-&gt;Iterate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M440.16,-18C448.04,-18 456.15,-18 463.78,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;463.78,-21.5 473.78,-18 463.78,-14.5 463.78,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Communicate --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Communicate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M648.31,-36C648.31,-36 577.78,-36 577.78,-36 571.78,-36 565.78,-30 565.78,-24 565.78,-24 565.78,-12 565.78,-12 565.78,-6 571.78,0 577.78,0 577.78,0 648.31,0 648.31,0 654.31,0 660.31,-6 660.31,-12 660.31,-12 660.31,-24 660.31,-24 660.31,-30 654.31,-36 648.31,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;613.05&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Communicate&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Iterate&amp;#45;&amp;gt;Communicate --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Iterate-&gt;Communicate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M530.26,-18C537.58,-18 545.82,-18 554.17,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;554.06,-21.5 564.06,-18 554.06,-14.5 554.06,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Channel-effectiveness: some visual channels (position) are better than others (color)&lt;/li&gt;
&lt;li&gt;Audience-dependent: different charts for technical vs non-technical audiences&lt;/li&gt;
&lt;li&gt;Purpose-driven: exploratory (many charts, quick) vs explanatory (few charts, polished)&lt;/li&gt;
&lt;li&gt;Truth-telling: visualizations must accurately represent the underlying data&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Data_Visualization Pages: 1 --&gt;
&lt;svg width=&quot;192pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 192.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Data_Visualization&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 187.98,-165.63 187.98,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;79.49&quot; cy=&quot;-86.21&quot; rx=&quot;79.49&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;79.49&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Data Visualization&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;123.39&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;123.39&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M93.38,-104.37C98.61,-111.21 104.54,-118.97 109.74,-125.77&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;120.6&quot; y=&quot;-119.27&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;55.54&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;55.54&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M73.07,-67.93C69.58,-57.98 65.28,-45.73 61.81,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;97.19&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../exploratory-data-analysis&quot; class=&quot;internal alias&quot; data-slug=&quot;exploratory-data-analysis&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;EDA&lt;/a&gt; — visualization is EDA’s primary tool&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../data-science&quot; class=&quot;internal alias&quot; data-slug=&quot;data-science&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Science&lt;/a&gt; — communication is the final step&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../feature-engineering&quot; class=&quot;internal alias&quot; data-slug=&quot;feature-engineering&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Feature Engineering&lt;/a&gt; — visualizations reveal feature relationships&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-wrangling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-wrangling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Wrangling&lt;/a&gt; — visualize data quality issues&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Misleading axes (non-zero baselines, truncated ranges) distort perception&lt;/li&gt;
&lt;li&gt;Over-plotting in scatter plots hides density and patterns&lt;/li&gt;
&lt;li&gt;Color blindness: red-green comparisons are inaccessible&lt;/li&gt;
&lt;li&gt;Chart junk: unnecessary decorations distract from the data&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>data-wrangling</title>
    <link href="https://animishraa05.github.io/wiki/data-science/data-wrangling" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/data-wrangling.md" />
    <summary>The Problem Raw data is messy, incomplete, and unstructured — unusable for analysis or modeling without significant preprocessing.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Raw data is messy, incomplete, and unstructured — unusable for analysis or modeling without significant preprocessing.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;The process of cleaning, structuring, and enriching raw data into a usable format for analysis and modeling.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Data collection from disparate sources (CSV, APIs, databases)&lt;/li&gt;
&lt;li&gt;Cleaning: handling missing values, removing duplicates, fixing types&lt;/li&gt;
&lt;li&gt;Structuring: reshaping data into tidy format (rows=observations, columns=variables)&lt;/li&gt;
&lt;li&gt;Enriching: joining datasets, creating derived features&lt;/li&gt;
&lt;li&gt;Validating: ensuring data integrity before analysis&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;87pt&quot; height=&quot;404pt&quot; viewBox=&quot;0.00 0.00 87.00 404.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 400)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-400 82.58,-400 82.58,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Raw Data --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Raw Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M63.09,-396C63.09,-396 15.5,-396 15.5,-396 9.5,-396 3.5,-390 3.5,-384 3.5,-384 3.5,-372 3.5,-372 3.5,-366 9.5,-360 15.5,-360 15.5,-360 63.09,-360 63.09,-360 69.09,-360 75.09,-366 75.09,-372 75.09,-372 75.09,-384 75.09,-384 75.09,-390 69.09,-396 63.09,-396&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;39.29&quot; y=&quot;-373.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Raw Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Clean --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Clean&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M54.29,-324C54.29,-324 24.29,-324 24.29,-324 18.29,-324 12.29,-318 12.29,-312 12.29,-312 12.29,-300 12.29,-300 12.29,-294 18.29,-288 24.29,-288 24.29,-288 54.29,-288 54.29,-288 60.29,-288 66.29,-294 66.29,-300 66.29,-300 66.29,-312 66.29,-312 66.29,-318 60.29,-324 54.29,-324&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;39.29&quot; y=&quot;-301.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Clean&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Raw Data&amp;#45;&amp;gt;Clean --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Raw Data-&gt;Clean&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M39.29,-359.7C39.29,-352.41 39.29,-343.73 39.29,-335.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;42.79,-335.62 39.29,-325.62 35.79,-335.62 42.79,-335.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Structure --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Structure&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M60.95,-252C60.95,-252 17.63,-252 17.63,-252 11.63,-252 5.63,-246 5.63,-240 5.63,-240 5.63,-228 5.63,-228 5.63,-222 11.63,-216 17.63,-216 17.63,-216 60.95,-216 60.95,-216 66.95,-216 72.95,-222 72.95,-228 72.95,-228 72.95,-240 72.95,-240 72.95,-246 66.95,-252 60.95,-252&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;39.29&quot; y=&quot;-229.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Structure&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Clean&amp;#45;&amp;gt;Structure --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Clean-&gt;Structure&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M39.29,-287.7C39.29,-280.41 39.29,-271.73 39.29,-263.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;42.79,-263.62 39.29,-253.62 35.79,-263.62 42.79,-263.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Enrich --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Enrich&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M54.29,-180C54.29,-180 24.29,-180 24.29,-180 18.29,-180 12.29,-174 12.29,-168 12.29,-168 12.29,-156 12.29,-156 12.29,-150 18.29,-144 24.29,-144 24.29,-144 54.29,-144 54.29,-144 60.29,-144 66.29,-150 66.29,-156 66.29,-156 66.29,-168 66.29,-168 66.29,-174 60.29,-180 54.29,-180&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;39.29&quot; y=&quot;-157.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Enrich&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Structure&amp;#45;&amp;gt;Enrich --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Structure-&gt;Enrich&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M39.29,-215.7C39.29,-208.41 39.29,-199.73 39.29,-191.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;42.79,-191.62 39.29,-181.62 35.79,-191.62 42.79,-191.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Validate --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Validate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59,-108C59,-108 19.58,-108 19.58,-108 13.58,-108 7.58,-102 7.58,-96 7.58,-96 7.58,-84 7.58,-84 7.58,-78 13.58,-72 19.58,-72 19.58,-72 59,-72 59,-72 65,-72 71,-78 71,-84 71,-84 71,-96 71,-96 71,-102 65,-108 59,-108&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;39.29&quot; y=&quot;-85.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Validate&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Enrich&amp;#45;&amp;gt;Validate --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Enrich-&gt;Validate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M39.29,-143.7C39.29,-136.41 39.29,-127.73 39.29,-119.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;42.79,-119.62 39.29,-109.62 35.79,-119.62 42.79,-119.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Clean Data --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Clean Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M66.58,-36C66.58,-36 12,-36 12,-36 6,-36 0,-30 0,-24 0,-24 0,-12 0,-12 0,-6 6,0 12,0 12,0 66.58,0 66.58,0 72.58,0 78.58,-6 78.58,-12 78.58,-12 78.58,-24 78.58,-24 78.58,-30 72.58,-36 66.58,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;39.29&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Clean Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Validate&amp;#45;&amp;gt;Clean Data --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Validate-&gt;Clean Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M39.29,-71.7C39.29,-64.41 39.29,-55.73 39.29,-47.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;42.79,-47.62 39.29,-37.62 35.79,-47.62 42.79,-47.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Time-consuming: often 60-80% of data science work&lt;/li&gt;
&lt;li&gt;Iterative: multiple passes may be needed&lt;/li&gt;
&lt;li&gt;Source-dependent: each data source has unique quality issues&lt;/li&gt;
&lt;li&gt;Foundation: poor wrangling corrupts all downstream analysis&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Data_Wrangling Pages: 1 --&gt;
&lt;svg width=&quot;182pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 182.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Data_Wrangling&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 178.4,-165.63 178.4,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;69.92&quot; cy=&quot;-86.21&quot; rx=&quot;69.92&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;69.92&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Data Wrangling&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;113.81&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;113.81&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M83.57,-104.06C88.9,-111.04 95,-119.02 100.32,-125.98&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;72.9&quot; y=&quot;-119.22&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;45.96&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;45.96&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M63.5,-67.93C60.01,-57.98 55.7,-45.73 52.23,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;87.62&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../data-science&quot; class=&quot;internal alias&quot; data-slug=&quot;data-science&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Science&lt;/a&gt; — core component of the field&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../exploratory-data-analysis&quot; class=&quot;internal alias&quot; data-slug=&quot;exploratory-data-analysis&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;EDA&lt;/a&gt; — clean data enables exploration&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-cleaning&quot; class=&quot;internal alias&quot; data-slug=&quot;data-cleaning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Cleaning&lt;/a&gt; — subset focused on fixing errors&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-transformation&quot; class=&quot;internal alias&quot; data-slug=&quot;data-transformation&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Transformation&lt;/a&gt; — reshaping and converting data&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Over-cleaning can remove meaningful outliers&lt;/li&gt;
&lt;li&gt;Inconsistent cleaning across train/test sets causes leakage&lt;/li&gt;
&lt;li&gt;Assuming data types without validation (e.g., numeric IDs as integers)&lt;/li&gt;
&lt;li&gt;Not documenting wrangling steps for reproducibility&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>exploratory-data-analysis</title>
    <link href="https://animishraa05.github.io/wiki/data-science/exploratory-data-analysis" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/exploratory-data-analysis.md" />
    <summary>The Problem Without understanding data distributions, relationships, and patterns, any modeling approach is essentially guessing.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Without understanding data distributions, relationships, and patterns, any modeling approach is essentially guessing.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;An iterative process of summarizing, visualizing, and understanding data to formulate hypotheses and guide modeling decisions.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Univariate analysis: examine each variable’s distribution (histograms, box plots)&lt;/li&gt;
&lt;li&gt;Bivariate analysis: explore relationships between pairs of variables (scatter plots, correlation)&lt;/li&gt;
&lt;li&gt;Multivariate analysis: examine interactions between multiple variables&lt;/li&gt;
&lt;li&gt;Identify patterns: trends, seasonality, clusters, or anomalies&lt;/li&gt;
&lt;li&gt;Formulate hypotheses: guide feature engineering and model selection&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;200pt&quot; height=&quot;404pt&quot; viewBox=&quot;0.00 0.00 200.00 404.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 400)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-400 196.29,-400 196.29,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Data --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M42,-396C42,-396 12,-396 12,-396 6,-396 0,-390 0,-384 0,-384 0,-372 0,-372 0,-366 6,-360 12,-360 12,-360 42,-360 42,-360 48,-360 54,-366 54,-372 54,-372 54,-384 54,-384 54,-390 48,-396 42,-396&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;27&quot; y=&quot;-373.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Univariate --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Univariate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M72.54,-324C72.54,-324 21.46,-324 21.46,-324 15.46,-324 9.46,-318 9.46,-312 9.46,-312 9.46,-300 9.46,-300 9.46,-294 15.46,-288 21.46,-288 21.46,-288 72.54,-288 72.54,-288 78.54,-288 84.54,-294 84.54,-300 84.54,-300 84.54,-312 84.54,-312 84.54,-318 78.54,-324 72.54,-324&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;47&quot; y=&quot;-301.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Univariate&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Data&amp;#45;&amp;gt;Univariate --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Data-&gt;Univariate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M31.94,-359.7C34.08,-352.24 36.62,-343.32 39.01,-334.97&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;42.32,-336.14 41.7,-325.56 35.58,-334.21 42.32,-336.14&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Bivariate --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Bivariate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M110.66,-252C110.66,-252 67.34,-252 67.34,-252 61.34,-252 55.34,-246 55.34,-240 55.34,-240 55.34,-228 55.34,-228 55.34,-222 61.34,-216 67.34,-216 67.34,-216 110.66,-216 110.66,-216 116.66,-216 122.66,-222 122.66,-228 122.66,-228 122.66,-240 122.66,-240 122.66,-246 116.66,-252 110.66,-252&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;89&quot; y=&quot;-229.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Bivariate&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Univariate&amp;#45;&amp;gt;Bivariate --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Univariate-&gt;Bivariate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M57.38,-287.7C62.06,-279.9 67.69,-270.51 72.9,-261.83&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;75.81,-263.78 77.96,-253.4 69.81,-260.18 75.81,-263.78&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Multivariate --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Multivariate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M150.6,-180C150.6,-180 89.4,-180 89.4,-180 83.4,-180 77.4,-174 77.4,-168 77.4,-168 77.4,-156 77.4,-156 77.4,-150 83.4,-144 89.4,-144 89.4,-144 150.6,-144 150.6,-144 156.6,-144 162.6,-150 162.6,-156 162.6,-156 162.6,-168 162.6,-168 162.6,-174 156.6,-180 150.6,-180&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;120&quot; y=&quot;-157.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Multivariate&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Bivariate&amp;#45;&amp;gt;Multivariate --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Bivariate-&gt;Multivariate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M96.66,-215.7C100.04,-208.07 104.09,-198.92 107.87,-190.4&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;110.96,-192.05 111.81,-181.49 104.56,-189.21 110.96,-192.05&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Patterns --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Patterns&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M138.55,-108C138.55,-108 101.45,-108 101.45,-108 95.45,-108 89.45,-102 89.45,-96 89.45,-96 89.45,-84 89.45,-84 89.45,-78 95.45,-72 101.45,-72 101.45,-72 138.55,-72 138.55,-72 144.55,-72 150.55,-78 150.55,-84 150.55,-84 150.55,-96 150.55,-96 150.55,-102 144.55,-108 138.55,-108&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;120&quot; y=&quot;-85.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Patterns&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Multivariate&amp;#45;&amp;gt;Patterns --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Multivariate-&gt;Patterns&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M120,-143.7C120,-136.41 120,-127.73 120,-119.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;123.5,-119.62 120,-109.62 116.5,-119.62 123.5,-119.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Hypotheses --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Hypotheses&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M148.66,-36C148.66,-36 91.34,-36 91.34,-36 85.34,-36 79.34,-30 79.34,-24 79.34,-24 79.34,-12 79.34,-12 79.34,-6 85.34,0 91.34,0 91.34,0 148.66,0 148.66,0 154.66,0 160.66,-6 160.66,-12 160.66,-12 160.66,-24 160.66,-24 160.66,-30 154.66,-36 148.66,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;120&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Hypotheses&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Patterns&amp;#45;&amp;gt;Hypotheses --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Patterns-&gt;Hypotheses&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M120,-71.7C120,-64.41 120,-55.73 120,-47.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;123.5,-47.62 120,-37.62 116.5,-47.62 123.5,-47.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Data Visualization --&gt;
&lt;g id=&quot;node7&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Data Visualization&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M180.29,-396C180.29,-396 83.71,-396 83.71,-396 77.71,-396 71.71,-390 71.71,-384 71.71,-384 71.71,-372 71.71,-372 71.71,-366 77.71,-360 83.71,-360 83.71,-360 180.29,-360 180.29,-360 186.29,-360 192.29,-366 192.29,-372 192.29,-372 192.29,-384 192.29,-384 192.29,-390 186.29,-396 180.29,-396&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;132&quot; y=&quot;-373.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Data Visualization&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Data Visualization&amp;#45;&amp;gt;Univariate --&gt;
&lt;g id=&quot;edge6&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Data Visualization-&gt;Univariate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M110.99,-359.7C100.67,-351.2 88.06,-340.81 76.77,-331.51&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;79.18,-328.96 69.23,-325.31 74.73,-334.37 79.18,-328.96&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Data Visualization&amp;#45;&amp;gt;Bivariate --&gt;
&lt;g id=&quot;edge7&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Data Visualization-&gt;Bivariate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M126.73,-359.59C119.43,-335.5 106.19,-291.75 97.49,-263.03&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;100.87,-262.12 94.62,-253.56 94.17,-264.14 100.87,-262.12&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Data Visualization&amp;#45;&amp;gt;Multivariate --&gt;
&lt;g id=&quot;edge8&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Data Visualization-&gt;Multivariate&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M133.27,-359.54C135.13,-329.91 137.81,-267.95 132,-216 131.11,-208.03 129.49,-199.51 127.72,-191.68&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;131.12,-190.86 125.35,-181.97 124.32,-192.51 131.12,-190.86&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Hypothesis-generating: not for testing, but for discovering what to test&lt;/li&gt;
&lt;li&gt;Visual-first: human pattern recognition outperforms automated methods&lt;/li&gt;
&lt;li&gt;Iterative: findings lead to new questions and deeper exploration&lt;/li&gt;
&lt;li&gt;Open-ended: no fixed endpoint, driven by curiosity and domain knowledge&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Exploratory_Data_Analysis Pages: 1 --&gt;
&lt;svg width=&quot;205pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 205.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Exploratory_Data_Analysis&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 200.89,-165.63 200.89,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;92.41&quot; cy=&quot;-86.21&quot; rx=&quot;92.41&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;92.41&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Exploratory Data Ana&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;136.3&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;136.3&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M106.3,-104.37C111.52,-111.21 117.45,-118.97 122.66,-125.77&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;95.43&quot; y=&quot;-119.27&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;68.45&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;68.45&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M85.99,-67.93C82.5,-57.98 78.19,-45.73 74.72,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;110.11&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../data-wrangling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-wrangling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Wrangling&lt;/a&gt; — EDA requires clean, structured data&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../feature-engineering&quot; class=&quot;internal alias&quot; data-slug=&quot;feature-engineering&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Feature Engineering&lt;/a&gt; — EDA insights drive feature creation&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-visualization&quot; class=&quot;internal alias&quot; data-slug=&quot;data-visualization&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Visualization&lt;/a&gt; — EDA relies heavily on visualization&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-science&quot; class=&quot;internal alias&quot; data-slug=&quot;data-science&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Science&lt;/a&gt; — EDA is a core phase of the data science process&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Confirmation bias: seeing patterns that confirm pre-existing beliefs&lt;/li&gt;
&lt;li&gt;Over-interpreting random noise as meaningful patterns&lt;/li&gt;
&lt;li&gt;Not adjusting for multiple comparisons when exploring many relationships&lt;/li&gt;
&lt;li&gt;Ignoring data quality issues that distort EDA findings&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>feature-engineering</title>
    <link href="https://animishraa05.github.io/wiki/data-science/feature-engineering" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/feature-engineering.md" />
    <summary>The Problem Raw data rarely comes in a format that machine learning algorithms can use effectively — models are only as good as their inputs.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Raw data rarely comes in a format that machine learning algorithms can use effectively — models are only as good as their inputs.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Creating new input variables (features) from raw data that make machine learning algorithms work better.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Domain knowledge: create features based on expert understanding of the problem&lt;/li&gt;
&lt;li&gt;Mathematical transforms: polynomials, interactions, logarithms of existing features&lt;/li&gt;
&lt;li&gt;Aggregations: rolling windows, group-by statistics, time-based features&lt;/li&gt;
&lt;li&gt;Encodings: target encoding, frequency encoding, embedding representations&lt;/li&gt;
&lt;li&gt;Selection: keep only features that improve model performance&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;817pt&quot; height=&quot;98pt&quot; viewBox=&quot;0.00 0.00 817.00 98.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 94)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-94 812.67,-94 812.67,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Raw Features --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Raw Features&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M80.6,-90C80.6,-90 12.01,-90 12.01,-90 6.01,-90 0.01,-84 0.01,-78 0.01,-78 0.01,-66 0.01,-66 0.01,-60 6.01,-54 12.01,-54 12.01,-54 80.6,-54 80.6,-54 86.6,-54 92.6,-60 92.6,-66 92.6,-66 92.6,-78 92.6,-78 92.6,-84 86.6,-90 80.6,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;46.31&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Raw Features&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Domain Features --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Domain Features&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M228.64,-63C228.64,-63 140.61,-63 140.61,-63 134.61,-63 128.61,-57 128.61,-51 128.61,-51 128.61,-39 128.61,-39 128.61,-33 134.61,-27 140.61,-27 140.61,-27 228.64,-27 228.64,-27 234.64,-27 240.64,-33 240.64,-39 240.64,-39 240.64,-51 240.64,-51 240.64,-57 234.64,-63 228.64,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;184.63&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Domain Features&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Raw Features&amp;#45;&amp;gt;Domain Features --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Raw Features-&gt;Domain Features&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M93.08,-62.93C100.84,-61.4 109.04,-59.77 117.21,-58.15&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;117.66,-61.63 126.79,-56.26 116.3,-54.77 117.66,-61.63&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Math Transforms --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Math Transforms&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M378.23,-63C378.23,-63 288.64,-63 288.64,-63 282.64,-63 276.64,-57 276.64,-51 276.64,-51 276.64,-39 276.64,-39 276.64,-33 282.64,-27 288.64,-27 288.64,-27 378.23,-27 378.23,-27 384.23,-27 390.23,-33 390.23,-39 390.23,-39 390.23,-51 390.23,-51 390.23,-57 384.23,-63 378.23,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;333.44&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Math Transforms&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Domain Features&amp;#45;&amp;gt;Math Transforms --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Domain Features-&gt;Math Transforms&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M241.13,-45C248.97,-45 257.09,-45 265.12,-45&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;264.85,-48.5 274.85,-45 264.85,-41.5 264.85,-48.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Aggregations --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Aggregations&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M505.66,-63C505.66,-63 438.23,-63 438.23,-63 432.23,-63 426.23,-57 426.23,-51 426.23,-51 426.23,-39 426.23,-39 426.23,-33 432.23,-27 438.23,-27 438.23,-27 505.66,-27 505.66,-27 511.66,-27 517.66,-33 517.66,-39 517.66,-39 517.66,-51 517.66,-51 517.66,-57 511.66,-63 505.66,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;471.95&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Aggregations&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Math Transforms&amp;#45;&amp;gt;Aggregations --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Math Transforms-&gt;Aggregations&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M390.35,-45C398.27,-45 406.41,-45 414.34,-45&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;414.24,-48.5 424.24,-45 414.24,-41.5 414.24,-48.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Encodings --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Encodings&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M616.76,-63C616.76,-63 565.66,-63 565.66,-63 559.66,-63 553.66,-57 553.66,-51 553.66,-51 553.66,-39 553.66,-39 553.66,-33 559.66,-27 565.66,-27 565.66,-27 616.76,-27 616.76,-27 622.76,-27 628.76,-33 628.76,-39 628.76,-39 628.76,-51 628.76,-51 628.76,-57 622.76,-63 616.76,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;591.21&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Encodings&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Aggregations&amp;#45;&amp;gt;Encodings --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Aggregations-&gt;Encodings&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M517.95,-45C525.85,-45 534.09,-45 542.07,-45&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;541.99,-48.5 551.99,-45 541.99,-41.5 541.99,-48.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Model&amp;#45;Ready Features --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Model-Ready Features&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M796.67,-63C796.67,-63 676.76,-63 676.76,-63 670.76,-63 664.76,-57 664.76,-51 664.76,-51 664.76,-39 664.76,-39 664.76,-33 670.76,-27 676.76,-27 676.76,-27 796.67,-27 796.67,-27 802.67,-27 808.67,-33 808.67,-39 808.67,-39 808.67,-51 808.67,-51 808.67,-57 802.67,-63 796.67,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;736.72&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Model-Ready Features&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Encodings&amp;#45;&amp;gt;Model&amp;#45;Ready Features --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Encodings-&gt;Model-Ready Features&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M629.17,-45C636.59,-45 644.67,-45 652.95,-45&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;652.8,-48.5 662.8,-45 652.8,-41.5 652.8,-48.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- EDA Insights --&gt;
&lt;g id=&quot;node7&quot; class=&quot;node&quot;&gt;
&lt;title&gt;EDA Insights&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M80.61,-36C80.61,-36 12,-36 12,-36 6,-36 0,-30 0,-24 0,-24 0,-12 0,-12 0,-6 6,0 12,0 12,0 80.61,0 80.61,0 86.61,0 92.61,-6 92.61,-12 92.61,-12 92.61,-24 92.61,-24 92.61,-30 86.61,-36 80.61,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;46.31&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;EDA Insights&lt;/text&gt;
&lt;/g&gt;
&lt;!-- EDA Insights&amp;#45;&amp;gt;Domain Features --&gt;
&lt;g id=&quot;edge6&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;EDA Insights-&gt;Domain Features&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M93.08,-27.07C100.84,-28.6 109.04,-30.23 117.21,-31.85&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;116.3,-35.23 126.79,-33.74 117.66,-28.37 116.3,-35.23&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Model-critical: often more impactful than algorithm choice&lt;/li&gt;
&lt;li&gt;Domain-dependent: best features require understanding the problem context&lt;/li&gt;
&lt;li&gt;Creative: no fixed recipe, requires experimentation and intuition&lt;/li&gt;
&lt;li&gt;Computationally-expensive: complex features can slow training significantly&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Feature_Engineering Pages: 1 --&gt;
&lt;svg width=&quot;201pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 201.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Feature_Engineering&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 197.08,-165.63 197.08,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;88.59&quot; cy=&quot;-86.21&quot; rx=&quot;88.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;88.59&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Feature Engineering&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;132.49&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;132.49&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M102.48,-104.37C107.7,-111.21 113.64,-118.97 118.84,-125.77&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;91.62&quot; y=&quot;-119.27&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;64.63&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;64.63&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M82.17,-67.93C78.68,-57.98 74.38,-45.73 70.91,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;106.29&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../exploratory-data-analysis&quot; class=&quot;internal alias&quot; data-slug=&quot;exploratory-data-analysis&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;EDA&lt;/a&gt; — EDA reveals what features to create&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../data-modeling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-modeling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Modeling&lt;/a&gt; — engineered features are model inputs&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-transformation&quot; class=&quot;internal alias&quot; data-slug=&quot;data-transformation&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Transformation&lt;/a&gt; — transformation is a type of feature engineering&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-science&quot; class=&quot;internal alias&quot; data-slug=&quot;data-science&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Science&lt;/a&gt; — feature engineering bridges data and models&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Data leakage: creating features from test set information during training&lt;/li&gt;
&lt;li&gt;Overfitting: engineering too many features for small datasets&lt;/li&gt;
&lt;li&gt;Feature importance illusion: correlated features distort importance rankings&lt;/li&gt;
&lt;li&gt;Ignoring feature stability: features that change meaning over time&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>overfitting</title>
    <link href="https://animishraa05.github.io/wiki/data-science/overfitting" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/overfitting.md" />
    <summary>The Problem Models that perform perfectly on training data but fail on new data are useless in practice — they’ve memorized noise instead of learning patterns.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Models that perform perfectly on training data but fail on new data are useless in practice — they’ve memorized noise instead of learning patterns.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;When a model learns training data too well, including noise and idiosyncrasies, resulting in poor generalization to new data.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Model has high capacity (too many parameters relative to data)&lt;/li&gt;
&lt;li&gt;Trains to minimize training error, reaching near-zero training loss&lt;/li&gt;
&lt;li&gt;Model captures noise, outliers, and sampling artifacts as “patterns”&lt;/li&gt;
&lt;li&gt;On test data, these spurious patterns don’t generalize&lt;/li&gt;
&lt;li&gt;Gap between training and test performance becomes large&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;733pt&quot; height=&quot;125pt&quot; viewBox=&quot;0.00 0.00 733.00 125.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 121)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-121 728.99,-121 728.99,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- High Capacity Model --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;High Capacity Model&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M125.31,-117C125.31,-117 12,-117 12,-117 6,-117 0,-111 0,-105 0,-105 0,-93 0,-93 0,-87 6,-81 12,-81 12,-81 125.31,-81 125.31,-81 131.31,-81 137.31,-87 137.31,-93 137.31,-93 137.31,-105 137.31,-105 137.31,-111 131.31,-117 125.31,-117&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;68.66&quot; y=&quot;-94.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;High Capacity Model&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Fits Training Data Perfectly --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Fits Training Data Perfectly&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M333.99,-90C333.99,-90 185.31,-90 185.31,-90 179.31,-90 173.31,-84 173.31,-78 173.31,-78 173.31,-66 173.31,-66 173.31,-60 179.31,-54 185.31,-54 185.31,-54 333.99,-54 333.99,-54 339.99,-54 345.99,-60 345.99,-66 345.99,-66 345.99,-78 345.99,-78 345.99,-84 339.99,-90 333.99,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;259.65&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Fits Training Data Perfectly&lt;/text&gt;
&lt;/g&gt;
&lt;!-- High Capacity Model&amp;#45;&amp;gt;Fits Training Data Perfectly --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;High Capacity Model-&gt;Fits Training Data Perfectly&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M137.62,-89.29C145.39,-88.18 153.42,-87.03 161.47,-85.88&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;161.95,-89.35 171.35,-84.47 160.96,-82.42 161.95,-89.35&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Captures Noise + Patterns --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Captures Noise + Patterns&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M531.92,-90C531.92,-90 393.99,-90 393.99,-90 387.99,-90 381.99,-84 381.99,-78 381.99,-78 381.99,-66 381.99,-66 381.99,-60 387.99,-54 393.99,-54 393.99,-54 531.92,-54 531.92,-54 537.92,-54 543.92,-60 543.92,-66 543.92,-66 543.92,-78 543.92,-78 543.92,-84 537.92,-90 531.92,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;462.95&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Captures Noise + Patterns&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Fits Training Data Perfectly&amp;#45;&amp;gt;Captures Noise + Patterns --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Fits Training Data Perfectly-&gt;Captures Noise + Patterns&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M346.31,-72C354.31,-72 362.44,-72 370.49,-72&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;370.29,-75.5 380.29,-72 370.29,-68.5 370.29,-75.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Poor Test Performance --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Poor Test Performance&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M712.99,-63C712.99,-63 591.92,-63 591.92,-63 585.92,-63 579.92,-57 579.92,-51 579.92,-51 579.92,-39 579.92,-39 579.92,-33 585.92,-27 591.92,-27 591.92,-27 712.99,-27 712.99,-27 718.99,-27 724.99,-33 724.99,-39 724.99,-39 724.99,-51 724.99,-51 724.99,-57 718.99,-63 712.99,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;652.45&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Poor Test Performance&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Captures Noise + Patterns&amp;#45;&amp;gt;Poor Test Performance --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Captures Noise + Patterns-&gt;Poor Test Performance&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M544.29,-60.43C552.26,-59.28 560.36,-58.12 568.36,-56.97&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;568.68,-60.46 578.08,-55.57 567.68,-53.53 568.68,-60.46&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Low Training Error --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Low Training Error&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M119.86,-63C119.86,-63 17.45,-63 17.45,-63 11.45,-63 5.45,-57 5.45,-51 5.45,-51 5.45,-39 5.45,-39 5.45,-33 11.45,-27 17.45,-27 17.45,-27 119.86,-27 119.86,-27 125.86,-27 131.86,-33 131.86,-39 131.86,-39 131.86,-51 131.86,-51 131.86,-57 125.86,-63 119.86,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;68.66&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Low Training Error&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Low Training Error&amp;#45;&amp;gt;Fits Training Data Perfectly --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Low Training Error-&gt;Fits Training Data Perfectly&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M132.33,-53.95C141.77,-55.3 151.7,-56.72 161.66,-58.14&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;161.01,-61.59 171.41,-59.54 162,-54.66 161.01,-61.59&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- High Test Error --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;High Test Error&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M503.27,-36C503.27,-36 422.63,-36 422.63,-36 416.63,-36 410.63,-30 410.63,-24 410.63,-24 410.63,-12 410.63,-12 410.63,-6 416.63,0 422.63,0 422.63,0 503.27,0 503.27,0 509.27,0 515.27,-6 515.27,-12 515.27,-12 515.27,-24 515.27,-24 515.27,-30 509.27,-36 503.27,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;462.95&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;High Test Error&lt;/text&gt;
&lt;/g&gt;
&lt;!-- High Test Error&amp;#45;&amp;gt;Poor Test Performance --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;High Test Error-&gt;Poor Test Performance&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M515.68,-25.45C531.94,-27.79 550.33,-30.44 568.2,-33.01&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;567.65,-36.47 578.04,-34.43 568.64,-29.54 567.65,-36.47&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Capacity-driven: more parameters + less data = higher overfitting risk&lt;/li&gt;
&lt;li&gt;Detectable: large train-test performance gap is the signature&lt;/li&gt;
&lt;li&gt;Reducible: regularization, more data, or simpler models can fix it&lt;/li&gt;
&lt;li&gt;Universal: affects all machine learning models to some degree&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Overfitting Pages: 1 --&gt;
&lt;svg width=&quot;178pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 178.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Overfitting&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 174.12,-165.63 174.12,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;65.63&quot; cy=&quot;-86.21&quot; rx=&quot;49.82&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;65.63&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Overfitting&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;109.53&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;109.53&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M79.04,-103.75C84.39,-110.74 90.53,-118.78 95.9,-125.8&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;106.51&quot; y=&quot;-102.17&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;41.67&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;41.67&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.21,-67.93C55.72,-57.98 51.42,-45.73 47.95,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;83.33&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../train-test-split&quot; class=&quot;internal alias&quot; data-slug=&quot;train-test-split&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Train-Test Split&lt;/a&gt; — the tool to detect overfitting&lt;/li&gt;
&lt;li&gt;Contrasts with: &lt;a href=&quot;../../underfitting&quot; class=&quot;internal alias&quot; data-slug=&quot;underfitting&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Underfitting&lt;/a&gt; — opposite problem (model too simple)&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../supervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;supervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Supervised Learning&lt;/a&gt; — overfitting is a supervised learning risk&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../cross-validation&quot; class=&quot;internal alias&quot; data-slug=&quot;cross-validation&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Cross-Validation&lt;/a&gt; — helps detect and mitigate overfitting&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Overfitting can happen even with simple models on very small datasets&lt;/li&gt;
&lt;li&gt;Data augmentation and regularization can mask underlying overfitting&lt;/li&gt;
&lt;li&gt;Validation set overfitting: tuning hyperparameters too aggressively on validation set&lt;/li&gt;
&lt;li&gt;Multiple comparison problem: testing many models increases chance of “significant” overfitting&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>regression</title>
    <link href="https://animishraa05.github.io/wiki/data-science/regression" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/regression.md" />
    <summary>The Problem We need to predict a continuous numeric value (price, temperature, probability) but the relationship between inputs and output is complex.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-05-06T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>May 06, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;We need to predict a continuous numeric value (price, temperature, probability) but the relationship between inputs and output is complex.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Supervised learning task where the goal is to predict a continuous numeric output variable from input features.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Collect labeled data: features X and continuous target y&lt;/li&gt;
&lt;li&gt;Choose regression model: linear regression, decision trees, neural networks, etc.&lt;/li&gt;
&lt;li&gt;Define loss function: typically mean squared error (MSE) or mean absolute error (MAE)&lt;/li&gt;
&lt;li&gt;Train: find model parameters that minimize average prediction error&lt;/li&gt;
&lt;li&gt;Predict: for new inputs, compute continuous output value&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;454pt&quot; height=&quot;152pt&quot; viewBox=&quot;0.00 0.00 454.00 152.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 148)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-148 449.86,-148 449.86,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Features (X) --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Features (X)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M77.87,-36C77.87,-36 15.5,-36 15.5,-36 9.5,-36 3.5,-30 3.5,-24 3.5,-24 3.5,-12 3.5,-12 3.5,-6 9.5,0 15.5,0 15.5,0 77.87,0 77.87,0 83.87,0 89.87,-6 89.87,-12 89.87,-12 89.87,-24 89.87,-24 89.87,-30 83.87,-36 77.87,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;46.68&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Features (X)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Regression Model --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Regression Model&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M236.03,-36C236.03,-36 141.77,-36 141.77,-36 135.77,-36 129.77,-30 129.77,-24 129.77,-24 129.77,-12 129.77,-12 129.77,-6 135.77,0 141.77,0 141.77,0 236.03,0 236.03,0 242.03,0 248.03,-6 248.03,-12 248.03,-12 248.03,-24 248.03,-24 248.03,-30 242.03,-36 236.03,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;188.9&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Regression Model&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Features (X)&amp;#45;&amp;gt;Regression Model --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Features (X)-&gt;Regression Model&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M90.13,-18C98.9,-18 108.36,-18 117.81,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;117.78,-21.5 127.78,-18 117.78,-14.5 117.78,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Continuous Prediction (ŷ) --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Continuous Prediction (ŷ)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M433.86,-36C433.86,-36 296.43,-36 296.43,-36 290.43,-36 284.43,-30 284.43,-24 284.43,-24 284.43,-12 284.43,-12 284.43,-6 290.43,0 296.43,0 296.43,0 433.86,0 433.86,0 439.86,0 445.86,-6 445.86,-12 445.86,-12 445.86,-24 445.86,-24 445.86,-30 439.86,-36 433.86,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;365.15&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Continuous Prediction (ŷ)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Regression Model&amp;#45;&amp;gt;Continuous Prediction (ŷ) --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Regression Model-&gt;Continuous Prediction (ŷ)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M248.4,-18C256.29,-18 264.53,-18 272.81,-18&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;272.6,-21.5 282.6,-18 272.6,-14.5 272.6,-21.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Targets (y) --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Targets (y)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M73.59,-144C73.59,-144 19.78,-144 19.78,-144 13.78,-144 7.78,-138 7.78,-132 7.78,-132 7.78,-120 7.78,-120 7.78,-114 13.78,-108 19.78,-108 19.78,-108 73.59,-108 73.59,-108 79.59,-108 85.59,-114 85.59,-120 85.59,-120 85.59,-132 85.59,-132 85.59,-138 79.59,-144 73.59,-144&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;46.68&quot; y=&quot;-121.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Targets (y)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Loss (MSE/MAE) --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Loss (MSE/MAE)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M236.43,-117C236.43,-117 141.37,-117 141.37,-117 135.37,-117 129.37,-111 129.37,-105 129.37,-105 129.37,-93 129.37,-93 129.37,-87 135.37,-81 141.37,-81 141.37,-81 236.43,-81 236.43,-81 242.43,-81 248.43,-87 248.43,-93 248.43,-93 248.43,-105 248.43,-105 248.43,-111 242.43,-117 236.43,-117&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;188.9&quot; y=&quot;-94.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Loss (MSE/MAE)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Targets (y)&amp;#45;&amp;gt;Loss (MSE/MAE) --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Targets (y)-&gt;Loss (MSE/MAE)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M86,-118.62C95.97,-116.7 107.03,-114.57 118.09,-112.44&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;118.45,-115.94 127.61,-110.61 117.13,-109.06 118.45,-115.94&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Optimize --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Optimize&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M387.19,-117C387.19,-117 343.1,-117 343.1,-117 337.1,-117 331.1,-111 331.1,-105 331.1,-105 331.1,-93 331.1,-93 331.1,-87 337.1,-81 343.1,-81 343.1,-81 387.19,-81 387.19,-81 393.19,-81 399.19,-87 399.19,-93 399.19,-93 399.19,-105 399.19,-105 399.19,-111 393.19,-117 387.19,-117&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;365.15&quot; y=&quot;-94.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Optimize&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Loss (MSE/MAE)&amp;#45;&amp;gt;Optimize --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Loss (MSE/MAE)-&gt;Optimize&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M248.89,-99C271.88,-99 297.8,-99 319.23,-99&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;319.11,-102.5 329.11,-99 319.11,-95.5 319.11,-102.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Prediction (ŷ) --&gt;
&lt;g id=&quot;node7&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Prediction (ŷ)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M81.37,-90C81.37,-90 12,-90 12,-90 6,-90 0,-84 0,-78 0,-78 0,-66 0,-66 0,-60 6,-54 12,-54 12,-54 81.37,-54 81.37,-54 87.37,-54 93.37,-60 93.37,-66 93.37,-66 93.37,-78 93.37,-78 93.37,-84 87.37,-90 81.37,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;46.68&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Prediction (ŷ)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Prediction (ŷ)&amp;#45;&amp;gt;Loss (MSE/MAE) --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Prediction (ŷ)-&gt;Loss (MSE/MAE)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M93.6,-80.84C101.39,-82.34 109.65,-83.93 117.9,-85.52&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;117.13,-88.94 127.62,-87.39 118.46,-82.06 117.13,-88.94&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Continuous output: predicts values on a real-valued scale (not categories)&lt;/li&gt;
&lt;li&gt;Probabilistic: can model uncertainty via prediction intervals&lt;/li&gt;
&lt;li&gt;Interpretable: linear regression coefficients show feature importance directly&lt;/li&gt;
&lt;li&gt;Metric-dependent: MSE penalizes large errors more than MAE&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Regression Pages: 1 --&gt;
&lt;svg width=&quot;178pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 178.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Regression&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 174.12,-165.63 174.12,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;65.63&quot; cy=&quot;-86.21&quot; rx=&quot;54.13&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;65.63&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Regression&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;109.53&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;109.53&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M79.28,-104.06C84.62,-111.04 90.72,-119.02 96.04,-125.98&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;106.7&quot; y=&quot;-102.42&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;41.67&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;41.67&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.21,-67.93C55.72,-57.98 51.42,-45.73 47.95,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;83.33&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../supervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;supervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Supervised Learning&lt;/a&gt; — regression is a supervised task&lt;/li&gt;
&lt;li&gt;Contrasts with: &lt;a href=&quot;../../classification&quot; class=&quot;internal alias&quot; data-slug=&quot;classification&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Classification&lt;/a&gt; — predicts categories instead of numbers&lt;/li&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../decision-tree-structure&quot; class=&quot;internal alias&quot; data-slug=&quot;decision-tree-structure&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Decision Tree Structure&lt;/a&gt; — trees solve regression via leaf mean values&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../decision-tree-flexibility&quot; class=&quot;internal alias&quot; data-slug=&quot;decision-tree-flexibility&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Decision Tree Flexibility&lt;/a&gt; — trees handle both classification and regression&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../train-test-split&quot; class=&quot;internal alias&quot; data-slug=&quot;train-test-split&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Train-Test Split&lt;/a&gt; — regression models need held-out evaluation&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../overfitting&quot; class=&quot;internal alias&quot; data-slug=&quot;overfitting&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Overfitting&lt;/a&gt; — regression models can overfit with too many features&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Heteroscedasticity: error variance changes with input values (violates OLS assumptions)&lt;/li&gt;
&lt;li&gt;Multicollinearity: correlated features distort coefficient estimates&lt;/li&gt;
&lt;li&gt;Outliers: heavily influence linear regression (consider robust regression)&lt;/li&gt;
&lt;li&gt;Non-linearity: linear regression fails when true relationship is curved&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>supervised-learning</title>
    <link href="https://animishraa05.github.io/wiki/data-science/supervised-learning" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/supervised-learning.md" />
    <summary>The Problem We need to predict an output variable (price, category, probability) given input features, but the relationship is too complex to code manually.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-05-06T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>May 06, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;We need to predict an output variable (price, category, probability) given input features, but the relationship is too complex to code manually.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Machine learning paradigm where models learn a mapping from input features to output labels using labeled training examples.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Collect labeled data: input features X and correct output labels y&lt;/li&gt;
&lt;li&gt;Choose model family: decision trees, linear models, neural networks, etc.&lt;/li&gt;
&lt;li&gt;Define loss function: measure prediction error (MSE for regression, cross-entropy for classification, impurity for trees)&lt;/li&gt;
&lt;li&gt;Optimize: adjust model parameters to minimize loss on training data&lt;/li&gt;
&lt;li&gt;Validate: assess generalization to unseen data&lt;/li&gt;
&lt;/ol&gt;
&lt;p dir=&quot;auto&quot;&gt;&lt;strong&gt;Decision trees&lt;/strong&gt; use a different approach: instead of optimizing parameters, they recursively partition the data using attribute tests (Information Gain or Gini Index) until pure subsets are reached. This makes them interpretable but prone to overfitting without pruning.&lt;/p&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;555pt&quot; height=&quot;98pt&quot; viewBox=&quot;0.00 0.00 555.00 98.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 94)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-94 551,-94 551,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Features (X) --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Features (X)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M74.36,-90C74.36,-90 12,-90 12,-90 6,-90 0,-84 0,-78 0,-78 0,-66 0,-66 0,-60 6,-54 12,-54 12,-54 74.36,-54 74.36,-54 80.36,-54 86.36,-60 86.36,-66 86.36,-66 86.36,-78 86.36,-78 86.36,-84 80.36,-90 74.36,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;43.18&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Features (X)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Model --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Model&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M164.36,-90C164.36,-90 134.36,-90 134.36,-90 128.36,-90 122.36,-84 122.36,-78 122.36,-78 122.36,-66 122.36,-66 122.36,-60 128.36,-54 134.36,-54 134.36,-54 164.36,-54 164.36,-54 170.36,-54 176.36,-60 176.36,-66 176.36,-66 176.36,-78 176.36,-78 176.36,-84 170.36,-90 164.36,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;149.36&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Model&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Features (X)&amp;#45;&amp;gt;Model --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Features (X)-&gt;Model&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M86.86,-72C94.77,-72 102.98,-72 110.73,-72&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;110.52,-75.5 120.52,-72 110.52,-68.5 110.52,-75.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Predictions (ŷ) --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Predictions (ŷ)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M299.18,-90C299.18,-90 224.36,-90 224.36,-90 218.36,-90 212.36,-84 212.36,-78 212.36,-78 212.36,-66 212.36,-66 212.36,-60 218.36,-54 224.36,-54 224.36,-54 299.18,-54 299.18,-54 305.18,-54 311.18,-60 311.18,-66 311.18,-66 311.18,-78 311.18,-78 311.18,-84 305.18,-90 299.18,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;261.77&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Predictions (ŷ)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Model&amp;#45;&amp;gt;Predictions (ŷ) --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Model-&gt;Predictions (ŷ)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M176.81,-72C184.09,-72 192.3,-72 200.65,-72&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;200.56,-75.5 210.56,-72 200.56,-68.5 200.56,-75.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Loss Function --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Loss Function&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M430.91,-63C430.91,-63 359.18,-63 359.18,-63 353.18,-63 347.18,-57 347.18,-51 347.18,-51 347.18,-39 347.18,-39 347.18,-33 353.18,-27 359.18,-27 359.18,-27 430.91,-27 430.91,-27 436.91,-27 442.91,-33 442.91,-39 442.91,-39 442.91,-51 442.91,-51 442.91,-57 436.91,-63 430.91,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;395.04&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Loss Function&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Predictions (ŷ)&amp;#45;&amp;gt;Loss Function --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Predictions (ŷ)-&gt;Loss Function&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M311.65,-61.95C319.48,-60.34 327.65,-58.66 335.67,-57.01&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;336.29,-60.45 345.38,-55.01 334.88,-53.59 336.29,-60.45&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Labels (y) --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Labels (y)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M286.34,-36C286.34,-36 237.2,-36 237.2,-36 231.2,-36 225.2,-30 225.2,-24 225.2,-24 225.2,-12 225.2,-12 225.2,-6 231.2,0 237.2,0 237.2,0 286.34,0 286.34,0 292.34,0 298.34,-6 298.34,-12 298.34,-12 298.34,-24 298.34,-24 298.34,-30 292.34,-36 286.34,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;261.77&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Labels (y)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Labels (y)&amp;#45;&amp;gt;Loss Function --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Labels (y)-&gt;Loss Function&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M298.64,-25.38C310.15,-27.74 323.21,-30.43 335.89,-33.04&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;334.9,-36.41 345.4,-35 336.31,-29.55 334.9,-36.41&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Optimize --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Optimize&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M535,-63C535,-63 490.91,-63 490.91,-63 484.91,-63 478.91,-57 478.91,-51 478.91,-51 478.91,-39 478.91,-39 478.91,-33 484.91,-27 490.91,-27 490.91,-27 535,-27 535,-27 541,-27 547,-33 547,-39 547,-39 547,-51 547,-51 547,-57 541,-63 535,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;512.96&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Optimize&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Loss Function&amp;#45;&amp;gt;Optimize --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Loss Function-&gt;Optimize&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M443.19,-45C451.19,-45 459.48,-45 467.41,-45&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;467.19,-48.5 477.19,-45 467.19,-41.5 467.19,-48.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Labeled data required: need ground truth for every training example&lt;/li&gt;
&lt;li&gt;Generalization goal: minimize error on unseen data, not just training data&lt;/li&gt;
&lt;li&gt;Bias-variance tradeoff: simpler models have high bias, complex models have high variance&lt;/li&gt;
&lt;li&gt;Inductive: learns specific-to-general mapping from examples&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Supervised_Learning Pages: 1 --&gt;
&lt;svg width=&quot;202pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 202.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Supervised_Learning&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 198.04,-165.63 198.04,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;89.55&quot; cy=&quot;-86.21&quot; rx=&quot;89.55&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;89.55&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Supervised Learning&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;133.45&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;133.45&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M103.44,-104.37C108.66,-111.21 114.6,-118.97 119.8,-125.77&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;92.58&quot; y=&quot;-119.27&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;65.59&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;65.59&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M83.13,-67.93C79.64,-57.98 75.33,-45.73 71.87,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;107.25&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../data-modeling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-modeling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Modeling&lt;/a&gt; — supervised learning is a modeling approach&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../regression&quot; class=&quot;internal alias&quot; data-slug=&quot;regression&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Regression&lt;/a&gt; — supervised task for continuous outputs&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../classification&quot; class=&quot;internal alias&quot; data-slug=&quot;classification&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Classification&lt;/a&gt; — supervised task for categorical outputs&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../decision-tree-structure&quot; class=&quot;internal alias&quot; data-slug=&quot;decision-tree-structure&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Decision Tree Structure&lt;/a&gt; — trees are a supervised algorithm&lt;/li&gt;
&lt;li&gt;Builds into: &lt;a href=&quot;../../id3-algorithm&quot; class=&quot;internal alias&quot; data-slug=&quot;id3-algorithm&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;ID3 Algorithm&lt;/a&gt; — foundational decision tree construction method&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../train-test-split&quot; class=&quot;internal alias&quot; data-slug=&quot;train-test-split&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Train-Test Split&lt;/a&gt; — supervised learning requires careful data splitting&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../decision-tree-interpretability&quot; class=&quot;internal alias&quot; data-slug=&quot;decision-tree-interpretability&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Decision Tree Interpretability&lt;/a&gt; — trees offer inherent explainability&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Label noise: incorrect labels mislead the model&lt;/li&gt;
&lt;li&gt;Class imbalance: rare classes get ignored by models optimizing overall accuracy&lt;/li&gt;
&lt;li&gt;Concept drift: relationship between X and y changes over time&lt;/li&gt;
&lt;li&gt;Covariate shift: training and test data have different feature distributions&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>train-test-split</title>
    <link href="https://animishraa05.github.io/wiki/data-science/train-test-split" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/train-test-split.md" />
    <summary>The Problem Models can memorize training data and appear perfect, but fail on new data — we need a way to estimate real-world performance.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Models can memorize training data and appear perfect, but fail on new data — we need a way to estimate real-world performance.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Dividing a dataset into separate subsets for training (learning parameters) and testing (evaluating generalization) to detect overfitting.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Randomly shuffle data to remove ordering effects&lt;/li&gt;
&lt;li&gt;Split: typically 70-80% train, 20-30% test (or 60-20-20 train-val-test)&lt;/li&gt;
&lt;li&gt;Train model exclusively on training set&lt;/li&gt;
&lt;li&gt;Evaluate model exclusively on test set (never seen during training)&lt;/li&gt;
&lt;li&gt;Use test performance as estimate of real-world performance&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;379pt&quot; height=&quot;260pt&quot; viewBox=&quot;0.00 0.00 379.00 260.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 256)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-256 375.12,-256 375.12,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Full Dataset --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Full Dataset&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M175.4,-252C175.4,-252 115.35,-252 115.35,-252 109.35,-252 103.35,-246 103.35,-240 103.35,-240 103.35,-228 103.35,-228 103.35,-222 109.35,-216 115.35,-216 115.35,-216 175.4,-216 175.4,-216 181.4,-216 187.4,-222 187.4,-228 187.4,-228 187.4,-240 187.4,-240 187.4,-246 181.4,-252 175.4,-252&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;145.37&quot; y=&quot;-229.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Full Dataset&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Shuffle --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Shuffle&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M161.98,-180C161.98,-180 128.77,-180 128.77,-180 122.77,-180 116.77,-174 116.77,-168 116.77,-168 116.77,-156 116.77,-156 116.77,-150 122.77,-144 128.77,-144 128.77,-144 161.98,-144 161.98,-144 167.98,-144 173.98,-150 173.98,-156 173.98,-156 173.98,-168 173.98,-168 173.98,-174 167.98,-180 161.98,-180&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;145.37&quot; y=&quot;-157.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Shuffle&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Full Dataset&amp;#45;&amp;gt;Shuffle --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Full Dataset-&gt;Shuffle&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M145.37,-215.7C145.37,-208.41 145.37,-199.73 145.37,-191.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;148.87,-191.62 145.37,-181.62 141.87,-191.62 148.87,-191.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Split --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Split&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M160.37,-108C160.37,-108 130.37,-108 130.37,-108 124.37,-108 118.37,-102 118.37,-96 118.37,-96 118.37,-84 118.37,-84 118.37,-78 124.37,-72 130.37,-72 130.37,-72 160.37,-72 160.37,-72 166.37,-72 172.37,-78 172.37,-84 172.37,-84 172.37,-96 172.37,-96 172.37,-102 166.37,-108 160.37,-108&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;145.37&quot; y=&quot;-85.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Split&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Shuffle&amp;#45;&amp;gt;Split --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Shuffle-&gt;Split&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M145.37,-143.7C145.37,-136.41 145.37,-127.73 145.37,-119.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;148.87,-119.62 145.37,-109.62 141.87,-119.62 148.87,-119.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Training Set (70&amp;#45;80%) --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Training Set (70-80%)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M130.75,-36C130.75,-36 12,-36 12,-36 6,-36 0,-30 0,-24 0,-24 0,-12 0,-12 0,-6 6,0 12,0 12,0 130.75,0 130.75,0 136.75,0 142.75,-6 142.75,-12 142.75,-12 142.75,-24 142.75,-24 142.75,-30 136.75,-36 130.75,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;71.37&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Training Set (70-80%)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Split&amp;#45;&amp;gt;Training Set (70&amp;#45;80%) --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Split-&gt;Training Set (70-80%)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M127.08,-71.7C118.28,-63.37 107.55,-53.22 97.87,-44.07&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;100.48,-41.72 90.81,-37.39 95.67,-46.8 100.48,-41.72&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Test Set (20&amp;#45;30%) --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Test Set (20-30%)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M267.69,-36C267.69,-36 173.05,-36 173.05,-36 167.05,-36 161.05,-30 161.05,-24 161.05,-24 161.05,-12 161.05,-12 161.05,-6 167.05,0 173.05,0 173.05,0 267.69,0 267.69,0 273.69,0 279.69,-6 279.69,-12 279.69,-12 279.69,-24 279.69,-24 279.69,-30 273.69,-36 267.69,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;220.37&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Test Set (20-30%)&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Split&amp;#45;&amp;gt;Test Set (20&amp;#45;30%) --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Split-&gt;Test Set (20-30%)&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M163.91,-71.7C172.84,-63.37 183.7,-53.22 193.51,-44.07&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;195.76,-46.76 200.68,-37.38 190.98,-41.64 195.76,-46.76&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Training Set --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Training Set&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M279.17,-252C279.17,-252 217.57,-252 217.57,-252 211.57,-252 205.57,-246 205.57,-240 205.57,-240 205.57,-228 205.57,-228 205.57,-222 211.57,-216 217.57,-216 217.57,-216 279.17,-216 279.17,-216 285.17,-216 291.17,-222 291.17,-228 291.17,-228 291.17,-240 291.17,-240 291.17,-246 285.17,-252 279.17,-252&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;248.37&quot; y=&quot;-229.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Training Set&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Train Model --&gt;
&lt;g id=&quot;node7&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Train Model&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M279.56,-180C279.56,-180 217.19,-180 217.19,-180 211.19,-180 205.19,-174 205.19,-168 205.19,-168 205.19,-156 205.19,-156 205.19,-150 211.19,-144 217.19,-144 217.19,-144 279.56,-144 279.56,-144 285.56,-144 291.56,-150 291.56,-156 291.56,-156 291.56,-168 291.56,-168 291.56,-174 285.56,-180 279.56,-180&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;248.37&quot; y=&quot;-157.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Train Model&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Training Set&amp;#45;&amp;gt;Train Model --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Training Set-&gt;Train Model&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M248.37,-215.7C248.37,-208.41 248.37,-199.73 248.37,-191.54&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;251.87,-191.62 248.37,-181.62 244.87,-191.62 251.87,-191.62&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Evaluate on Test --&gt;
&lt;g id=&quot;node8&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Evaluate on Test&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M337.41,-108C337.41,-108 251.33,-108 251.33,-108 245.33,-108 239.33,-102 239.33,-96 239.33,-96 239.33,-84 239.33,-84 239.33,-78 245.33,-72 251.33,-72 251.33,-72 337.41,-72 337.41,-72 343.41,-72 349.41,-78 349.41,-84 349.41,-84 349.41,-96 349.41,-96 349.41,-102 343.41,-108 337.41,-108&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;294.37&quot; y=&quot;-85.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Evaluate on Test&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Train Model&amp;#45;&amp;gt;Evaluate on Test --&gt;
&lt;g id=&quot;edge6&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Train Model-&gt;Evaluate on Test&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M259.74,-143.7C264.92,-135.81 271.17,-126.3 276.93,-117.55&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;279.73,-119.65 282.3,-109.37 273.88,-115.8 279.73,-119.65&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Test Set --&gt;
&lt;g id=&quot;node9&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Test Set&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M359.12,-180C359.12,-180 321.63,-180 321.63,-180 315.63,-180 309.63,-174 309.63,-168 309.63,-168 309.63,-156 309.63,-156 309.63,-150 315.63,-144 321.63,-144 321.63,-144 359.12,-144 359.12,-144 365.12,-144 371.12,-150 371.12,-156 371.12,-156 371.12,-168 371.12,-168 371.12,-174 365.12,-180 359.12,-180&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;340.37&quot; y=&quot;-157.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Test Set&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Test Set&amp;#45;&amp;gt;Evaluate on Test --&gt;
&lt;g id=&quot;edge7&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Test Set-&gt;Evaluate on Test&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M329,-143.7C323.82,-135.81 317.57,-126.3 311.82,-117.55&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;314.86,-115.8 306.44,-109.37 309.01,-119.65 314.86,-115.8&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Generalization estimate: test performance approximates real-world performance&lt;/li&gt;
&lt;li&gt;Independence: test set must never influence training (no leakage)&lt;/li&gt;
&lt;li&gt;Randomness: different splits give different performance estimates&lt;/li&gt;
&lt;li&gt;Stratification: preserve class proportions in classification tasks&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Train_Test_Split Pages: 1 --&gt;
&lt;svg width=&quot;181pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 181.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Train_Test_Split&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 176.96,-165.63 176.96,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;68.47&quot; cy=&quot;-86.21&quot; rx=&quot;68.47&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;68.47&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Train Test Split&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;112.37&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;112.37&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M82.12,-104.06C87.46,-111.04 93.56,-119.02 98.88,-125.98&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;71.46&quot; y=&quot;-119.22&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;44.52&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;44.52&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M62.05,-67.93C58.56,-57.98 54.26,-45.73 50.79,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;86.17&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../supervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;supervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Supervised Learning&lt;/a&gt; — split is fundamental to supervised training&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../cross-validation&quot; class=&quot;internal alias&quot; data-slug=&quot;cross-validation&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Cross-Validation&lt;/a&gt; — more robust alternative to single split&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../overfitting&quot; class=&quot;internal alias&quot; data-slug=&quot;overfitting&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Overfitting&lt;/a&gt; — train-test split detects overfitting&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-modeling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-modeling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Modeling&lt;/a&gt; — splitting is a modeling prerequisite&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Data leakage: information from test set inadvertently used during training&lt;/li&gt;
&lt;li&gt;Small datasets: single split gives high-variance performance estimates&lt;/li&gt;
&lt;li&gt;Non-IID data: time series or clustered data require special splitting strategies&lt;/li&gt;
&lt;li&gt;Test set overfitting: tuning hyperparameters on test set invalidates the estimate&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>underfitting</title>
    <link href="https://animishraa05.github.io/wiki/data-science/underfitting" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/underfitting.md" />
    <summary>The Problem Models that are too simple cannot capture the underlying patterns in data, performing poorly on both training and test data.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Models that are too simple cannot capture the underlying patterns in data, performing poorly on both training and test data.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;When a model is not complex enough to capture the true patterns in the data, resulting in poor performance everywhere.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Model has low capacity (too few parameters or overly restrictive assumptions)&lt;/li&gt;
&lt;li&gt;Training error remains high because model cannot fit the data&lt;/li&gt;
&lt;li&gt;Test error is also high (if model can’t fit training, it can’t generalize either)&lt;/li&gt;
&lt;li&gt;Model makes simplistic assumptions (linear when relationship is nonlinear)&lt;/li&gt;
&lt;li&gt;Both train and test performance are similarly poor&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;543pt&quot; height=&quot;98pt&quot; viewBox=&quot;0.00 0.00 543.00 98.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 94)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-94 539.27,-94 539.27,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Low Capacity Model --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Low Capacity Model&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M144.18,-90C144.18,-90 33.21,-90 33.21,-90 27.21,-90 21.21,-84 21.21,-78 21.21,-78 21.21,-66 21.21,-66 21.21,-60 27.21,-54 33.21,-54 33.21,-54 144.18,-54 144.18,-54 150.18,-54 156.18,-60 156.18,-66 156.18,-66 156.18,-78 156.18,-78 156.18,-84 150.18,-90 144.18,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;88.69&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Low Capacity Model&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Cannot Fit Training Data --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Cannot Fit Training Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M358.52,-63C358.52,-63 225.38,-63 225.38,-63 219.38,-63 213.38,-57 213.38,-51 213.38,-51 213.38,-39 213.38,-39 213.38,-33 219.38,-27 225.38,-27 225.38,-27 358.52,-27 358.52,-27 364.52,-27 370.52,-33 370.52,-39 370.52,-39 370.52,-51 370.52,-51 370.52,-57 364.52,-63 358.52,-63&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;291.95&quot; y=&quot;-40.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Cannot Fit Training Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Low Capacity Model&amp;#45;&amp;gt;Cannot Fit Training Data --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Low Capacity Model-&gt;Cannot Fit Training Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M156.43,-63.05C171.07,-61.08 186.79,-58.97 202.14,-56.91&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;202.29,-60.43 211.74,-55.63 201.36,-53.49 202.29,-60.43&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- High Training Error --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;High Training Error&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M523.27,-90C523.27,-90 418.52,-90 418.52,-90 412.52,-90 406.52,-84 406.52,-78 406.52,-78 406.52,-66 406.52,-66 406.52,-60 412.52,-54 418.52,-54 418.52,-54 523.27,-54 523.27,-54 529.27,-54 535.27,-60 535.27,-66 535.27,-66 535.27,-78 535.27,-78 535.27,-84 529.27,-90 523.27,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;470.9&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;High Training Error&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Cannot Fit Training Data&amp;#45;&amp;gt;High Training Error --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Cannot Fit Training Data-&gt;High Training Error&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M370.82,-56.88C378.82,-58.1 386.95,-59.34 394.92,-60.56&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;394.15,-63.98 404.56,-62.03 395.21,-57.06 394.15,-63.98&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- High Test Error --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;High Test Error&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M511.22,-36C511.22,-36 430.58,-36 430.58,-36 424.58,-36 418.58,-30 418.58,-24 418.58,-24 418.58,-12 418.58,-12 418.58,-6 424.58,0 430.58,0 430.58,0 511.22,0 511.22,0 517.22,0 523.22,-6 523.22,-12 523.22,-12 523.22,-24 523.22,-24 523.22,-30 517.22,-36 511.22,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;470.9&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;High Test Error&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Cannot Fit Training Data&amp;#45;&amp;gt;High Test Error --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Cannot Fit Training Data-&gt;High Test Error&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M370.82,-33.12C382.98,-31.26 395.4,-29.37 407.16,-27.57&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;407.35,-31.08 416.71,-26.12 406.3,-24.16 407.35,-31.08&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Oversimplified Assumptions --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Oversimplified Assumptions&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M165.38,-36C165.38,-36 12,-36 12,-36 6,-36 0,-30 0,-24 0,-24 0,-12 0,-12 0,-6 6,0 12,0 12,0 165.38,0 165.38,0 171.38,0 177.38,-6 177.38,-12 177.38,-12 177.38,-24 177.38,-24 177.38,-30 171.38,-36 165.38,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;88.69&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Oversimplified Assumptions&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Oversimplified Assumptions&amp;#45;&amp;gt;Cannot Fit Training Data --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Oversimplified Assumptions-&gt;Cannot Fit Training Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M177.68,-29.8C185.66,-30.87 193.74,-31.96 201.73,-33.03&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;201.07,-36.47 211.45,-34.33 202,-29.54 201.07,-36.47&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Capacity-driven: fewer parameters + complex data = higher underfitting risk&lt;/li&gt;
&lt;li&gt;Detectable: poor training performance is the signature&lt;/li&gt;
&lt;li&gt;Fixable: more complex models, more features, or less regularization&lt;/li&gt;
&lt;li&gt;Symmetric: opposite of overfitting (train-test gap is small, but both are bad)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Underfitting Pages: 1 --&gt;
&lt;svg width=&quot;178pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 178.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Underfitting&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 174.12,-165.63 174.12,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;65.63&quot; cy=&quot;-86.21&quot; rx=&quot;54.61&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;65.63&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Underfitting&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;109.53&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;109.53&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M79.28,-104.06C84.62,-111.04 90.72,-119.02 96.04,-125.98&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;106.7&quot; y=&quot;-102.42&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;41.67&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;41.67&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M59.21,-67.93C55.72,-57.98 51.42,-45.73 47.95,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;83.33&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Contrasts with: &lt;a href=&quot;../../overfitting&quot; class=&quot;internal alias&quot; data-slug=&quot;overfitting&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Overfitting&lt;/a&gt; — opposite problem (model too complex)&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../supervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;supervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Supervised Learning&lt;/a&gt; — underfitting affects all supervised models&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../train-test-split&quot; class=&quot;internal alias&quot; data-slug=&quot;train-test-split&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Train-Test Split&lt;/a&gt; — both train and test errors reveal underfitting&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../data-modeling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-modeling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Modeling&lt;/a&gt; — model selection must balance under/over-fitting&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Underfitting can masquerade as overfitting if only test error is monitored&lt;/li&gt;
&lt;li&gt;Excessive regularization (L1/L2 penalty too high) causes underfitting&lt;/li&gt;
&lt;li&gt;Feature scaling issues can make models appear to underfit&lt;/li&gt;
&lt;li&gt;Wrong model family: linear model for highly nonlinear data&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry><entry>
    <title>unsupervised-learning</title>
    <link href="https://animishraa05.github.io/wiki/data-science/unsupervised-learning" />
    <link rel="alternate" type="text/markdown" href="https://animishraa05.github.io/wiki/data-science/unsupervised-learning.md" />
    <summary>The Problem We have data but no labels — we need to discover hidden structure, groups, or patterns without guidance on what to look for.</summary>
    <published>2026-04-30T00:00:00.000Z</published>
    <updated>2026-04-30T00:00:00.000Z</updated>
    <publishedTime>Apr 30, 2026</publishedTime>
    <updatedTime>Apr 30, 2026</updatedTime>
    <category term="ml" label="ml" />
<category term="data-science" label="data-science" />
    <author>
      <name>Animesh Mishra</name>
      <email>animesh.mishra818@gmail.com</email>
    </author>
    <content type="html">&lt;h2 id=&quot;the-problem&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;The Problem&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#the-problem&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;We have data but no labels — we need to discover hidden structure, groups, or patterns without guidance on what to look for.&lt;/p&gt;
&lt;h2 id=&quot;core-idea&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Core Idea&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#core-idea&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p dir=&quot;auto&quot;&gt;Machine learning paradigm where models find patterns, structure, or reduced representations in unlabeled data.&lt;/p&gt;
&lt;h2 id=&quot;how-it-works&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;How It Works&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#how-it-works&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ol dir=&quot;auto&quot;&gt;
&lt;li&gt;Collect unlabeled data: only input features X, no output labels&lt;/li&gt;
&lt;li&gt;Choose task: clustering (find groups), dimensionality reduction (compress), or anomaly detection&lt;/li&gt;
&lt;li&gt;Define objective: minimize reconstruction error, maximize cluster separation, etc.&lt;/li&gt;
&lt;li&gt;Optimize: adjust model to best achieve the objective on data&lt;/li&gt;
&lt;li&gt;Interpret: examine discovered patterns for meaning and utility&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;visual-explanation&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Visual Explanation&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#visual-explanation&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: G Pages: 1 --&gt;
&lt;svg width=&quot;697pt&quot; height=&quot;206pt&quot; viewBox=&quot;0.00 0.00 697.00 206.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 202)&quot;&gt;
&lt;title&gt;G&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-202 692.99,-202 692.99,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- Unlabeled Data --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Unlabeled Data&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M121.41,-198C121.41,-198 41.96,-198 41.96,-198 35.96,-198 29.96,-192 29.96,-186 29.96,-186 29.96,-174 29.96,-174 29.96,-168 35.96,-162 41.96,-162 41.96,-162 121.41,-162 121.41,-162 127.41,-162 133.41,-168 133.41,-174 133.41,-174 133.41,-186 133.41,-186 133.41,-192 127.41,-198 121.41,-198&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;81.68&quot; y=&quot;-175.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Unlabeled Data&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Choose Task --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Choose Task&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M276.08,-117C276.08,-117 211.37,-117 211.37,-117 205.37,-117 199.37,-111 199.37,-105 199.37,-105 199.37,-93 199.37,-93 199.37,-87 205.37,-81 211.37,-81 211.37,-81 276.08,-81 276.08,-81 282.08,-81 288.08,-87 288.08,-93 288.08,-93 288.08,-105 288.08,-105 288.08,-111 282.08,-117 276.08,-117&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;243.73&quot; y=&quot;-94.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Choose Task&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Unlabeled Data&amp;#45;&amp;gt;Choose Task --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Unlabeled Data-&gt;Choose Task&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M133.9,-165.22C143.87,-161.69 154.11,-157.59 163.37,-153 179.62,-144.94 196.41,-133.97 210.33,-124.02&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;212.23,-126.96 218.24,-118.24 208.11,-121.31 212.23,-126.96&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Define Objective --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Define Objective&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M424.09,-117C424.09,-117 336.08,-117 336.08,-117 330.08,-117 324.08,-111 324.08,-105 324.08,-105 324.08,-93 324.08,-93 324.08,-87 330.08,-81 336.08,-81 336.08,-81 424.09,-81 424.09,-81 430.09,-81 436.09,-87 436.09,-93 436.09,-93 436.09,-105 436.09,-105 436.09,-111 430.09,-117 424.09,-117&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;380.09&quot; y=&quot;-94.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Define Objective&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Choose Task&amp;#45;&amp;gt;Define Objective --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Choose Task-&gt;Define Objective&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M288.35,-99C296.06,-99 304.24,-99 312.41,-99&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;312.39,-102.5 322.39,-99 312.39,-95.5 312.39,-102.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Optimize --&gt;
&lt;g id=&quot;node4&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Optimize&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M528.19,-117C528.19,-117 484.09,-117 484.09,-117 478.09,-117 472.09,-111 472.09,-105 472.09,-105 472.09,-93 472.09,-93 472.09,-87 478.09,-81 484.09,-81 484.09,-81 528.19,-81 528.19,-81 534.19,-81 540.19,-87 540.19,-93 540.19,-93 540.19,-105 540.19,-105 540.19,-111 534.19,-117 528.19,-117&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;506.14&quot; y=&quot;-94.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Optimize&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Define Objective&amp;#45;&amp;gt;Optimize --&gt;
&lt;g id=&quot;edge3&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Define Objective-&gt;Optimize&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M436.58,-99C444.55,-99 452.67,-99 460.39,-99&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;460.23,-102.5 470.23,-99 460.23,-95.5 460.23,-102.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Interpret Patterns --&gt;
&lt;g id=&quot;node5&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Interpret Patterns&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M676.99,-117C676.99,-117 588.19,-117 588.19,-117 582.19,-117 576.19,-111 576.19,-105 576.19,-105 576.19,-93 576.19,-93 576.19,-87 582.19,-81 588.19,-81 588.19,-81 676.99,-81 676.99,-81 682.99,-81 688.99,-87 688.99,-93 688.99,-93 688.99,-105 688.99,-105 688.99,-111 682.99,-117 676.99,-117&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;632.59&quot; y=&quot;-94.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Interpret Patterns&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Optimize&amp;#45;&amp;gt;Interpret Patterns --&gt;
&lt;g id=&quot;edge4&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Optimize-&gt;Interpret Patterns&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M540.49,-99C548.02,-99 556.26,-99 564.62,-99&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;564.53,-102.5 574.53,-99 564.53,-95.5 564.53,-102.5&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Clustering --&gt;
&lt;g id=&quot;node6&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Clustering&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M106.85,-144C106.85,-144 56.52,-144 56.52,-144 50.52,-144 44.52,-138 44.52,-132 44.52,-132 44.52,-120 44.52,-120 44.52,-114 50.52,-108 56.52,-108 56.52,-108 106.85,-108 106.85,-108 112.85,-108 118.85,-114 118.85,-120 118.85,-120 118.85,-132 118.85,-132 118.85,-138 112.85,-144 106.85,-144&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;81.68&quot; y=&quot;-121.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Clustering&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Clustering&amp;#45;&amp;gt;Choose Task --&gt;
&lt;g id=&quot;edge5&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Clustering-&gt;Choose Task&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M119,-119.87C139.36,-116.44 165.15,-112.09 187.92,-108.25&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;188.39,-111.72 197.66,-106.6 187.22,-104.81 188.39,-111.72&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Dimensionality Reduction --&gt;
&lt;g id=&quot;node7&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Dimensionality Reduction&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M151.37,-90C151.37,-90 12,-90 12,-90 6,-90 0,-84 0,-78 0,-78 0,-66 0,-66 0,-60 6,-54 12,-54 12,-54 151.37,-54 151.37,-54 157.37,-54 163.37,-60 163.37,-66 163.37,-66 163.37,-78 163.37,-78 163.37,-84 157.37,-90 151.37,-90&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;81.68&quot; y=&quot;-67.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Dimensionality Reduction&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Dimensionality Reduction&amp;#45;&amp;gt;Choose Task --&gt;
&lt;g id=&quot;edge6&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Dimensionality Reduction-&gt;Choose Task&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M163.64,-85.66C171.87,-87.05 180.09,-88.43 187.95,-89.76&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;187.22,-93.19 197.66,-91.4 188.39,-86.28 187.22,-93.19&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;!-- Anomaly Detection --&gt;
&lt;g id=&quot;node8&quot; class=&quot;node&quot;&gt;
&lt;title&gt;Anomaly Detection&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M132.7,-36C132.7,-36 30.67,-36 30.67,-36 24.67,-36 18.67,-30 18.67,-24 18.67,-24 18.67,-12 18.67,-12 18.67,-6 24.67,0 30.67,0 30.67,0 132.7,0 132.7,0 138.7,0 144.7,-6 144.7,-12 144.7,-12 144.7,-24 144.7,-24 144.7,-30 138.7,-36 132.7,-36&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;81.68&quot; y=&quot;-13.8&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;Anomaly Detection&lt;/text&gt;
&lt;/g&gt;
&lt;!-- Anomaly Detection&amp;#45;&amp;gt;Choose Task --&gt;
&lt;g id=&quot;edge7&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;Anomaly Detection-&gt;Choose Task&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M143.77,-36.44C150.49,-39.06 157.15,-41.92 163.37,-45 179.62,-53.06 196.41,-64.03 210.33,-73.98&quot;&gt;&lt;/path&gt;
&lt;polygon fill=&quot;black&quot; stroke=&quot;black&quot; points=&quot;208.11,-76.69 218.24,-79.76 212.23,-71.04 208.11,-76.69&quot;&gt;&lt;/polygon&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;key-properties&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Key Properties&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#key-properties&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;No labels needed: works with raw, unlabeled datasets&lt;/li&gt;
&lt;li&gt;Subjective: “good” patterns depend on the application and interpretation&lt;/li&gt;
&lt;li&gt;Exploratory: reveals what might be interesting, not what is definitively true&lt;/li&gt;
&lt;li&gt;Preprocessing: often used as a step before supervised learning&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;semantic-network&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Semantic Network&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#semantic-network&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;graphviz-container&quot; style=&quot;display: flex; justify-content: center; margin: 1.5rem 0; overflow-x: auto;&quot; dir=&quot;auto&quot;&gt;&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?--&gt;

&lt;!-- Generated by graphviz version 15.1.0 (0)
 --&gt;
&lt;!-- Title: semantic_Unsupervised_Learning Pages: 1 --&gt;
&lt;svg width=&quot;207pt&quot; height=&quot;170pt&quot; viewBox=&quot;0.00 0.00 207.00 170.00&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
&lt;g id=&quot;graph0&quot; class=&quot;graph&quot; transform=&quot;scale(1 1) rotate(0) translate(4 165.63)&quot;&gt;
&lt;title&gt;semantic_Unsupervised_Learning&lt;/title&gt;
&lt;polygon fill=&quot;white&quot; stroke=&quot;none&quot; points=&quot;-4,4 -4,-165.63 202.82,-165.63 202.82,4 -4,4&quot;&gt;&lt;/polygon&gt;
&lt;!-- THIS --&gt;
&lt;g id=&quot;node1&quot; class=&quot;node&quot;&gt;
&lt;title&gt;THIS&lt;/title&gt;
&lt;ellipse fill=&quot;#ffd700&quot; stroke=&quot;black&quot; stroke-width=&quot;2&quot; cx=&quot;94.33&quot; cy=&quot;-86.21&quot; rx=&quot;94.33&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;94.33&quot; y=&quot;-82.31&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;13.00&quot;&gt;Unsupervised Learnin&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL1 --&gt;
&lt;g id=&quot;node2&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL1&lt;/title&gt;
&lt;ellipse fill=&quot;#f0f0f0&quot; stroke=&quot;black&quot; cx=&quot;138.22&quot; cy=&quot;-143.63&quot; rx=&quot;60.59&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;138.22&quot; y=&quot;-140.33&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Related Concept&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL1 --&gt;
&lt;g id=&quot;edge1&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL1&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M108.22,-104.37C113.44,-111.21 119.37,-118.97 124.58,-125.77&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;97.36&quot; y=&quot;-119.27&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;related&lt;/text&gt;
&lt;/g&gt;
&lt;!-- REL2 --&gt;
&lt;g id=&quot;node3&quot; class=&quot;node&quot;&gt;
&lt;title&gt;REL2&lt;/title&gt;
&lt;ellipse fill=&quot;#d4edda&quot; stroke=&quot;black&quot; cx=&quot;70.37&quot; cy=&quot;-18&quot; rx=&quot;41.67&quot; ry=&quot;18&quot;&gt;&lt;/ellipse&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;70.37&quot; y=&quot;-14.7&quot; font-family=&quot;Helvetica,sans-Serif&quot; font-size=&quot;11.00&quot;&gt;Builds Into&lt;/text&gt;
&lt;/g&gt;
&lt;!-- THIS&amp;#45;&amp;#45;REL2 --&gt;
&lt;g id=&quot;edge2&quot; class=&quot;edge&quot;&gt;
&lt;title&gt;THIS--REL2&lt;/title&gt;
&lt;path fill=&quot;none&quot; stroke=&quot;black&quot; d=&quot;M87.91,-67.93C84.42,-57.98 80.11,-45.73 76.64,-35.86&quot;&gt;&lt;/path&gt;
&lt;text xml:space=&quot;preserve&quot; text-anchor=&quot;middle&quot; x=&quot;112.03&quot; y=&quot;-39.29&quot; font-family=&quot;Times,serif&quot; font-size=&quot;14.00&quot;&gt;builds into&lt;/text&gt;
&lt;/g&gt;
&lt;/g&gt;
&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id=&quot;connections&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Connections&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#connections&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;Built from: &lt;a href=&quot;../../data-modeling&quot; class=&quot;internal alias&quot; data-slug=&quot;data-modeling&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Data Modeling&lt;/a&gt; — unsupervised learning is a modeling approach&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../supervised-learning&quot; class=&quot;internal alias&quot; data-slug=&quot;supervised-learning&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Supervised Learning&lt;/a&gt; — contrast in label requirements&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../exploratory-data-analysis&quot; class=&quot;internal alias&quot; data-slug=&quot;exploratory-data-analysis&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;EDA&lt;/a&gt; — both are exploratory, discovery-oriented&lt;/li&gt;
&lt;li&gt;Related: &lt;a href=&quot;../../feature-engineering&quot; class=&quot;internal alias&quot; data-slug=&quot;feature-engineering&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;Feature Engineering&lt;/a&gt; — dimensionality reduction creates new features&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;edge-cases--gotchas&quot; dir=&quot;auto&quot;&gt;&lt;span class=&quot;highlight-span&quot;&gt;Edge Cases &amp;#x26; Gotchas&lt;/span&gt;&lt;a data-role=&quot;anchor&quot; data-no-popover href=&quot;#edge-cases--gotchas&quot; class=&quot;internal&quot;&gt;&lt;span class=&quot;indicator-hook&quot;&gt;&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;use href=&quot;#github-anchor&quot;&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;ul dir=&quot;auto&quot;&gt;
&lt;li&gt;No ground truth: cannot compute accuracy or error rate on unseen data&lt;/li&gt;
&lt;li&gt;Cluster interpretation: assigning meaning to clusters is subjective&lt;/li&gt;
&lt;li&gt;Initialization sensitivity: many algorithms (k-means) depend on random starts&lt;/li&gt;
&lt;li&gt;Curse of dimensionality: distance-based methods fail in high-dimensional spaces&lt;/li&gt;
&lt;/ul&gt;</content>
  </entry>
</feed>