<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rajesh Ramachander on Medium]]></title>
        <description><![CDATA[Stories by Rajesh Ramachander on Medium]]></description>
        <link>https://medium.com/@rajesh-r?source=rss-c65949bc17d4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uYQbOQ-j_kBFkvGmrCXvQA.jpeg</url>
            <title>Stories by Rajesh Ramachander on Medium</title>
            <link>https://medium.com/@rajesh-r?source=rss-c65949bc17d4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:42:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajesh-r/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Questions ML Papers Rarely Answer]]></title>
            <link>https://rajesh-r.medium.com/the-questions-ml-papers-rarely-answer-3b4b6bf30483?source=rss-c65949bc17d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b4b6bf30483</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Rajesh Ramachander]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 12:43:22 GMT</pubDate>
            <atom:updated>2026-01-12T12:43:22.605Z</atom:updated>
            <content:encoded><![CDATA[<p>Most ML papers are optimized for acceptance, not for helping you decide if the method actually works.</p><p>After enough years evaluating methods for real-world systems, you develop a reflex for what’s missing. I turned that reflex into a simple framework: map every claimed contribution to a specific, verifiable metric, and notice what’s missing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mxsJhBNwnEUSMLZ_" /><figcaption>Photo by <a href="https://unsplash.com/@andrewilliam?utm_source=medium&amp;utm_medium=referral">Andre William</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Problem With How Papers Are Written</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PLoEcZnQF7OtBKm7" /><figcaption>Photo by <a href="https://unsplash.com/@goyongsu?utm_source=medium&amp;utm_medium=referral">Yongsu Go</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A typical abstract says something like:</p><blockquote><em>“Our method achieves state-of-the-art performance on [benchmark], demonstrating significant improvements in accuracy and robustness.”</em></blockquote><p>This tells you almost nothing.</p><ul><li>State-of-the-art compared to what baselines?</li><li>Which accuracy metric? Under what conditions?</li><li>Robustness to what, exactly?</li></ul><p>The paper probably answers some of these. But the structure rewards burying limitations and emphasizing wins. Your job as a reader is to invert that.</p><h3>The Challenge-Metric Framework</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jYHYgYOPxFcJa2cH" /><figcaption>Photo by <a href="https://unsplash.com/@karlahrnndz?utm_source=medium&amp;utm_medium=referral">Karla Hernandez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Before reading the experiments section, ask: <strong>what problem does this paper claim to solve?</strong></p><p>Then map that problem to <strong>specific metrics that would actually prove it</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3U5CaxETfl5oFhczjTcEw.png" /></figure><p>Now check: <strong>does the paper actually report these metrics?</strong></p><p>If a paper claims efficiency but doesn’t report FLOPs, that’s a red flag. If it claims robustness but only tests on one dataset under controlled conditions, that’s a red flag.</p><h3>What Papers Typically Don’t Report</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RFu0g25PdLf2WQYf" /><figcaption>Photo by <a href="https://unsplash.com/@dariasha911?utm_source=medium&amp;utm_medium=referral">Daria Shatova</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>After reviewing many papers across applied ML domains, I found consistent patterns:</blockquote><ul><li><strong>Typically ~70% report only the headline accuracy metric</strong> (e.g., mAP@50), omitting breakdowns that would reveal weaknesses</li><li><strong>Under 40% report computational cost</strong> (FLOPs, parameters), even when claiming efficiency</li><li><strong>Under 15% do cross-dataset evaluation</strong> (train on A, test on B), even when claiming generalization</li><li><strong>Almost none report training cost</strong> (epochs to convergence, GPU hours), making reproducibility claims hollow</li></ul><p>These are directional patterns, not results from a formal statistical study. They’re fundamental to knowing whether a method works in practice.</p><p>The papers that omit them aren’t necessarily bad, but they’re optimizing for publication, not deployment.</p><h3>A Practical Reading Checklist</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C87jy1qy_fjhP3bJ" /><figcaption>Photo by <a href="https://unsplash.com/@glenncarstenspeters?utm_source=medium&amp;utm_medium=referral">Glenn Carstens-Peters</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When evaluating any ML paper, I now ask:</p><p><strong>1. What’s the actual claim?</strong></p><p>Strip the marketing language. Is it accuracy? Speed? Data efficiency? Robustness? Usually it’s one or two things, dressed up as five.</p><p><strong>2. What metric would prove that claim?</strong></p><p>Be specific. “Works better” isn’t a metric. “3% higher AP_small at 30 FPS on 720p” is.</p><p><strong>3. Is that metric reported?</strong></p><p>If not, why not? Sometimes it’s space constraints. Often it’s because the numbers aren’t good.</p><p><strong>4. What’s the baseline comparison?</strong></p><p>Are they comparing against strong recent methods, or a two-year-old version of YOLO? Are hyper-parameters tuned fairly?</p><p><strong>5. What’s the test distribution?</strong></p><p>Same dataset? Same split? Or genuinely held-out data from a different source? This is where “state-of-the-art” claims quietly collapse.</p><p><strong>6. What would break this method?</strong></p><p>Every method has failure modes. Good papers acknowledge them. Bad papers bury them. The best papers characterize them with data.</p><h3>Why This Matters</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CHejNn6TqJiHXjmd" /><figcaption>Photo by <a href="https://unsplash.com/@evan__bray?utm_source=medium&amp;utm_medium=referral">Evan Dennis</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you’re a researcher: this framework forces you to write more honest papers.</p><p>If you’re a practitioner: this saves you from implementing methods that won’t survive contact with your actual data.</p><p>If you’re reviewing literature: this turns a pile of papers into a structured comparison.</p><p>The goal isn’t cynicism. It’s precision. A paper that clearly reports AP_small = 34% with 12 GFLOPs is more useful than one that vaguely claims “competitive performance with efficient inference.”</p><h3>The Meta-Point</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sIW7vstnuzYwW30m" /><figcaption>Photo by <a href="https://unsplash.com/@dan__burton?utm_source=medium&amp;utm_medium=referral">Dan Burton</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This framework is not about novelty. It is about avoiding self-deception when reading papers.</p><p>The ML publishing system rewards novelty and benchmark performance. It doesn’t reward:</p><ul><li>Honest characterization of failure modes</li><li>Computational cost transparency</li><li>Cross-domain generalization testing</li><li>Reproducibility details</li></ul><p>So readers have to do the work that reviewers often don’t.</p><p>Map claims to metrics. Notice what’s missing. That’s half the battle.</p><blockquote>This framework emerged from repeated literature reviews conducted over the years while evaluating methods for real-world systems. <em>The percentages cited are from that analysis. The specific field doesn’t matter. The pattern holds across computer vision, NLP, and most applied ML domains.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b4b6bf30483" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Built FunPuter: A Statistical Decision Layer for Missing Data]]></title>
            <link>https://rajesh-r.medium.com/built-funputer-a-statistical-decision-layer-for-missing-data-2a8ea2ef4c2f?source=rss-c65949bc17d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a8ea2ef4c2f</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rajesh Ramachander]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 09:36:55 GMT</pubDate>
            <atom:updated>2025-12-08T09:36:55.211Z</atom:updated>
            <content:encoded><![CDATA[<h4>Because imputation is a statistical claim and it needs support checks before it touches a model.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5Z4h69Em-yW-Eift" /><figcaption>Photo by <a href="https://unsplash.com/@googledeepmind?utm_source=medium&amp;utm_medium=referral">Google DeepMind</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Why one line of fillna can create silent statistical failure</h4><p>Most pipelines treat missing categorical data as a trivial preprocessing step.</p><p>A developer writes:</p><pre>df[&#39;category&#39;].fillna(df[&#39;category&#39;].mode()[0])</pre><p>That line assumes the category distribution has enough support for mode to be meaningful. In real data many levels are too rare for stable inference. FunPuter forces a support check first then imputes only inside the retained support or refuses with a logged reason.</p><p>The code runs, the model trains, and validation accuracy looks fine. The failure appears months later as drift, inconsistent predictions, and unexplained instability in production. The issue is not architectural. It is statistical validity. The dataset contained forty-seven product categories, but thirty-nine had fewer than five samples. Such levels cannot support stable categorical inference because frequency estimates for rare levels are noisy and brittle. Chi square adequacy is one place this shows up but the instability harms even if you never run a test.</p><p>This is common in production pipelines. The code runs and metrics look fine but the decision is unsupported. Months later it shows up as drift instability and confusing edge case behavior.</p><p>The correct procedure is simple and auditable:</p><ol><li>Profile counts and shares for each level.</li><li>Apply a dual support rule such as count at least 5 and share at least 1%.</li><li>Reduce levels by pooling into Other only if it is semantically valid otherwise refuse and flag.</li><li>Impute only inside retained support when missingness is low and mechanism is explainable.</li><li>Record thresholds rationale and confidence in the report.</li></ol><p><em>Had this been done, the model would have learned structure from eight statistically valid levels instead of memorizing noise. I built FunPuter to make this discipline automatic. It encodes support checks enforces validity rules and emits a confidence scored rationale before any imputation occurs.</em></p><h4><strong>The Statistical Failure Everyone Misses</strong></h4><p><em>Why adequacy checks must precede any imputation decision.</em></p><p>Most imputation guidance starts at method choice mean median mode or KNN. The missing step is deciding whether the column has enough statistical support for any of those choices to be defensible. Rare levels inflate variance create unstable encodings and produce models that look fine in validation but wobble in production.</p><p>The consequence is subtle but damaging. These rare categories act as statistical ghosts: they occupy space in the one hot encoding, influence gradients, and distort model weights, but contribute no reliable signal. During training, they mimic legitimate features; in production, they create instability whenever unseen or infrequent patterns appear.</p><p>FunPuter’s architecture begins at this failure point. It does not assume adequacy as it measures it. Before any imputation is proposed, FunPuter computes frequency thresholds, validates chi square compliance, and classifies mechanisms of missingness. If adequacy fails, the column is flagged or excluded automatically.</p><p><em>Enforcing a minimal validity rule (count ≥ 5 and share ≥ 1%) filters out statistical noise before it reaches the model. </em>It turns categorical preprocessing from a habitual coding exercise into a reproducible statistical process.</p><p><strong>Why Another Tool Was Needed — The Gap No One Filled</strong></p><p>Every common library already offers imputation utilities.</p><p>Pandas has fillna, scikit-learn has SimpleImputer, and statistical packages can run chi square tests or regressions.</p><p>The tools exist but they do not answer the central question. Should this column be imputed at all given its support constraints and missingness evidence.</p><p>The ecosystem optimises for convenience, not correctness.</p><p>While fillna executes instantly but it knows nothing about the statistical shape of the data.</p><p>The SimpleImputer Python package provides strategies but offers no rationale or confidence score.</p><p>The statsmodels Python package can test assumptions, but it sits outside the ML workflow.</p><p>In production pipelines these tools operate in isolation, without a system that verifies whether their use is valid.</p><p>FunPuter sits between your dataset and your imputer as a validation gate that either approves the decision with evidence or refuses with clear flags.</p><p>It does not replace existing methods; it governs them.</p><p>Before a single value is filled, FunPuter checks whether the column satisfies chi square adequacy, verifies that its missing-ness mechanism is explainable, calculates a transparent confidence score, and refuses to act when the evidence is weak.</p><p>The result is a reproducible decision layer that complements pandas and scikit-learn rather than competing with them.</p><p><em>It transforms imputation from a guess into a documented statistical judgment that you can audit, reproduce, and defend.</em></p><h4><strong>What FunPuter Actually Is</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JyLUbKoEGvQbYo1y" /><figcaption>Photo by <a href="https://unsplash.com/@jcqm?utm_source=medium&amp;utm_medium=referral">Jeremy</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>FunPuter is not another imputation library. It is a validation layer that lives between your dataset and your imputation method.</p><p>Its job is to ensure that every missing data decision you make is statistically defendable before it ever touches your model.</p><p>Think of it as a schema and statistics gate for missing data. Your imputer can run without it but you lose evidence traceability and you risk filling values in columns that do not have support.</p><p>FunPuter performs the equivalent preflight inspection for imputation.</p><p>It checks that the categorical frequencies are adequate for chi square analysis, that numerical columns respect business constraints, and that the missingness mechanism has a plausible explanation.</p><p>When you run it, FunPuter scans each column, measures statistical adequacy, and returns a structured recommendation:</p><ol><li><strong>Mechanism:</strong> Is the data Missing Completely at Random, Missing at Random, or Missing Not at Random?</li><li><strong>Recommended Method:</strong> Which imputation strategy is appropriate under those conditions?</li><li><strong>Confidence Score:</strong> How reliable is that recommendation?</li><li><strong>Rationale:</strong> What specific evidence supports this choice?</li><li><strong>Validation Flags:</strong> Which statistical and business rules were satisfied or violated?</li></ol><p>The workflow fits directly into existing codebases. You can point it to a CSV or DataFrame, receive a JSON report of recommendations, and apply them selectively using scikit-learn or pandas.</p><p>Nothing about your pipeline needs to change except the quality of your decisions.</p><p>FunPuter’s design philosophy is simple: automation must serve understanding, not replace it.</p><p>By making every imputation statistically auditable, it converts a silent preprocessing step into an explicit, explainable, and measurable process.</p><p><strong>How It Works — Inside the Validation Logic</strong></p><p><em>A five-layer filter that turns heuristics into evidence.</em></p><p>FunPuter’s architecture was designed around one core principle: an imputation decision is only as valid as the assumptions it verifies.</p><p>Each column passes through a sequence of validation layers that progressively eliminate statistical noise and quantify uncertainty.</p><p><strong>Step 1: Frequency Analysis</strong></p><p>Every categorical variable is profiled for its distribution.</p><p>For each category with count <em>n</em> in a dataset of size <em>N</em>, FunPuter checks two adequacy conditions:</p><ol><li>The category must have at least 5 samples.</li><li>Its frequency must represent at least 1% of the dataset.</li><li>Only categories that satisfy both are retained.</li></ol><p>This dual rule prevents small datasets from accepting underrepresented categories and large datasets from overfitting rare events.</p><p><strong>Step 2: Percentile bounds for numerics</strong></p><p><em>For numeric variables, FunPuter derives percentile limits instead of relying on raw minimum and maximum values. Outlier entries caused by data errors distort imputation, so percentile limits (typically 2.5th to 97.5th) define the realistic range.</em></p><p>This ensures that any imputed value remains within plausible business bounds.</p><p><strong>Step 3: Mechanism Detection</strong></p><p>FunPuter classifies missingness using evidence from metadata patterns and dependency checks. When evidence is weak it defaults conservative and flags the column for review.Rather than applying unreliable statistical tests, it prioritizes explicit domain declarations.</p><p>If metadata shows that a variable depends on another column, the mechanism is treated as MAR with high confidence.</p><p>If no dependencies are found, FunPuter defaults conservatively to MCAR.</p><p>This approach sacrifices theoretical complexity for practical honesty — decisions that can be explained and defended.</p><p><strong>Step 4: Exception Rules</strong></p><p>Eight built-in checks act as safeguards against destructive automation.</p><p>Examples include refusing to impute unique identifiers, rejecting columns that violate declared constraints, and halting when all values are missing.</p><p>A refusal is not a failure; it is a deliberate protection against silent corruption.</p><p><strong>Step 5: Confidence Scoring</strong></p><p>Finally, all signals — missing data proportion, adequacy of category distribution, mechanism certainty, and constraint compliance — combine into a confidence score between 0.1 and 1.0.</p><p>The score is additive and transparent: every contributing factor is logged so analysts can see exactly why a recommendation achieved its rating.</p><p>The outcome of this layered reasoning is a structured recommendation that behaves more like a statistical report than a heuristic guess.</p><p>Each output includes justification, thresholds, and validation evidence — turning what used to be instinct into traceable, auditable logic.</p><h4><strong>The Frequency Filtering Algorithm</strong></h4><p><em>Dual thresholds that convert categorical noise into stability.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dO1-7-zOX5Kc7HA5" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Every categorical column in a dataset carries two kinds of information: stable signal and random noise.</p><p>Signal comes from categories that occur often enough to reveal real relationships.</p><p>Noise comes from categories that appear so rarely that no statistical claim can be made about them.</p><p>Most pipelines treat both as equal, which is how models learn patterns that disappear in production.</p><p>FunPuter’s frequency filtering algorithm formalizes a simple question: <em>can this category be trusted statistically?</em></p><p><strong>Step 1: Count and Proportion</strong></p><p>For each category, FunPuter counts the number of samples and its percentage share of the total dataset.</p><p>Both numbers matter.</p><p>A level that appears five times in a dataset of one hundred rows is small but acceptable; five times in ten thousand rows is effectively random.</p><p><strong>Step 2: Apply Dual Thresholds</strong></p><p>FunPuter enforces two simultaneous constraints:</p><p>• Minimum count of five samples.</p><p>• Minimum proportion of one percent of total rows.</p><p>A category must satisfy both.</p><p>This dual rule protects small datasets from keeping weak categories and large datasets from memorizing outliers.</p><p><strong>Step 3: Classify and Reduce</strong></p><p>The algorithm then classifies categories into valid and invalid groups.</p><p>Valid ones are retained for modeling; invalid ones are logged with an explanation such as “count below five” or “frequency below one percent.”</p><p>The percentage reduction is recorded, giving a measurable view of how much categorical noise was removed.</p><p><strong>Step 4: Preserve Transparency</strong></p><p>Every exclusion is auditable.</p><p>Analysts can review exactly which categories were dropped and why.</p><p>This is critical in regulated domains like finance or healthcare, where categorical exclusions must be justified statistically.</p><p><strong>Step 5: Impact on Modeling</strong></p><p>After filtering, the feature space contracts to only statistically meaningful levels.</p><p>Models train faster, generalize better, and remain stable over time.</p><p>A typical dataset with forty or fifty unique categories often reduces to fewer than ten after validation, which is a transformation from noisy enumeration to statistically defensible structure.</p><p>In essence, FunPuter does for categorical data what regularization does for parameters: it eliminates variance that cannot be supported by evidence.</p><p>Instead of relying on intuition or arbitrary thresholds, it applies explicit, reproducible rules grounded in statistical theory.</p><h4><strong>Confidence Scoring</strong></h4><p><em>Quantified certainty that travels with every decision.</em></p><p>Traditional preprocessing code treats every imputation choice as equally certain.</p><p>Fill with mean, median, or mode, where the function runs, and there is no indication of how confident that decision actually is.</p><p>FunPuter replaces this silence with a quantified measure of reliability.</p><p>Each column receives a confidence score between 0.1 and 1.0, computed by evaluating evidence across five dimensions:</p><ol><li><strong>Missingness proportion: </strong>Columns with very few missing values (&lt; 5 %) contribute positive weight; those with high missingness (&gt; 50 %) reduce confidence.</li><li><strong>Mechanism clarity: </strong>If the missingness mechanism is known (for example, MCAR detected or MAR declared), confidence increases. Unclear mechanisms or MNAR patterns reduce it.</li><li><strong>Distribution quality: </strong>Clean, low-skew distributions or frequency-filtered categoricals raise the score. Heavy skew or outliers lower it.</li><li><strong>Constraint compliance: </strong>When business rules, allowed values, and numeric limits are defined and respected, the system adds weight for reliability.</li><li><strong>Exception triggers: </strong>Any rule violation — such as trying to impute a unique identifier or a non-nullable column — immediately reduces confidence.</li></ol><p>The calculation is additive and fully transparent.</p><p>Every contributing factor is stored with its rationale, allowing analysts to trace how the final value was derived.</p><p>For example:</p><p>• Base score: 0.50</p><p>• Low missingness: +0.20</p><p>• Clear MCAR mechanism: +0.10</p><p>• Clean distribution: +0.05</p><p>• Defined constraints: +0.10</p><p>• No violations: +0.05</p><p>→ Final confidence: 1.00</p><p>This traceability matters.</p><p>A high confidence score signals that the decision can be implemented automatically.</p><p>A medium score invites review.</p><p>A low score signals that the data needs investigation before imputation.</p><p>By quantifying certainty, FunPuter closes the loop between automation and accountability. Instead of assuming that all imputations are trustworthy, it gives every recommendation an auditable confidence profile — a small addition that transforms routine preprocessing into statistically reasoned engineering.</p><p><strong>Exception Rules</strong></p><p><em>The engineering of knowing when not to act.</em></p><p>Most data systems fail not because of what they do, but because of what they refuse to stop doing.</p><p>The hardest engineering decision is to decline action, which is to detect a case where intervention causes more harm than leaving the data untouched.</p><p>FunPuter treats this as a core principle.</p><p>Before recommending any imputation, it passes each column through eight exception checks designed to stop automation when it becomes unsafe.</p><p><strong>1. No-Op Condition</strong></p><p>If a column has no missing values, FunPuter returns “No action needed.”</p><p>There is no virtue in filling something that is already complete.</p><p><strong>2. Unique Identifier Protection</strong></p><p>If a column is marked as unique — for example, transaction ID or customer ID then imputation is blocked entirely.</p><p>Generating new identifiers risks data corruption and broken referential integrity.</p><p><strong>3. Empty Column Detection</strong></p><p>If all values are missing, FunPuter flags it as a collection issue, not an imputation task.</p><p>You cannot infer information from nothing.</p><p><strong>4. Invalid Range or Constraint</strong></p><p>If numeric constraints such as minimum greater than maximum are violated, the system halts and returns an error.</p><p>Invalid metadata must be corrected before any inference occurs.</p><p><strong>5. MNAR Warning</strong></p><p>When data is Missing Not at Random and no explicit business rule is defined, automatic imputation is refused.</p><p>FunPuter labels the column for manual review because bias is likely.</p><p><strong>6. Non-Nullable Violation</strong></p><p>If a column is declared non-nullable but missing values are found, the inconsistency is logged as a schema violation, not treated as a missing-data problem.</p><p><strong>7. Categorical Violation</strong></p><p>If the data contains categories outside the allowed set, FunPuter blocks imputation until the invalid entries are reconciled.</p><p><strong>8. Length Check</strong></p><p>If text values exceed the maximum defined length, the column is flagged for upstream correction rather than forced imputation.</p><p>Each exception is logged with full rationale.</p><p><em>A refusal is not a failure but is actually a design feature.</em></p><p>The safest decision is sometimes the absence of a decision.</p><p>This refusal logic brings human judgement back into automated pipelines.</p><p>Instead of silently overwriting anomalies, FunPuter preserves integrity and forces explicit accountability.</p><p>By design, it prefers no result to a wrong one.</p><p><strong>What It Looks Like in Practice — From Raw Data to Validated Decisions</strong></p><p>FunPuter was built to integrate quietly into an existing workflow. You can point it to a dataset, run one command, and receive structured recommendations with confidence scores and rationale for every column. The output reads like an audit report rather than a code dump, showing what the system decided, why, and how sure it is of each decision.</p><p>Below is a representative console snapshot of FunPuter in action.</p><pre><br>&gt;&gt;&gt; import funputer<br>&gt;&gt;&gt; suggestions = funputer.analyze(&quot;ecommerce_data.csv&quot;)<br><br>Analyzing dataset...<br>12 columns detected, 1000 rows total<br>------------------------------------------------------------<br><br>Column: product_category<br>Missing: 47 values (4.7%)<br>Missingness evidence: consistent with MCAR<br>Frequency filtering applied: 47 → 8 categories retained<br>Removed: 39 categories (below 5 count or 1% share)<br>Recommendation: Mode<br>Confidence: 0.85<br>Rationale: MCAR with low missingness; all retained levels meet<br>           support adequacy. Mode across validated categories only.<br><br>------------------------------------------------------------<br><br>Column: customer_age<br>Missing: 12 values (1.2%)<br>Range: 18–92<br>Outlier bounds (95th percentile): 22–68<br>Recommendation: Mean<br>Confidence: 0.91<br>Rationale: Symmetric distribution with low missingness.<br>           Mean imputation within bounded range is statistically valid.<br><br>------------------------------------------------------------<br><br>Column: transaction_id<br>Missing: 0 values (0.0%)<br>Unique flag: True<br>Recommendation: No action<br>Confidence: 1.00<br>Rationale: Complete column; unique identifier protected from imputation.<br>------------------------------------------------------------  </pre><h4>What This Changes in Real Work</h4><p>Machine learning pipelines rarely fail because of neural networks or algorithms. They fail quietly in the first few hundred lines of preprocessing code. FunPuter turns that invisible risk into a measurable system.</p><p>When frequency adequacy, percentile limits, and confidence scoring become routine, the effect compounds:</p><ul><li><strong>Models stabilise</strong>: categorical overfitting disappears and validation scores align with production behaviour.</li><li><strong>Data scientists gain audit trails</strong>: every imputation carries a reason that can be reviewed, challenged, or reproduced.</li><li><strong>Stakeholders regain trust</strong>: business teams can trace a prediction back to its statistical assumptions instead of accepting a black box.</li><li><strong>Pipelines become teachable</strong>: junior engineers learn not only what code to run but why the rule exists.</li></ul><p>FunPuter reframes preprocessing from a mechanical task to a scientific one. It encodes the same discipline that statisticians once enforced manually: check assumptions, record thresholds, and refuse when the math does not hold.</p><p>Its goal is not automation <strong>for its own sake</strong> but automation that preserves judgement. The system’s intelligence lies not in filling more values but in knowing when not to. In that restraint lives the difference between a model that performs and one that endures.</p><h4>From Convenience to Statistical Integrity</h4><p><strong><em>FunPuter began as a response to a gap I perceived in machine learning pipelines: valid code producing invalid statistics. </em>Its design makes one promise where every missing data decision will be statistically defensible before it ever touches your model.</strong></p><p><strong>Core principle: </strong>Imputation is a hypothesis about what should have existed and it must be supported by evidence.</p><p><strong>What it enforces:</strong></p><ul><li>Minimum frequency of five and share of one percent for categorical adequacy</li><li>Outlier boundedness for numeric stability</li><li>Mechanism classification for interpretability</li><li>Confidence scoring for transparency</li><li>Exception rules for safety and refusal</li></ul><p><strong>What it delivers:</strong></p><p>A consistent layer of statistical governance that sits between data and model — converting preprocessing from blind automation into auditable reasoning.</p><p><strong>Why it matters:</strong></p><p>Because reliability does not start with complex architectures or large datasets. It starts with every decision the model inherits from its data. FunPuter gives those decisions a conscience.</p><pre>## **Getting Started**<br><br>FunPuter is available on PyPI and requires Python 3.8 or higher.<br><br>**Install:**<br>```bash<br>pip install funputer<br>```<br><br>**Quick validation:**<br>```python<br>import funputer<br><br># Analyze your dataset<br>suggestions = funputer.analyze_with_enhanced_filtering(&quot;data.csv&quot;)<br><br># Review recommendations<br>for s in suggestions:<br>    print(f&quot;{s.column_name}: {s.proposed_method} (confidence: {s.confidence_score:.2f})&quot;)<br>```</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t9uWkcsYYuvYiqeP" /><figcaption>Photo by <a href="https://unsplash.com/@thisisengineering?utm_source=medium&amp;utm_medium=referral">ThisisEngineering</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a8ea2ef4c2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fear Is Loud. Curiosity Is Quiet.]]></title>
            <link>https://rajesh-r.medium.com/fear-is-loud-curiosity-is-quiet-dda47fc782ea?source=rss-c65949bc17d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/dda47fc782ea</guid>
            <category><![CDATA[future-of-work]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Rajesh Ramachander]]></dc:creator>
            <pubDate>Sun, 31 Aug 2025 05:47:11 GMT</pubDate>
            <atom:updated>2025-08-31T06:23:17.088Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ip-o-pzcPwUnBssm7zMPQ.png" /></figure><p><strong>Headlines say most AI pilots fail. Do not let that become doom in your head. Pilots are meant to break. The real wins come later, when tools leave the demo and shape daily work. Fear is loud, but curiosity is stronger.</strong></p><p>A friend called me one evening. His voice was heavy.</p><p>He too had read the report that claimed most AI pilots fail. Ninety five percent. A number thrown like a stone, rippling through boardrooms, unsettling people everywhere.</p><p>“Maybe this is all smoke,” he said. “Maybe the road ahead is a mirage.”</p><p>I let him speak. Fear settles fast when wrapped in numbers.</p><p>But then I told him another truth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TXY09yWHrcchpm5t" /><figcaption>Photo by <a href="https://unsplash.com/@doinagavrilov?utm_source=medium&amp;utm_medium=referral">Doina Gavrilov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Pilots That Break Shine Light</h3><p>A broken pilot is not defeat. It is draft work. Pilots are meant to bend and sometimes snap. They show where the system leaks, where the workflow resists, where the integration must be stronger.</p><p>The real story begins after the pilot. When a model stops being a demo and becomes part of daily work. When an AI agent runs quietly inside claims processing. When natural language search trims hours off reporting. When smaller trained models start catching mistakes that human eyes miss.</p><p>These are not headlines. They are not shouted from stages. But they stack. And stacked, they change the ground beneath us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*75xo5wNNRJssrekB" /><figcaption>Photo by <a href="https://unsplash.com/@hniamj?utm_source=medium&amp;utm_medium=referral">Haania M.-J.</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Where Curiosity Meets Craft</h3><p>My friend worried about fear being used to keep people in place. And yes, there are always voices that live off anxiety, that sell stillness as safety.</p><p>But stillness is brittle.</p><p>Look instead at the sparks. A seventeen year old in his bedroom built a simple AI app for text rewriting. It scaled to a million dollars a month.</p><p>Two students in Southampton trained a small model to auto generate bids in construction. They raised serious capital before finishing their degrees.</p><p>A man past fifty grew tired of clumsy forecasting tools. He turned to open source transformers, trained them on two decades of his own data, and built a service that his former employer now licenses.</p><p>These are not fairy tales. They are examples of people of all ages wrestling with the tools, testing them, shaping them into something useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vPwFGtBlqtoAFKHU" /><figcaption>Photo by <a href="https://unsplash.com/@hasnainayaz_com?utm_source=medium&amp;utm_medium=referral">Hasnain Ayaz</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Quiet Invitation</h3><p>AI does not ask for grand declarations. It waits for a hand to try.</p><p>Play with it. Wrestle with it. Let it turn your routine into something lighter.</p><p>Curiosity is the key. From one attempt, another follows. From one spark, a fire begins.</p><p>Experiment. Feed a model your own notes. Automate one piece of routine work. Try a smaller tuned model where a large one feels heavy.</p><p>Let ideas spark. Watch what grows.</p><p>The levelling is real. Access to these tools is broader than it has ever been. What once needed armies can now be attempted by a few determined hands..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NeYMy3jN4rVxXzqM" /><figcaption>Photo by <a href="https://unsplash.com/@andriyba?utm_source=medium&amp;utm_medium=referral">Andriy Babchiy</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Last Word</h3><p>So should these worries live in our heads. I do not think so.</p><p>Fear is loud. Fear serves those who profit by it.</p><p>But curiosity is quiet. And curiosity builds.</p><p>When I hung up, my friend’s voice was lighter. The weight had gone. He could see that what looked like failure was only the first draft.</p><p>This is still a beginning. The field is wide. The future is being written by those willing to test, to play, to see what happens when judgment meets new tools.</p><p>Fear steals time. Curiosity gives back motion.</p><p>And it is motion that shapes the road ahead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MVg4BxHvAY-bFszA" /><figcaption>Photo by <a href="https://unsplash.com/@nikiclark?utm_source=medium&amp;utm_medium=referral">Niki Clark</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>A gentle nudge</strong>: try one small thing with AI this week. Nothing grand. Nothing polished. Just wrestle with it. See what comes alive.</p><p>You may find the road ahead is wider than you thought.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dda47fc782ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ghosts in the Compiler: How Agents Will Build the Future We Cannot Yet See]]></title>
            <link>https://rajesh-r.medium.com/ghosts-in-the-compiler-how-agents-will-build-the-future-we-cannot-yet-see-f4035427e8e0?source=rss-c65949bc17d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4035427e8e0</guid>
            <dc:creator><![CDATA[Rajesh Ramachander]]></dc:creator>
            <pubDate>Sat, 16 Aug 2025 15:49:08 GMT</pubDate>
            <atom:updated>2025-08-16T15:49:08.127Z</atom:updated>
            <content:encoded><![CDATA[<h4>From C and C++ in the 90s to PyTorch and agents today, why the next leap in software is delegation, not just automation.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AiyHkFQ5hylO_YF9" /><figcaption>Photo by <a href="https://unsplash.com/@abeso?utm_source=medium&amp;utm_medium=referral">Sebastian Bednarek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The night the machine stared back</p><p>In the 90s I learned to fear and love the machine. C and C++ on Windows NT and Unix. Pointers like live wires. A race condition could fell a factory. When you fixed a deadlock at 3 a.m. you felt the room exhale. That decade taught me that software is not just syntax; it is courage, precision, and the art of turning chaos into rhythm.</p><p>Decades later, after graduating from developer to enterprise architect to platform product leader, I watched another rhythm take hold. From C to C++ to Java to Ruby on Rails, each era carried its own beat. Then Python rose as the lingua franca. PyTorch and TensorFlow made learning a first class primitive. ResNet and YOLO turned pixels into structure. GANs transformed noise into imagination. In that moment, we crossed the line from logic to perception.</p><p>Now the machine does something even stranger. It plans. It critiques. It calls tools. It negotiates with other processes. It remembers. It does not just run our code, it helps write it.</p><p>Welcome to the age of agents.</p><h3>What makes an agent an agent</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pqa40L3iNgXeJEcx" /><figcaption>Photo by <a href="https://unsplash.com/@omilaev?utm_source=medium&amp;utm_medium=referral">Igor Omilaev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>An agent is software that can observe, decide, and act over time.</p><p>It holds state and memory across steps.</p><p>It performs tool use: APIs, databases, shells, vector stores.</p><p>It executes in loops with self critique and retries.</p><p>It can coordinate with other agents or people to pursue goals.</p><p>If a model is a brilliant function, an agent is a persistent colleague, a programmable unit of initiative.</p><p>This is why agents feel different from every prior abstraction. Frameworks boosted our productivity. Cloud gave us elastic compute. Agents give us delegation.</p><h3>Why this matters to every role</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r4GaAFzsGRlhFjSM" /><figcaption>Photo by <a href="https://unsplash.com/@ilyapavlov?utm_source=medium&amp;utm_medium=referral">Ilya Pavlov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Developers.</strong></p><p>You stop drowning in scaffolding and glue code. Pair with a build agent that spins up repos, tests, and CI. Ask a refactor agent to slice a monolith into services and prove the PRs pass. Use a verification agent to generate property based tests, mutate inputs, and surface edge cases you never thought of. You still own the architecture, the trade offs, the taste. You ship more of the parts that matter.</p><p><strong>Infrastructure and SRE.</strong></p><p>Think of auto remediation with a brain. Agents consume logs, metrics, and traces. They reconstruct causal graphs. They roll back, patch, or quarantine. They open precise tickets with evidence and proposed fixes. Your fire drills turn into postmortems you read over coffee.</p><p><strong>Architects.</strong></p><p>Your diagrams become executable plans. Coordination intelligence sits above microservices, observing latency, reshaping topology, retrying with backoff, or flipping routing rules to protect SLOs without waking a human. You design guardrails and intent; agents enforce them continuously.</p><p><strong>Product managers.</strong></p><p>Requirements stop being static. Spin up a discovery agent that synthesizes user feedback across tickets, chats, and reviews. Prototype flows become living sandboxes; analytics agents watch behavior and propose next iterations. Your backlog breathes.</p><p><strong>CEOs and business leaders.</strong></p><p>This is not only a cost story. It is a story of compounding leverage. One agent is convenient. Ten agents that share state across finance, legal, operations, and product become an always on staff that never forgets, never loses context, and improves daily. That bends the curve of time to value.</p><h3>The practical reality in 2025</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M--CE9KjTYFEVaJy" /><figcaption>Photo by <a href="https://unsplash.com/@zacharykeimig?utm_source=medium&amp;utm_medium=referral">Zachary Keimig</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This is not tomorrow. It is now.</p><p><strong>Code orchestration.</strong> Dev agents scaffold services in FastAPI, wire authentication, generate OpenAPI specs, containerize, write Helm charts, and stand up preview environments.</p><p><strong>ML pipelines.</strong> Research agents launch experiments in PyTorch Lightning, sweep hyperparameters, track metrics, and propose architecture tweaks. They cite the papers they used to justify a change.</p><p><strong>Vision systems.</strong> Domain agents fine tune detection models such as YOLO v8 on narrow datasets overnight, export ONNX or TensorRT artifacts, and ship edge ready builds.</p><p><strong>Ops.</strong> Observability agents watch traces, enrich incidents with root cause hypotheses, and test fixes in sandboxes before suggesting a safe rollout plan.</p><p><strong>Strategy.</strong> Market scout agents crawl public signals, synthesize competitor moves, connect them to your internal velocity, and surface the two moves most likely to change your quarter.</p><p>No single agent does everything. That is the point. You compose them the way you composed services. Only now the interface is intent, guardrails, and tools, not just RPC and ports.</p><h3>A developer’s compact for building with agents</h3><p>If we want this future to be useful and safe, we need discipline. Here is a compact I recommend for any serious team:</p><p><strong>Explicit goals and contracts.</strong></p><p>Every agent should have a clear objective, success metric, time budget, and tool budget. Treat it like a bounded microservice, not a wish.</p><p><strong>Immutable audit trails.</strong></p><p>Log every action, prompt, tool call, input, and output. Store diffs for code changes and data mutations. If it cannot be audited, it does not run in production.</p><p><strong>Least privilege by design.</strong></p><p>Scope credentials, sandboxes, and networks per agent. Use signed tool adapters and capability whitelists. Break glass flows for escalation.</p><p><strong>Deterministic envelopes.</strong></p><p>Surround stochastic behavior with deterministic checks: schema validators, type checkers, unit and property tests, idempotent retries.</p><p><strong>Human checkpoints where it counts.</strong></p><p>For code merges, migrations, policy changes, and cash movement require human review. Agents can stage, humans approve.</p><p><strong>Fitness functions as truth.</strong></p><p>Encode business invariants as tests. Agents optimize toward them. If an optimization violates a fitness function, it is a regression, full stop.</p><p>This is how we graduate from fun demos to production intelligence.</p><h3>A migration path that actually works</h3><p>You do not need a moonshot. Start like this:</p><p><strong>Phase 1:</strong> Pick one hated task. Stand up a small agent in a sandbox that does it end to end with logs on. Examples: Jira triage, flaky test isolation, release notes generation from merged PRs, or authoring data quality alerts.</p><p><strong>Phase 2:</strong> Add a second agent that consumes the first agent’s output. For example a reviewer agent that checks the triage decisions against policy and flags edge cases to a human.</p><p><strong>Phase 3:</strong> Introduce an orchestration layer: shared memory, tool registry, policy guardrails, and incident handling. Plug in observability.</p><p><strong>Phase 4:</strong> Promote one workflow to production behind feature flags and SLOs. Tie results to business metrics such as MTTR, lead time, activation, and churn. Kill what does not move the needle.</p><p>Measure. Keep what compounds. Agents that do not earn their keep should be removed like any other service.</p><h3>What changes and what does not</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EEbECvK8xLtnCSyo" /><figcaption>Photo by <a href="https://unsplash.com/@roger3010?utm_source=medium&amp;utm_medium=referral">Roger Bradshaw</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>What changes:</strong></p><ul><li>The unit of work shifts from ticket to goal.</li><li>The unit of software shifts from service to agent.</li><li>The developer’s superpower shifts from I can implement it to I can orchestrate it safely at scale.</li></ul><p><strong>What does not:</strong></p><ul><li>Architecture matters.</li><li>Tests matter.</li><li>Ownership matters.</li></ul><p>We are not abdicating. We are amplifying.</p><h3>The quiet promise</h3><p>In the old days, we kept the ghosts in the compiler at bay by understanding every instruction. Then we learned to trust layers we could not see such as JITs, kernels, schedulers, clouds, because they earned that trust.</p><p>Agents are the next layer. They will earn our trust the same way: by lifting weight, by failing loudly, by being auditable, and by letting humans remain the authors of intent.</p><p>If you build software, this is the moment. Pick a task. Wrap it in a guardrail. Give it to an agent. Watch what happens when the dust clears and the system starts to move on its own.</p><p>The future will not be written line by line. It will be conducted, by people who know how to make the ghosts work for them.</p><h3><strong>The Horizon Ahead</strong></h3><p>I began with stone-carved C code in the 90s. Today, I work with self-learning systems that can reason, adapt, and collaborate.</p><p>The arc between those two worlds is more than a career. It’s a story of technology evolving in lockstep with human imagination.</p><p>And the next chapter is <strong>agents as partners, not just tools</strong> is one I believe every developer, architect, and leader should help write.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1ob5QOG_AX2z1aQ9" /><figcaption>Photo by <a href="https://unsplash.com/@heyquilia?utm_source=medium&amp;utm_medium=referral">Kenny Eliason</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4035427e8e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Agents Beneath the Dust]]></title>
            <link>https://medium.com/illumination/the-agents-beneath-the-dust-5654a847817b?source=rss-c65949bc17d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5654a847817b</guid>
            <category><![CDATA[legacy-systems]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[workflow-automation]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <dc:creator><![CDATA[Rajesh Ramachander]]></dc:creator>
            <pubDate>Mon, 05 May 2025 13:40:30 GMT</pubDate>
            <atom:updated>2025-06-30T15:43:40.121Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U6_UG4Jn3GW0bzyx" /><figcaption>Photo by <a href="https://unsplash.com/@julientromeur?utm_source=medium&amp;utm_medium=referral">julien Tromeur</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There are workflows people forget exist.</p><p>Not because they are trivial, but because they are tedious.</p><p>Leases reviewed by hand. Claims stitched together from emails. Invoices matched to spreadsheets saved on a shared drive called “Accounts_OLD.”</p><p>This is where time disappears. Quietly. Daily.</p><p>These processes do not break with drama. They break with drift. A wrong date. A missing field. A renewal that went unnoticed because the calendar invite expired five years ago.</p><p>Software has tried to help. Most of it failed.</p><p>Not for lack of features, but because it expected a cleaner world.</p><p>The tools assumed the data would be structured. That users would follow rules. That formats would be standard. But formats are not standard. People improvise. Documents pile up. Fields are missing. And yet, the work has to get done.</p><p>That’s what makes agents interesting.</p><p>Not the ones trying to be clever.</p><p>The ones that are content being useful.</p><p>One reads the file and pulls out what looks important.</p><p>Another checks it against something else.</p><p>Another writes it down.</p><p>Another sets a reminder.</p><p>Another sends an email.</p><p>None of them do everything.</p><p>But together, they move the work forward.</p><p>They do not need you to redesign your workflow. They do not mind if the input is messy.</p><p>They just take what is there and nudge it a little closer to done.</p><p>It is quiet work. Often unnoticed.</p><p>But if you pay attention, you can see it.</p><p>The shape of something slowly changing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FJiQq9sSBfwEuZJL" /><figcaption>Photo by <a href="https://unsplash.com/@jdiegoph?utm_source=medium&amp;utm_medium=referral">Diego PH</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5654a847817b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/the-agents-beneath-the-dust-5654a847817b">The Agents Beneath the Dust</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Heatwave in Bangalore: A Statistical Odyssey]]></title>
            <link>https://medium.com/illumination/heatwave-in-bangalore-a-statistical-odyssey-cf38f8421fc0?source=rss-c65949bc17d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf38f8421fc0</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[statistical-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rajesh Ramachander]]></dc:creator>
            <pubDate>Wed, 24 Apr 2024 05:09:31 GMT</pubDate>
            <atom:updated>2024-04-24T05:09:31.341Z</atom:updated>
            <content:encoded><![CDATA[<h4>A father-daughter team navigates rising April temperatures through data analysis, strengthening bonds amid data exploration.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dCJmdk8gYheAMzIR" /><figcaption>Photo by <a href="https://unsplash.com/@liviuflo?utm_source=medium&amp;utm_medium=referral">Liviu Florescu</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the quiet of their Bangalore home, amidst the stifling embrace of the impending summer, Ryka, a soon-to-be college student with a penchant for numbers, observed the world beyond her window with a contemplative gaze. “Daddy,” she uttered, her voice tinged with concern, “Bangalore feels hotter every passing year. Look at this, April 2024, and it’s already 37 degrees.”</p><p>Arvind, a seasoned technocrat weathered by years of deciphering digital intricacies, strode purposefully to her side, his gaze as keen as the lines of code he’d forged through the annals of time. Fixing his eyes on the world beyond, a silent witness to the sweltering rise in temperature, he spoke with measured assurance, “Let’s not rush our judgment just yet,” his voice steady, betraying none of the turmoil within. “First, we must lay the groundwork with a hypothesis.”</p><p>Ryka raised an eyebrow, intrigued. “A what?”</p><p>“A hypothesis,” Arvind repeated, his voice firm. “We need to test if this heat is just another Bangalore summer or something more.”</p><p>Ryka nodded, eager to understand. “So, what are we testing?”</p><p>Arvind’s eyes gleamed with purpose. “We’ll start with the null hypothesis: 37 degrees in April is normal for Bangalore. The alternative? Well, that’s where it gets interesting.”</p><p>Ryka leaned in, hungry for answers. “And what’s the alternative?”</p><p>Arvind smiled, a glint of challenge in his eyes. “The alternative suggests this heat is different. It’s not your usual April sizzle. There’s something new in the air.”</p><p>Ryka nodded, the pieces starting to fall into place. “And how do we find out?”</p><p>“We’d fail to reject the null hypothesis,” Arvind explained succinctly. “But if it’s markedly different, we might have something worth investigating further.”</p><p>Ryka nodded, the concept beginning to crystallize. “So, it’s all about interpreting the data to see if there’s a meaningful pattern.”</p><p>“Exactly,” Arvind affirmed, a hint of satisfaction in his voice. “It’s about using statistics to uncover the truth hidden in the numbers.”</p><p>Arvind’s gaze turned to the tools of his trade. “With numbers, my dear,” he said, his voice low. “We’ll let the data speak for itself. And if there’s a story to tell, we’ll uncover it together.”</p><p>In their modest home, Arvind sat hunched over his laptop, the glow of the screencasting long shadows in the dimly lit room. Ryka, his daughter, stood nearby, her presence a silent but eager witness to her father’s digital pursuit.</p><p>“Daddy, what’s all this about?” Ryka’s voice cut through the quiet, her curiosity piqued by the intensity of Arvind’s focus.</p><p>“Just downloading the dataset,” Arvind replied tersely, his fingers dancing across the keyboard with practiced efficiency. “April temperatures, ’90 to ‘22.”</p><p>Ryka nodded, her eyes fixed on the screen as Arvind navigated the web interface with swift precision. The dataset materialized before them, a grid of numbers and dates filling the digital canvas.</p><p>With a decisive click, Arvind initiated the download, the silent dance of data flowing into his hard drive. Ryka leaned in closer, her gaze fixed on the unfolding tableau of information, each pixel a revelation waiting to be deciphered.</p><p>“Got it,” Arvind muttered, a brief flicker of satisfaction crossing his otherwise stoic expression. “Time to crunch some numbers.”</p><p>With a deft stroke, Arvind using Python filtered the DataFrame, isolating April temperatures from the sea of data. Missing values vanished into the digital ether, leaving behind a pristine collection of numerical artifacts. Ryka watched, her gaze following Arvind’s every move, as he meticulously prepared the dataset for analysis.</p><pre>import matplotlib.pyplot as plt<br>import pandas as pd<br>from scipy.stats import shapiro, mannwhitneyu<br><br># Load data from the CSV file into a DataFrame<br>df = pd.read_csv(&#39;Temprature_Data_1990_2022_BangaloreCity.csv&#39;)<br><br># Convert the &#39;time&#39; column to datetime format<br>df[&#39;time&#39;] = pd.to_datetime(df[&#39;time&#39;], format=&#39;%d-%m-%Y&#39;)<br><br># Filter the DataFrame to include only April temperatures and remove NaN values<br>april_temperatures = df[df[&#39;time&#39;].dt.month == 4][&#39;tmax&#39;].dropna()</pre><p>Arvind’s gaze lingered on the screen, his fingers poised above the keyboard. The rhythmic tap of keys echoed in the dimly lit room as he delved into the heart of the data. Ryka, perched nearby, watched with keen interest, her youthful curiosity piqued by the solemnity of the moment.</p><pre># Perform Shapiro-Wilk test for normality<br>stat_shapiro, p_shapiro = shapiro(april_temperatures)</pre><p>As the results unfolded before them, Arvind’s brow furrowed in contemplation. The Shapiro-Wilk test, a silent arbiter of truth, cast its judgment with unwavering certainty. With a statistic of 0.9632 and a p-value of 0.0000, the verdict was clear — the data was not normally distributed. “It seems,” Arvind remarked, “we’re dealing with non-normal distribution here.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fjlcsUQ4xNcIkDC_DHerlA.png" /><figcaption>Figure 1: Shapiro-Wilk Test Results</figcaption></figure><p>“Daddy,” Ryka inquired, “what does normality in data imply and what does its absence imply?” Arvind pondered for a moment, his brow furrowing slightly. “Well, sweetheart,” he began, “if the data had shown a normal distribution, our approach would have been different. We could have employed parametric tests, such as the t-test or ANOVA, to compare means or variances between groups.” Ryka nodded, absorbing the information. “So, the type of test we choose depends on the characteristics of our data?”</p><p>“Exactly,” Arvind confirmed with a nod. “It’s crucial to select the appropriate statistical method based on the nature of the data and the hypothesis being tested. That’s the essence of sound statistical analysis. Parametric tests, like the ones I mentioned, assume that the data follows a specific distribution, such as the normal distribution. They provide powerful tools for inference when these assumptions are met.”</p><p>Ryka, ever perceptive, sensed the weight of her father’s discovery. The room hung heavy with the implications of their findings, the air thick with anticipation.</p><p>Arvind’s voice cut through the silence, his words laden with purpose. “Not to worry, Ryka,” he reassured, his tone unwavering. “We have an alternative.”</p><p>With a decisive keystroke, Arvind propelled their analysis forward. The latest April temperature observation, a solitary figure in a sea of data, loomed large at 37 degrees Celsius. Ryka’s eyes remained fixed on the screen, her anticipation palpable as Arvind initiated the Mann-Whitney U test with practiced precision.</p><p>For a moment, the room hung in suspended animation, the soft glow of the computer screencasting long shadows across the walls. Ryka held her breath, as the test unfolded before them.</p><p>As the screen flickered with results, Arvind’s demeanor remained steadfast, his gaze penetrating the data with unyielding resolve. “At a 5% significance level,” he declared with measured certainty, “we fail to toss aside the null hypothesis.” His voice, like granite, betrayed no hint of hesitation. “With a p-value score of 0.0988,” he continued, “there’s no real gap between the latest April 2024 temperature and Bangalore’s historical April temperatures.”</p><p>Ryka let out a sigh of relief, the tension dissolving like morning mist. She nodded at her father, gratitude filling her. Together, they had weathered uncertainty’s storm, emerging unscathed.</p><pre># Latest temperature observation in April 2024<br>latest_observation = 37<br><br># Perform Mann-Whitney U test to compare the latest observation with historical April temperatures<br>stat_mannwhitneyu, p_mannwhitneyu = mannwhitneyu(april_temperatures, [latest_observation])</pre><p>The Mann-Whitney U test had spoken, its p-value echoing through the room like a whisper of validation, affirming their journey through the labyrinth of statistical analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xoFWv80bGFhpE-m2gEccKw.png" /><figcaption>Figure 2: Mann-Whitney U Test Results</figcaption></figure><p>“Daddy,” Ryka queried, “why did we opt for the Mann-Whitney test instead?”</p><p>Arvind leaned back, considering Ryka’s question thoughtfully. “Well, my dear,” he began, “the Mann-Whitney U test is a non-parametric test. Unlike parametric tests, it doesn’t assume a specific distribution of the data. It’s more robust and applicable in situations where the data deviates from normality, like ours did.”</p><p>Ryka nodded, absorbing the explanation. “So, it’s like a versatile tool that can handle different types of data?”</p><p>“Exactly,” Arvind affirmed with a smile. “The Mann-Whitney test allows us to compare the distributions of two groups without making assumptions about the underlying distribution. It’s a valuable tool in our statistical toolkit, especially when dealing with real-world data that may not always conform to idealized distributions.”</p><p>“Daddy, the test says April’s temp isn’t much. What’s that mean?” Ryka asked. Arvind chuckled, “Means, kiddo, this year’s temp isn’t special.”</p><p>“Ah, so it’s no big deal?” Ryka queried. Arvind explained, “Well, it’s like fishing in a pond. Got a fish, but not the big one you wanted.”</p><p>“Got it, Dad. So, we need more than just the test?” Ryka wondered. “Exactly, dear. We need the whole story,” Arvind confirmed. “Not just bits and pieces.”</p><p>In the quietude of their Bangalore abode, Ryka, stirred by their statistical voyage, felt an insatiable urge to plunge deeper into these enigmatic tests, yearning to unearth their veiled mysteries.</p><p>As nightfall descended, the cool zephyr whispered relief from the day’s fervor. Father Arvind and Ryka, seated side by side, witnessed a kaleidoscope of reflections dancing across their minds, mirroring the intricate tapestry woven by statistical theory. The scorching blaze of the day had kindled a pilgrimage into the essence of statistics, unfurling the cadences pulsating beneath the veneer of raw data.</p><p>Amidst the tranquil dusk, they discovered not only sanctuary from the oppressive heat but also a shared enchantment with the harmony bestowed by statistical tenets upon their comprehension of the cosmos. What once loomed as an arduous summer’s day now emerged as a fertile canvas for their expedition, binding them together in awe and inquisitiveness.</p><p>Yet, as they nestled into the serenity, an abrupt intrusion shattered the tranquility. A news bulletin flashed upon Arvind’s mobile phone screen, injecting a spark of anticipation into the dimly illuminated chamber. “Rain forecasted in Bengaluru,” it heralded, a pledge of succor for the parched terrain and a testament to nature’s capricious allure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pb2qjY71hr3aFBTH" /><figcaption>Photo by <a href="https://unsplash.com/@nate072107?utm_source=medium&amp;utm_medium=referral">NATHAN MULLET</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ol><li>#Python</li><li>#Statistics</li><li>#MachineLearning</li><li>#DataVisualization</li><li>#DataScience</li><li>#DataAnalysis</li><li>#StatisticalAnalysis</li><li>#DataInsights</li><li>#DataStorytelling</li><li>#DataAnalytics</li><li>#DataResearch</li><li>#StatisticalMethods</li><li>#DataExploration</li><li>#ResearchInsights</li><li>#StatisticalModeling</li><li>#DataDrivenDiscovery</li><li>#ShortStory</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf38f8421fc0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/heatwave-in-bangalore-a-statistical-odyssey-cf38f8421fc0">Heatwave in Bangalore: A Statistical Odyssey</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Code Interpreter: A Powerful Tool for Generating Code from Natural Language]]></title>
            <link>https://medium.com/illumination/the-code-interpreter-a-powerful-tool-for-generating-code-from-natural-language-4507472d3b1?source=rss-c65949bc17d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4507472d3b1</guid>
            <dc:creator><![CDATA[Rajesh Ramachander]]></dc:creator>
            <pubDate>Sun, 23 Jul 2023 17:27:37 GMT</pubDate>
            <atom:updated>2023-07-25T07:19:29.234Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2C3qaroB4_h1IZAY" /><figcaption>Photo by <a href="https://unsplash.com/@aditya1702?utm_source=medium&amp;utm_medium=referral">Aditya Vyas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Imagine a world where programming is as simple as expressing your thoughts in plain English, and watching the magic happen as a machine transforms them into functional code. Well, that world is not far away, thanks to OpenAI’s incredible creation called the Code Interpreter which is part of their ChatGPT offering. This groundbreaking AI tool is revolutionizing the way we write code and tapping into our inner superhero programmer. How can Code Interpreter be tapped by the broader community of software developers, enthusiasts, and businesses?</p><p><strong>Non-coder or Business</strong></p><ul><li>Write a natural language description of your application.</li><li>Run the Code Interpreter on your description.</li><li>Compile and run the code.</li></ul><p><strong>Experienced developer</strong></p><ul><li>Generate code for common patterns.</li><li>Catch errors in your code.</li></ul><p>The Code Interpreter can help make coding more accessible to everyone and improve code quality. It is pertinant to discuss Code Interpreter in conjunction with Copilot. The Code Interpreter and Copilot are both AI-powered tools that can help developers write code. However, there are some key differences between the two tools.</p><p>The Code Interpreter is a natural language processing tool that can generate code from a natural language description. This means that non-coders can use the Code Interpreter to create applications without having to learn how to code. Copilot, on the other hand, is a code completion tool that can suggest code snippets based on the code that you are currently writing. This means that Copilot is only useful for experienced developers who are already familiar with coding.</p><p>Another difference between the two tools is that the Code Interpreter is still under development, while Copilot is a more mature product. This means that the Code Interpreter may not be as accurate or reliable as Copilot. However, the Code Interpreter is still a powerful tool that can help developers to write code more quickly and easily.</p><p>Here is a table that summarizes the key differences between the Code Interpreter and Copilot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8x5W3XzWeCnpjMCD40SzVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pyp140DS-SY7H-Th" /><figcaption>Photo by <a href="https://unsplash.com/@jupp?utm_source=medium&amp;utm_medium=referral">Jonathan Kemper</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Powering the Code Interpreter is a remarkable OpenAI’s LLM (Large Language Model). This powerful model has been trained on a massive amount of code and natural language data, equipping it with the ability to understand the meaning behind both code and text. This means that the Code Interpreter can effortlessly translate your natural language instructions into accurate and efficient code in any commonly used programming language.</p><p>Now, let’s explore some of the mind-boggling real-world applications of the Code Interpreter:</p><ul><li>Picture this: software engineers automating repetitive tasks like generating code for common patterns or catching errors through code linting. The Code Interpreter makes it all possible, freeing up valuable time and energy for the developer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zg3ITT_7QEpvPohu" /><figcaption>Photo by <a href="https://unsplash.com/de/@lennykuhne?utm_source=medium&amp;utm_medium=referral">Lenny Kuhne</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>- The cherry on top: data scientists building complex machine learning models without needing to write a single line of code. Yes, you heard that right! The Code Interpreter is a dream come true for those who want to dive into machine learning without the coding hurdles.</p><p>- Wait, there’s more! Even if you’re not a technical wizard, the Code Interpreter welcomes you to the world of coding. With a simple description of what you want your application to do, it brings your ideas to life, opening doors for non-technical users to create simple applications effortlessly.</p><h4><strong>Using CodeInterpreter API from Python directly</strong></h4><p>I tapped into a recently developed package such as codeinterpreterapi that plugs into OpenAPI Code Interpreter and got some amazing outcomes. Look at this innocent piece of Python code below:</p><pre>import configparser<br>import os<br><br># Create a config parser<br>config = configparser.ConfigParser()<br><br># Read the configuration from the file<br>config.read(&#39;config.ini&#39;)<br><br># Set the environment variables<br>os.environ[&quot;OPENAI_API_KEY&quot;] = config.get(&#39;DEFAULT&#39;, &#39;OPENAI_API_KEY&#39;)<br>os.environ[&quot;VERBOSE&quot;] = config.get(&#39;DEFAULT&#39;, &#39;VERBOSE&#39;)<br><br>from codeinterpreterapi import CodeInterpreterSession<br>import nest_asyncio<br>nest_asyncio.apply()<br><br>import asyncio<br>from datetime import datetime<br>from codeinterpreterapi.schema import File<br><br>async def stockdata_generator():<br><br>    async with CodeInterpreterSession() as session:<br><br>        currentdate = datetime.now().strftime(&quot;%Y-%m-%d&quot;)<br>        user_request = f&#39;&#39;&#39;give a fictitious stock data for forecasting for an year before current date (Current date is {currentdate}). The trading days in a year are around 252.The initial price of the stock will be set to $100. The stock will have a daily return that will be normally distributed with mean 0.0005 (corresponding to an annual return of about 12.6%) and standard deviation 0.02 (which is a quite common value for real stocks). The stock price will follow a geometric random walk. Save the stock data in a csv file format as stock_data.csv with two columns date and price respectively.&#39;&#39;&#39;<br><br>        files = [<br>        ]<br><br><br>        # generate the response<br>        response = await session.generate_response(<br>            user_request, files=files<br>        )<br><br>        print(&quot;AI: &quot;, response.content)<br>        for file in response.files:<br>            if file.name == &quot;stock_data.csv&quot;:<br>                file.save(&quot;stock_data.csv&quot;)<br>            else:<br>                file.show_image()<br><br><br>asyncio.run(stockdata_generator())</pre><p>This code will generate a CSV file containing the stock data. The file will have two columns: date and price. The date column will contain the date of the stock price, and the price column will contain the price of the stock on that date.</p><p>The code also prints the generated stock data to the console. This can be helpful for debugging the code or for seeing the data before it is saved to a file.</p><p>To run the code, you will need to install the codeinterpreterapi Python package. You can do this with the following command:</p><pre>pip install codeinterpretapi      </pre><p>Once you have installed the package, you can run the code by saving it as a Python file and then running it from the command line.</p><p>As you can see, this code is quite simple.<strong> </strong>But with the help of codeinterpreterapi, it can generate realistic stock data that can be used for forecasting or other purposes.</p><h4><strong>Visualizing stock data with CodeInterpreter API</strong></h4><p>The code snippet above can be used to generate a line chart for stock data. The line chart will show the price of the stock over time.</p><p>To run the code, you will need to install the codeinterpreterapi Python package and the matplotlib Python package.</p><pre>async def stockdata_visualizer():<br><br>    async with CodeInterpreterSession() as session:<br><br>        user_request = &quot;Generate a linechart for this stock dataset. X-axis is date and Y-axis is price&quot;<br>        files = [<br>            File.from_path(&quot;stock_data.csv&quot;),<br>        ]<br><br>        # generate the response<br>        response = await session.generate_response(<br>            user_request, files=files<br>        )<br><br>        # ouput the response (text + image)<br>        print(&quot;AI: &quot;, response.content)<br>        for file in response.files:<br>            if file.name == &quot;stock_data.csv&quot;:<br>                continue<br>            else:<br>                file.show_image()<br><br>                # plot the line chart<br>                data = file.content<br>                dates = data[&quot;dates&quot;]<br>                prices = data[&quot;prices&quot;]<br>                plt.plot(dates, prices)<br>                plt.show()<br><br><br>asyncio.run(stockdata_visualizer())</pre><p><strong>Here is an example of a line chart that can be generated from the code snippet above:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*L2-bhrqsar_j6EWFnLcNiQ.png" /></figure><p>The Code Interpreter is not really required to plot a line chart in the above example. The person who wrote the code could have just as easily read the data from the CSV file and plotted the chart themselves.</p><p>However, I think the example still shows the potential of the Code Interpreter. The Code Interpreter was able to generate the code to plot the line chart without any human intervention. This means that the Code Interpreter could be used to automate the process of plotting charts.</p><p>For example, the Code Interpreter could be used to plot different charts or ask for interpration through charts for a large dataset. This would save the person who wrote the code a lot of time and effort.</p><p>Another example where the Code Interpreter could be useful is for generating code to plot line charts for different types of data. For example, the Code Interpreter could be used to plot line charts for data that is stored in different formats, such as CSV files, JSON files, or XML files.</p><p>The Code Interpreter allows us to write natural language descriptions of what we want to do, and the library translates these descriptions into code. This can be a powerful tool for developers who want to automate tasks or explore new ideas in computer science.</p><p>Here’s a association diagram that might help to visualize what’s happening:</p><pre>Natural language description -&gt; Code Interpreter -&gt; Code</pre><p>The natural language description is what we write in the stockdata_visualizer function. The Code Interpreter translates this description into code, which is then printed to the console.</p><h4><strong>How to protect your privacy and safety when using any code interpreter APIs</strong></h4><p>APIs are powerful tools that can be used to access data and functionality from other websites and applications. However, there are some risks associated with using APIs, including the potential for data breaches and privacy violations.</p><p>Here are some tips for protecting your privacy and safety when using APIs:</p><ul><li><strong>Only share data that is necessary.</strong> The less data you share, the less risk there is that it will be compromised.</li><li><strong>Be aware of the risks.</strong> There is always some risk associated with sharing data online. However, by following these tips, you can help to minimize the risk.</li><li><strong>Back up your data regularly.</strong> This will help you to restore your data if the API is shut down.</li></ul><p>By following these tips, you can help protect your privacy and safety when using APIs.</p><h3>The Code Interpreter: The Future of Programming</h3><p>The Code Interpreter is a powerful new tool that is revolutionizing the way we code. This AI-powered tool allows developers to generate synthetic data, visualize data, and build machine learning models by simply providing a natural language description of what they want to do.</p><p>This means that developers can now use data science to solve problems without having to be experts in statistics or machine learning. This is a game-changer, and it has the potential to revolutionize the way we use data science.</p><p>The Code Interpreter is still under beta at the time of this writing, but its potential to reshape the coding landscape is awe-inspiring. It allows programmers to focus on the more creative and strategic aspects of their work, while enhancing code quality and making coding more accessible to learners.</p><p>So, are you ready to tap into your inner superhero programmer?</p><p>The Code Interpreter is the mighty tool that can help you become a more productive and imaginative programmer. Here are a few additional benefits of using the Code Interpreter:</p><ol><li>Learning new programming languages becomes a breeze.</li><li>The Code Interpreter provides natural language explanations of code, allowing you to understand new concepts more easily and accelerate your learning</li><li>Debugging your code becomes a piece of cake.</li><li>The Code Interpreter can identify potential errors and suggest improvements, helping you write more reliable and efficient code.</li><li>Collaboration with fellow programmers becomes seamless.</li><li>The Code Interpreter can translate your natural language instructions into code that others can understand, making communication clearer and more efficient.</li></ol><p>If you’re looking for a way to take your coding skills to the next level, the Code Interpreter is the tool for you. With its powerful AI capabilities, the Code Interpreter can help you write better code, faster.</p><h4>Here are some examples of how the Code Interpreter can be used:</h4><ol><li>Generate synthetic data: The Code Interpreter can generate synthetic data that matches your specific requirements. This can be used for testing your code or for creating training data for machine learning models.</li><li>Visualize data: The Code Interpreter can visualize data in a variety of ways, including charts, graphs, and tables. This can help you understand your data better and make better decisions.</li><li>Build machine learning models:The Code Interpreter can help you build machine learning models that can be used to make predictions or classify data. This can be used for a variety of purposes, such as fraud detection, customer segmentation, and product recommendations.</li></ol><p><strong>The possibilities are endless! </strong>The Code Interpreter is a powerful tool that can be used for a variety of tasks. If you’re looking for a way to improve your coding skills or to automate your work, the Code Interpreter is a great option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EPSjxtF_TzGjRkLo" /><figcaption>Photo by <a href="https://unsplash.com/@mimithian?utm_source=medium&amp;utm_medium=referral">Mimi Thian</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The Code Interpreter holds the key to unlocking your programming skills to the next level. Embracing this powerful tool and others similar to this is akin to embarking on an exciting journey.</p><h4>Industry Applications: Here are some specific examples of how the Code Interpreter can be used in industry:</h4><ul><li>A data scientist could use the Code Interpreter to generate synthetic data that matches the specific requirements of their project. This would allow them to test their code and create training data for machine learning models without having to collect their own data.</li><li>A software developer could use the Code Interpreter to automate repetitive tasks, such as generating code for common patterns or catching errors through code linting. This would free up the developer to focus on more creative and strategic tasks.</li><li>A financial analyst could use the Code Interpreter to generate financial models that can be used to make investment decisions. This would allow the analyst to analyze large amounts of data quickly and make more informed decisions.</li><li>A healthcare professional could use the Code Interpreter to generate medical models that can be used to diagnose diseases or develop new treatments. This would allow the professional to make decisions about patient care based on complex data.</li><li>An educator could use the Code Interpreter to create interactive learning experiences for students. This would help students learn new concepts more effectively and engage them in the learning process.</li></ul><p>These are just a few examples of the many ways that the Code Interpreter can be used in industry. As the tool continues to develop, we can expect to see even more innovative and creative applications emerge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FigGHvW6qZfD8_2M" /><figcaption>Photo by <a href="https://unsplash.com/@jstrippa?utm_source=medium&amp;utm_medium=referral">James Harrison</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><strong>Limitations of Code Interpreter:</strong></h4><p>The Code Interpreter is a powerful tool that can help you generate code from natural language descriptions. However, it is important to be aware of its limitations before using it.</p><ol><li>One limitation of the Code Interpreter is that it is still under development. This means that it may not be as accurate or reliable as other tools. For example, the Code Interpreter may generate incorrect code, which could lead to errors in your application or even security vulnerabilities. The Code Interpreter may also generate inefficient code, which could make your application slower or less efficient.</li><li>Another limitation of the Code Interpreter is that it is designed for a wide range of users, from non-coders to experienced developers. This means that it may not be as easy to use for some users as other tools. For example, non-coders may find it difficult to understand the natural language descriptions that the Code Interpreter requires.</li><li>Finally, it is important to remember that the Code Interpreter is a tool. It is not a replacement for human judgment. You should always review the code that the Code Interpreter generates before you use it. This will help you to ensure that the code is accurate, reliable, and efficient.</li></ol><p>Here are some tips for using the Code Interpreter safely and effectively:</p><h4><strong>Start with simple tasks:</strong></h4><p>When you are first starting out with the Code Interpreter, it is a good idea to start with simple tasks. This will help you to get a feel for how the tool works and to identify any potential problems.</p><h4><strong>Use it as a learning tool:</strong></h4><p>The Code Interpreter can also be used as a learning tool. If you are not familiar with coding, you can use the Code Interpreter to generate code and then study the code to learn how it works.</p><h4><strong>Be careful with complex tasks:</strong></h4><p>When you are working on complex tasks, it is important to be careful with the Code Interpreter. The Code Interpreter may not be able to generate accurate or efficient code for complex tasks.</p><h4><strong>Always review the code:</strong></h4><p>Always review the code that the Code Interpreter generates before you use it. This will help you to ensure that the code is accurate, reliable, and efficient.</p><p>The Code Interpreter is a powerful tool that has the potential to revolutionize the way we code. However, it is important to be aware of its limitations before using it. By following these tips, you can use the Code Interpreter safely and effectively. The Code Interpreter is still under development, but it has the potential to revolutionize the way we work in many industries. As the tool continues to develop, we can expect to see even more innovative and creative applications emerge.</p><p>I think it is fair to say that Code Interpreter is a powerful tool that has the potential to revolutionize the way we code. However, it is important to be realistic about its limitations. It is not a replacement for human judgment, and it should not be used without careful review.</p><p>I am excited to see how Copilot and other code generation tools develop in the future. I believe that these tools have the potential to make coding more accessible and efficient for everyone.</p><p>I hope this blog has ignited a spark within you to embrace the Code Interpreter and be part of the bright future, where AI takes center stage. Are you ready to embark on a thrilling adventure?</p><p>#CodeInterpreter</p><p>#AIforCoding</p><p>#CodingMadeEasy</p><p>#TheFutureofProgramming</p><p>#AIinSoftwareDevelopment</p><p>#ProgrammingforNonTechnicalUsers</p><p>#CodingforEveryone</p><p>#MakeCodeMoreAccessible</p><p>#EmpoweringProgrammers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4507472d3b1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/the-code-interpreter-a-powerful-tool-for-generating-code-from-natural-language-4507472d3b1">The Code Interpreter: A Powerful Tool for Generating Code from Natural Language</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AI Is Transforming Our World]]></title>
            <link>https://medium.com/illumination/how-ai-is-transforming-our-world-67eb328b91ea?source=rss-c65949bc17d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/67eb328b91ea</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Rajesh Ramachander]]></dc:creator>
            <pubDate>Thu, 24 Feb 2022 14:04:46 GMT</pubDate>
            <atom:updated>2022-03-11T22:43:05.505Z</atom:updated>
            <content:encoded><![CDATA[<h4>Explore the world of AI</h4><p>Updated: Feb 28</p><p>Artificial Intelligence (AI) is a machine’s ability to learn, create, and solve business problems closer to how a human performs. AI systems accomplish this by programs that self-teach to a variety of tasks. From playing chess, driving robots, to self-driving cars, AI has rapidly advanced more in the past decade than ever before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*55DdokBeB3u0n47r" /><figcaption>Photo by <a href="https://unsplash.com/@maximalfocus?utm_source=medium&amp;utm_medium=referral">Maximalfocus</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The advancement happened by the enthusiastic discovery of applications of AI in various human enterprises. As a result, the technology space has revolutionized with surging AI-driven applications cutting across business domains. For example, AI tech companies now collaborate with manufacturers. They provide data science and analytical abilities to improve customer experiences, speed up product development and supply chain management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*htaHkGc5Mm5UTiAq" /><figcaption>Photo by <a href="https://unsplash.com/@ninjason?utm_source=medium&amp;utm_medium=referral">Jason Leung</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To list a few notable jumps across industries. The traditional Brick-and-mortar retail business houses have rapidly acquired AI technology to stay ahead and engage with their customers to sell products. The auto industry has adopted AI technologies into its vehicle manufacturing core. The leading vehicle manufacturers such as Tesla employ AI to maintain and monitor EV batteries. Recently, a robot successfully performed keyhole surgery on pigs without human help.</p><p>AI-based systems perform repetitive tasks happily without needing to rest with great accuracy, a lower error rate, and quicker turnaround. However, there are considerable challenges to be overcome when deploying AI systems in ethics and privacy. Yet, the world is poised for better times if AI can be deployed productively and continues to evolve further. AI will become a vital part of human lives in the times to come. The most suitable way to prepare for this will be by investing in AI education and training.</p><p>Artificial Intelligence (AI) is a machine’s ability to learn, create, and solve business problems closer to how a human performs. AI systems accomplish this by programs that self-teach to a variety of tasks. From playing chess, driving robots, to self-driving cars, AI has rapidly advanced more in the past decade than ever before.</p><p>The advancement happened by the enthusiastic discovery of applications of AI in various human enterprises. As a result, the technology space has revolutionized with surging AI-driven applications cutting across business domains. For example, AI tech companies now collaborate with manufacturers. They provide data science and analytical abilities to improve customer experiences, speed up product development and supply chain management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mxx1xFtQhxSDnD7h" /><figcaption>Photo by <a href="https://unsplash.com/@minhphamdesign?utm_source=medium&amp;utm_medium=referral">Minh Pham</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To list a few notable jumps across industries. The traditional Brick-and-mortar retail business houses have rapidly acquired AI technology to stay ahead and engage with their customers to sell products. The auto industry has adopted AI technologies into its vehicle manufacturing core. The leading vehicle manufacturers such as Tesla employ AI to maintain and monitor EV batteries. Recently, a robot successfully performed keyhole surgery on pigs without human help.</p><p>AI-based systems perform repetitive tasks happily without needing to rest with great accuracy, a lower error rate, and quicker turnaround. However, there are considerable challenges to be overcome when deploying AI systems in ethics and privacy. Yet, the world is poised for better times if AI can be deployed productively and continues to evolve further. AI will become a vital part of human lives in the times to come. The most suitable way to prepare for this will be by investing in AI education and training.</p><p><em>Originally published at </em><a href="https://www.yhatcorr.com/post/how-ai-is-transforming-our-world"><em>https://www.yhatcorr.com</em></a><em> on February 24, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67eb328b91ea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/how-ai-is-transforming-our-world-67eb328b91ea">How AI Is Transforming Our World</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Simplified View On Neural Network Activation Functions]]></title>
            <link>https://medium.com/illumination/a-simplified-view-on-neural-network-activation-functions-37a947437f69?source=rss-c65949bc17d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/37a947437f69</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Rajesh Ramachander]]></dc:creator>
            <pubDate>Sat, 11 Sep 2021 21:59:35 GMT</pubDate>
            <atom:updated>2021-09-11T21:59:35.695Z</atom:updated>
            <content:encoded><![CDATA[<p>Understand Nonlinear Activation Functions In Neural Network.</p><p>By Rajesh R</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TSYkqdSM2mbGGLnO" /><figcaption>Photo by <a href="https://unsplash.com/@museumsvictoria?utm_source=medium&amp;utm_medium=referral">Museums Victoria</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In neural network architecture, the neurons will either have to be either active, i.e., fired, or be in an inactive state.</p><p>Let y be the value of a neuron at any point in the neural network.<br>Then y = Sum (Weights * input + bias).</p><p>This ‘y’ value can range anywhere between -infinity to +infinity. This value is acceptable if all we model is linear regression. In such cases, the activation function creates an output signal proportional to the input, as below.</p><p>Thus, Y = c * y, for linear transformation.</p><p>The c is a constant and multiple. Thus, a neural network with a linear activation function will not use back-propagation to improve prediction and collapses into a single-layer neural network of limited ability.</p><p>Most neural networks involve modeling complex data, such as images, video, audio, and data sets that are nonlinear or have high dimensionality. Nonlinear functions allow back-propagation and stacking of multiple hidden layers to learn complex data with a high level of accuracy. The activation function for a nonlinear transformation applied on ‘y’ can be represented below.</p><p>Y = Activation Function(y), for nonlinear transformation.</p><p>Thus, in the above equation, the activation function can transform the summed weighted input from the node to the node’s activation in a neural network. Furthermore, the nonlinear activation functions convert the linear information into a nonlinear output, thus facilitating high order dimensions for deep neural networks.</p><p>The well-known nonlinear activation functions in neural networks are Sigmoid, Tanh, ReLU, and Leaky ReLU, among many others.</p><h4>Sigmoid Activation Function</h4><p>The sigmoid function is a logistic function with an output ranging between 0 and 1. Now, irrespective of the input value, this causes a particular problem called Vanishing Gradient, where a significant change in the input of the sigmoid function causes a slight change in the output. Hence, the derivative becomes small, making learning slow and ineffective for large networks.</p><pre>import matplotlib.pyplot as plt<br>import numpy as np<br>import math<br>  <br>x = np.linspace(-10, 10, 100)<br><br>sigmoid = lambda x: 1/(1 + np.exp(-x))  <br>plt.plot(x, sigmoid(x))<br>plt.xlabel(&quot;x&quot;)<br>plt.ylabel(&quot;Sigmoid(X)&quot;)<br>  <br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*sVvU7U192yZEc-pDu9ycsg.png" /></figure><h4>Tanh Activation Function</h4><p>The tanh function is just a rescaled version of the logistic sigmoid function with a range of -1 to 1. It is worth noting that in both the Sigmoid and Tanh, a neuron saturates whenever large weights cause the neuron to produce gradients of values very close to the extremities, resulting in either under-fitting or over-fitting respectively.</p><pre>tanh = lambda x: (np.exp(x)-np.exp(-x))/(np.exp(x)+np.exp(-x))<br>plt.plot(x,tanh(x))<br>plt.xlabel(&quot;x&quot;)<br>plt.ylabel(&quot;Tanh(X)&quot;)<br>  <br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*3HQ9KP4LiKANon8gvn2tDQ.png" /></figure><h4>ReLU Activation Function</h4><p>The Rectified linear unit (ReLU) activation function is the most widely used for deep learning applications. The ReLU activation function applies a threshold operation to the input element, where values below or equal to 0 is 0. Now, when using ReLU, the stepwise process evaluates to 0; whenever the input is less than or equal to 0, the gradient is 0. Repeated training causing neurons to be 0 will eventually make the neuron always output 0 as its weights never get changed — this problem of ‘Dead Neurons’ decreases the capability of the neural network. Hidden layers mainly use ReLU activation.</p><pre>relu = lambda x: x*(x&gt;0)<br><br>plt.plot(x,relu(x))<br>plt.xlabel(&quot;x&quot;)<br>plt.ylabel(&quot;ReLU(X)&quot;)<br><br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*FKO5tHDxABn-KjosgGCvbQ.png" /></figure><h4>Leaky ReLU Activation Function</h4><p>The Leaky ReLU is an improvement over ReLU. Firstly, ReLU is not continuously differentiable and fails at 0. Additionally, ReLU sets all values &lt; 0 to zero. The neurons arriving at large negative values cannot recover from being stuck at 0. The neuron effectively dies and results in the dying ReLU problem. The impact of this problem may be that the network essentially stops learning and underperforms. Leaky ReLU comes to the rescue in such cases. The leaky ReLU is a variant of ReLU, where when x&lt;0, it applies a small, non-zero, constant gradient. Leaky ReLU is also a solution to ‘Vanishing Gradients’.</p><pre>leaky_relu = lambda x: x if x &gt; 0 else 0.01*x<br><br>plt.plot(x,list(map(leaky_relu,x)))<br>plt.xlabel(&quot;x&quot;)<br>plt.ylabel(&quot;Leaky ReLU(X)&quot;)<br><br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*vR2MUaI3Rvms8iV5KJrO9g.png" /></figure><h4>Quick Comparison Chart</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*KxoW6g-HQig9163ZoJKwOg.png" /></figure><h4>Conclusion</h4><p>The choice of activation function is vital in neural networks. All activation functions must be differentiable and quickly converge to get optimal values of the weights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L1-8tqIv-FiMYAxD" /><figcaption>Photo by <a href="https://unsplash.com/@sallybrad2016?utm_source=medium&amp;utm_medium=referral">Preethi Viswanathan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Further Reading</h4><p><a href="https://machinelearningmastery.com/how-to-fix-vanishing-gradients-using-the-rectified-linear-activation-function/">How to Fix the Vanishing Gradients Problem Using the ReLU.</a></p><p><a href="https://arxiv.org/pdf/1811.03378.pdf">Comparison of Trends in Practice and Research for Deep Learning.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37a947437f69" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/a-simplified-view-on-neural-network-activation-functions-37a947437f69">A Simplified View On Neural Network Activation Functions</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Whatsapp Chat Analysis]]></title>
            <link>https://rajesh-r.medium.com/whatsapp-chat-analysis-749ada92a248?source=rss-c65949bc17d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/749ada92a248</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[data-vizualisation]]></category>
            <dc:creator><![CDATA[Rajesh Ramachander]]></dc:creator>
            <pubDate>Sun, 03 Jan 2021 09:12:50 GMT</pubDate>
            <atom:updated>2021-01-04T13:14:17.202Z</atom:updated>
            <content:encoded><![CDATA[<p>Analyze your Whatsapp group chat using Python.</p><p>By Rajesh R</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mFAxJHbvelY6FtRj" /><figcaption>Photo by <a href="https://unsplash.com/@goumbik?utm_source=medium&amp;utm_medium=referral">Lukas Blazek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I have been intrigued by the phenomenal adoption of the Whatsapp mobile application globally. Whatsapp has also gradually become super popular, especially in India and among the Indian diaspora spread worldwide. Here it has become the most preferred alternative to SMS. A widespread affair is creating group chats within Families, colleagues, friends, and even people with common topic interests. I have witnessed lots of discussions in some group chats. As a Data Science enthusiast, it is natural for me to study the chats’ sensibilities objectively. The article will explain the building and working of a simple Python-based app to explore and analyze the group chat in Whatsapp.</p><p>A pre-requisite to understand this program would be developer knowledge of Python, visualization, and analysis basics.</p><h4>Preparing Data:</h4><p>One will need group chat data to begin the analysis. Export the chat archive using the export option in the group info. Select the export using the ‘Without Media’ option. The exported chat will be in a .zip file that would contain the complete conversation. You can airdrop or Bluetooth the file to your development machine. Then unzip the file to get the chat data file.</p><h4>Python Code</h4><p>We will discuss the Python code for analysis. In the code snippet below, we import all the libraries needed.</p><h4>Import Libraries</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*sthR9oNfHLSAorbjO16pqA.png" /></figure><p>Apart from the pandas, re, and seaborn libraries, we will also need the NLTK library for sentimental analysis.</p><h4>Read Chat File</h4><p>I have defined below a simple function to read all the data from the chat file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*XqPEFJdxi-mOfVTW99lZmg.png" /></figure><h4>Clean Chat File Data</h4><p>In the utility function defined below, we can clean the input file data using regular expressions. My goal was to clean the noise messages that are of less value to performing analysis. Typical things to remove would be someone adding another user to the chat or someone leaving the conversation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*qPd-uBXYxmqJkQ3HrQuBWA.png" /></figure><p>At the end of the function, the cleaned value returned is a list of sentences to be analyzed.</p><h4>Determine Top Posters To The Group</h4><p>It will be useful to get a view of top active users. We can measure this by the number of posts made to the chat group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*pDBmvxH4z8t8WasBHpCOoA.png" /></figure><h4>Read Chat File And Clean Data</h4><p>In the code snippet below, the input chat file is read and cleaned using the optimized using sentence optimizer function defined earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*n7I76Eszmx2HT2p8jUgB5w.png" /></figure><h4>Read Chat File And Clean Data</h4><p>The code segment below retrieves the active users and plots a histogram of the user messages. As one might note from the histogram, the group is driven predominantly by a few users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*m_QwO_hHxZ5l1fYhpQf9dA.png" /></figure><h4>Get Count Of Users Who Post Mostly</h4><p>We can view the top message posters. The ‘frame’ is the panda object is the container that is holding the messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*fXsOmLOZv1j0Wv95Zm_0uw.jpeg" /></figure><p>Phone numbers masked above in the picture for privacy.</p><h4>Utility Functions To Perform Hourly Analysis</h4><p>The functions below are defined to perform hourly analysis to determine when most messages get posted and get an hourly trend view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*A71xkfYps4myhf1LXfN7jQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*W7MVhTPfWajv2RfakdXCAw.png" /></figure><p>The graph plot above captures the message trends in a 24-hour distribution plot. We can easily see that there are substantially more postings at 9 am and 11 am. There is a pause after which the messages peak in after 9 pm.</p><p>In the plot below, we can see that the message trends observed in the past two months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*JvKkX1DLKO2WrPSjroTokg.png" /></figure><h4>Sentiment Analysis</h4><p>The exciting part comes where we can use the built-in NLTK library to analyze Chats’ sentiments. Sentiment Analysis, a natural language processing technique, is used to determine whether data is positive, negative, or neutral. The code below demonstrates how to obtain the Compound score for all the chats in the group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*GeYBjuGLwiDpCWwN5eSM6A.png" /></figure><p>The Compound score is a metric that calculates the normalized ratings between -1(most extreme negative) and +1 (most extreme positive) for the chats.</p><p>The distribution plot depicts that most messages are in a positive sentiment area.</p><h4>Conclusion</h4><p>It was enjoyable working on this project and the chat analyzer. We can easily extend this project to analyze more than needed. Also, though explored minimally in this article, sentiment analysis is an extensive area, of which I just scratched the surface. Sentiment analysis is often performed on textual data to monitor sentiments expressed on a topic, brand, or product. The potential application is unlimited to the creative mind.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=749ada92a248" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>