<?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 Ramanandsp on Medium]]></title>
        <description><![CDATA[Stories by Ramanandsp on Medium]]></description>
        <link>https://medium.com/@ramanandsp05?source=rss-05cf85b2d516------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YPcqQI3OSUf_8MCW</url>
            <title>Stories by Ramanandsp on Medium</title>
            <link>https://medium.com/@ramanandsp05?source=rss-05cf85b2d516------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 02:02:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ramanandsp05/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[Machine Learning VS Regular Expression]]></title>
            <link>https://medium.com/@ramanandsp05/machine-learning-vs-regular-expression-b236793069fa?source=rss-05cf85b2d516------2</link>
            <guid isPermaLink="false">https://medium.com/p/b236793069fa</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[regular-expressions]]></category>
            <dc:creator><![CDATA[Ramanandsp]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 05:20:47 GMT</pubDate>
            <atom:updated>2026-11-02T05:20:47.140Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*2_R7oQz2tjGoNFShavbB9Q.png" /></figure><p><strong>Machine Learning vs Regular Expression</strong></p><p>In my opinion, machine learning is the most overrated and overused method nowadays. It shows up in every field and in every small project. Whenever I ask my friend for his laptop, he keeps saying, “I’m training a model.” I had no clue what he meant by training a model or what the advantage of training one was. Then I had another doubt: why does it take so long to train a model? Eventually I understood that we take in a lot of data and use it to train a model so that it can make predictions.</p><p>Please don’t get me wrong. I’m not saying ML is completely useless. I’m saying there are other ways to do a project or write code too. Let me narrate how I came to think ML is overused and that other methods can do the job.</p><p>One fine day, I woke up to a text saying we would have an ML assessment that day. Being an average kid who doesn’t understand ML very well, I was genius enough to write the ML code down in my notebook and bring it to class. When I got there, I realised it was a serious assessment and I was doomed. I don’t know how my neighbours and friends aced it. I couldn’t move a finger, because ML is not something I use every day.</p><p>Our faculty went to every student and asked, “What model are you using?” Everyone answered: “Random forest,” “logistic regression,” and so on. To be frank, the only forest I know is Black Forest. Then came my turn, and I said, “I have no clue, ma’am.” Everyone kept typing, and I decided I would just use my notebook and do the assessment. Then ma’am came towards me, and trust me, I felt a generational aura loss. The sigh from my faculty left my own soul disappointed.</p><p>That day I went back to my room and decided I would redo my project using ML, even though I had already built it using regular expressions. My project is a script analyser. It analyses a film script for genre detection and character allocation. With machine learning, it would predict which genre the film falls under and whether a character is the protagonist or the antagonist.</p><p>But when I took a closer look, I realised I would have to train a model, and for that I would need to find a lot of scripts or datasets. That takes a lot of time and computational cost. So instead, I used regular expressions. In my view, many people don’t know how powerful regex can be. Unlike ML, it doesn’t need any dataset or training time to predict character roles or detect genre.</p><p>In ML, the model gets trained on the words and dialogues of the characters, learns which ones show up in scripts of a specific genre, and categorises accordingly. Regex does the same thing, but much better. Just think about it: regex uses rules or specific conditions. We run them on the script, and if the words in the rule are there, we categorise the character and the genre. As simple as that. And this works not only on big paragraphs like scripts but on other datasets as well. Unlike ML, with its many methods (random forest, and so on), regex is just one method. Regex is the unsung hero.</p><p>Yes, you have to code a lot to get better results with regex. But the same goes for ML.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b236793069fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>