<?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 Hirusha Wanigasingha on Medium]]></title>
        <description><![CDATA[Stories by Hirusha Wanigasingha on Medium]]></description>
        <link>https://medium.com/@hirushanethni2277?source=rss-6aaa7d5a0b5b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rrY1soHJAi0NYPeUKZgJJg.png</url>
            <title>Stories by Hirusha Wanigasingha on Medium</title>
            <link>https://medium.com/@hirushanethni2277?source=rss-6aaa7d5a0b5b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:05:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hirushanethni2277/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[Why “Responsible AI” Is the Only Term That Makes Sense in Our AI-Powered World]]></title>
            <link>https://blog.stackademic.com/why-responsible-ai-is-the-only-term-that-makes-sense-in-our-ai-powered-world-f43361fcfbff?source=rss-6aaa7d5a0b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f43361fcfbff</guid>
            <dc:creator><![CDATA[Hirusha Wanigasingha]]></dc:creator>
            <pubDate>Sun, 28 Dec 2025 14:21:52 GMT</pubDate>
            <atom:updated>2025-12-31T09:59:27.136Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*ytWpPuKR4gh7Zj4cL5L8tQ.png" /></figure><p>Artificial intelligence has quietly woven itself into the fabric of our daily lives. From the moment you unlock your phone to the recommendations you see on Netflix, AI systems are making decisions that shape your digital — and increasingly, your physical — reality. With the explosive arrival of tools like ChatGPT in late 2022, AI has finally captured mainstream attention, sparking urgent conversations about how we ensure these powerful systems work for humanity rather than against it.</p><p>The challenge isn’t whether AI will transform society, it already has. The real question is: how do we build AI systems that benefit people while minimizing harm? This is where the concept of “responsible AI” becomes essential.​</p><h3>Why Words Matter: Responsible vs Ethical vs Trustworthy AI</h3><p>You’ve probably heard AI described as “ethical,” “trustworthy,” or “responsible”. These terms might seem interchangeable, but there are critical differences that affect how we think about accountability.</p><p><strong>Ethical AI</strong> suggests that machines possess moral agency, the ability to make value judgments and exhibit intended behavior. But here’s the problem: AI systems, in their current form, are not moral agents. Ethics is fundamentally a human capability that requires consciousness and intentionality. Transferring this concept to an algorithm creates a dangerous illusion that machines can shoulder moral responsibility.</p><p><strong>Trustworthy AI</strong> is even more problematic. We already know AI doesn’t work perfectly all the time. Asking users to “trust” AI is misleading — imagine if airplane manufacturers a century ago marketed “trustworthy aviation”. If something genuinely works, why do we need to add “trustworthy” to its description? That’s the difference between proper engineering and wishful thinking.</p><p><strong>Responsible AI</strong>, on the other hand, acknowledges that while responsibility is also a human trait, our legal systems have successfully extended this concept to institutions. Companies and organizations can be held responsible for how they design, deploy, and use AI systems. This framing keeps accountability exactly where it belongs: with the humans and institutions that create and deploy these technologies.</p><p>Responsible AI aims to create systems that benefit individuals, societies, and the environment. It encompasses all the ethical, legal, and technical aspects of developing AI technologies that don’t interfere with human agency, cause harm, discriminate, or waste resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*8QzyKRNCWnn6_yBZmEw35w.png" /></figure><h3>AI Isn’t New — But Its Impact Has Reached a Tipping Point</h3><p>While ChatGPT might feel like AI’s coming-out party, the technology has been evolving for 80 years and became mainstream over a decade ago. Amazon built its e-commerce empire on AI algorithms, Netflix destroyed Blockbuster with sophisticated recommendation engines, and social media platforms use AI to curate what you see in your feed. Big tech companies wouldn’t be investing billions if they didn’t see enormous returns.</p><p>The reason ChatGPT feels different is scale and accessibility. It attracted over 100 million users in just eight weeks after its November 2022 launch, making it the fastest-growing consumer application in history. This explosive adoption has transformed AI from a background technology into something people directly interact with and understand.</p><p>But this visibility has also exposed fundamental challenges. AI systems are essentially mirrors of humanity, they’re trained on data created by humans, designed by human engineers, and deployed to solve problems humans define. This means AI can inherit the same biases, discriminatory patterns, and flawed assumptions that exist in society.</p><h3>When AI Goes Wrong: Real-World Consequences</h3><p>Consider autonomous vehicles packed with sophisticated AI capabilities. If one of these cars fails to recognize an elderly person crossing the road at a slower pace, or struggles to detect a person of color in low light conditions, who’s at fault? Human drivers cause thousands of accidents daily, yet no one calls for banning humans from the roads. But when AI makes a mistake, the company behind the technology faces intense scrutiny.</p><p>Banks use automated assessment tools to evaluate loan applications. These systems don’t intentionally discriminate, but they process every available data point to make decisions, often without human oversight or consideration of context. When a loan is denied, we tend to blame the automated system rather than examining the institution’s decision to remove human judgment from the process.</p><p>The AI Incident Database (incidentdatabase.ai) was created specifically to catalog “the collective history of harms or near harms realized in the real world by the deployment of artificial intelligence systems”. The existence of such a database underscores a crucial point: these harms weren’t the intent of AI developers, but they happened nonetheless.</p><h3>The Nine Core Principles of Responsible AI</h3><p>In October 2022, the Association for Computing Machinery Technology Policy Council introduced nine core principles that developers, system builders, and AI policymakers should follow:</p><ul><li><strong>Legitimacy and competency</strong>: Systems should be designed and operated by qualified individuals with appropriate expertise.</li><li><strong>Minimizing harm</strong>: AI should actively work to prevent damage to individuals and society</li><li><strong>Security and privacy</strong>: Personal data must be protected and used only with informed consent</li><li><strong>Transparency</strong>: People should understand how AI systems work and make decisions</li><li><strong>Interpretability and explainability</strong>: Outputs should be understandable and justifiable</li><li><strong>Maintainability</strong>: Systems need ongoing monitoring and updates</li><li><strong>Contestability and auditability</strong>: Users should be able to challenge decisions and systems should be externally reviewable</li><li><strong>Accountability and responsibility</strong>: Clear ownership of outcomes must exist</li><li><strong>Limiting environmental impacts</strong>: AI shouldn’t wastefully consume resources</li></ul><p>These principles recognize that there’s no “one size fits all” approach. Context matters enormously, AI used in healthcare requires different safeguards than AI powering entertainment recommendations. However, establishing these foundational principles creates a starting point for meaningful discussions among stakeholders, researchers, and policymakers about what safe, reliable AI looks like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*eMc_1upJKZviPz9T6J3p_w.png" /></figure><h3>The Challenge of Transparency and Bias</h3><p>One of the biggest obstacles to responsible AI is opacity. The algorithms and mechanisms that AI systems use to make predictions can be difficult to understand, even for experts. This “black box” problem makes it nearly impossible to determine whether outputs are biased or incorrect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*CvPOaUeGa89JclSV5HfI9w.png" /></figure><p>Several factors contribute to this lack of transparency:</p><p><strong>Data collection issues</strong>: Training data might be gathered without people’s knowledge or explicit consent. If the data itself contains historical biases, the AI will learn and perpetuate those patterns.</p><p><strong>Economic constraints</strong>: Being fully transparent might not be financially feasible for companies operating on tight margins.</p><p><strong>Technical complexity</strong>: Some algorithms are simply too sophisticated for easy interpretation, even by technical audiences.</p><p><strong>Competitive concerns</strong>: Complete transparency could reveal trade secrets or allow bad actors to game the system.</p><p>All these factors influence how systems are deployed and, critically, whether problems with bias or inaccuracy in automated decision-making can be identified and corrected.</p><h3>What Effective AI Governance Looks Like</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*UfB6k6ZjRIxeipX0hb-rNg.png" /></figure><p>Principles alone aren’t enough; organizations need governance structures to implement responsible AI practices. At institutions like Northeastern University’s Institute for Experiential AI, this takes the form of the “Puzzle-solving in Ethics” (PiE) model.</p><p>This approach centers on one core question: what is the right thing to do? Rather than getting lost in endless rules and approval processes, the focus is on making the right decision from day one. This includes establishing high-level AI Ethics Advisory Boards and conducting deep technical audits to identify bias, evaluate data usage, assess security, and verify quality.</p><p>OpenAI, the creator of ChatGPT, claims it spent over six months working with GPT-4 to ensure it met ethical standards before release. The company has publicly stated it wants to keep AI “safe and broadly beneficial,” acknowledging that real-world use cases are far more difficult to predict than laboratory scenarios.</p><p>The challenge is that as AI systems become more ubiquitous, governance becomes more complex. Global spending on AI systems was forecast to hit $154 billion in 2023 alone, with a compound annual growth rate of 26.9%. Banking and retail are expected to account for at least 25% of total spending, with AI appearing in everything from hiring decisions to criminal justice assessments.</p><h3>The Regulatory Landscape: A Work in Progress</h3><p>Despite AI’s massive growth and integration into critical systems, comprehensive regulation remains elusive. The regulatory landscape has been compared to the Wild West; lots of activity, but few established rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*cOZYcdGC40WnLXSjNE3lXg.png" /></figure><h3>The United States Approach</h3><p>The US currently has no specific AI regulations, though the White House Office of Science and Technology Policy published a “Blueprint for an AI Bill of Rights” in October 2022. This framework establishes five principles: safe and effective systems, algorithmic discrimination protections, data privacy, notice and explanation, and human alternatives for consideration and fallback.</p><p>Some existing laws could potentially apply to AI. The Federal Trade Commission Act prohibits unfair or deceptive trade practices, which might include harmful or deceptive AI usage. The Cybersecurity and Infrastructure Security Agency has published guidance on securing AI systems.</p><p>Interestingly, the traditionally anti-regulation US Chamber of Commerce recently called for discussions around AI to be “ramped up,” citing concerns about economic growth and national security risks. Following the explosive growth of ChatGPT, President Biden met with CEOs from major AI companies including Google, Microsoft, OpenAI, and NVIDIA in May 2023, securing agreements to evaluate their systems under the AI Bill of Rights framework.</p><h3>The European Union’s Comprehensive Framework</h3><p>Europe has taken a more proactive stance. In 2021, the EU proposed an Artificial Intelligence Act that would create a comprehensive regulatory framework by classifying AI systems into four risk categories:</p><p><strong>Unacceptable risk</strong>: Systems posing serious threats to safety, fundamental rights, or public security would be prohibited</p><p><strong>High risk</strong>: Systems posing significant risks would face strict requirements, including mandatory conformity assessment and market surveillance. This includes AI used in medical devices, law enforcement biometric identification, and safety components of regulated products</p><p><strong>Limited risk</strong>: Systems with limited risk would require transparency and documentation</p><p><strong>Minimal risk</strong>: Systems with minimal risk would face no specific requirements</p><p>The EU Parliament approved a new version of the AI Act in May 2023, with an article specifically addressing generative AI, and expects to sign it into law in 2024. If adopted, lawmakers believe this could become a global standard, providing a framework for other countries developing their own AI policies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*uzKayI_AQmsDr3rsAnwARA.png" /></figure><p>However, three significant problems exist with the proposed approach:</p><p>First, regulations should focus on the problems and sectors AI impacts, not the technology itself. AI should be approached like food or healthcare regulation, creating oversight that works for all possible technologies, not just current versions.</p><p>Second, risk isn’t static, it exists on a continuum. Companies are unlikely to accurately self-evaluate their systems into predetermined risk categories, creating potential conflicts of interest. A better approach would mirror the phased approval process used by agencies like the US Food and Drug Administration.</p><p>Third, the proposed regulations don’t address algorithmic systems that don’t use AI. Many automated decision-making tools in recruitment and finance rely on data interpretation without machine learning. Without including all algorithmic systems, companies could easily circumvent regulation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*3ieM0aAYGAEbbfvStBBWAA.png" /></figure><h3>Other Global Responses</h3><p>Italy briefly banned ChatGPT over privacy concerns, lifting the ban only after OpenAI agreed to required changes. Germany and France are taking a cautious approach, waiting to see how other EU members respond, while Spain and Ireland have launched investigations.</p><p>The United Kingdom released a white paper with proposals framed more as practical guidance than concrete rules. The Competition and Markets Authority is also reviewing whether companies like Microsoft and Google could dominate the AI market to the detriment of competition.</p><p>China, which doesn’t have access to ChatGPT due to internet censorship, is considering measures for “Management of Generative Artificial Intelligence Services” aligned with existing cybersecurity laws. Major Chinese companies including Alibaba, Baidu, and Tencent are all developing generative AI capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*28EW2dvh9zV3Pfo5GVcwng.png" /></figure><h3>What This Means for the Future</h3><p>Mark Weiser, the father of ubiquitous computing, once said that a good tool is an invisible tool. He compared it to a blind person using a cane; they feel the street, not the cane itself. A good tool doesn’t intrude on your consciousness and isn’t designed to cause harm.</p><p>AI can be that tool, but only if the human element provides responsible and ethical guidelines.</p><p>We’re living in what science fiction once imagined. Marshall McLuhan’s “global village” predicted in the 1960s is our connected reality today; a digital ecosystem that touches every part of our lives. Our devices have augmented our humanity, providing access to what amounts to a second brain whenever we need it. These connected devices don’t just define who we are; they present a digital version of ourselves.</p><p>The tools we use and solutions they provide are, fundamentally, unthinking systems. While they may be developed with good intentions, the unintended ethical consequences of machines programmed by humans could pose real dangers.</p><p>Investment in AI will reach astronomical levels in the coming years, with forecasts showing every industry sector dramatically increasing adoption. Companies that fail to integrate AI risk being left behind, as data-driven decision-making becomes the norm. This makes it even more critical that we establish not only principles but also governance structures that align with comprehensive regulation and oversight.</p><p>Responsible AI shouldn’t be an afterthought. Until we have regulatory guidelines and guardrails in place, AI systems must be integrated in ways that make all stakeholders comfortable with how they’re being used and, importantly, their impact on society.</p><p>AI can be a game-changer on many levels, but all games need rules. And the players must follow them. If they don’t, this powerful technology has the capacity to impact our lives in ways we’ll find difficult to predict or plan for. The next few years will determine whether AI becomes the invisible tool that Mark Weiser envisioned; or something far more problematic.</p><p>The choice, ultimately, rests with us: the humans designing, deploying, and regulating these systems. Responsibility cannot be delegated to machines. It must remain exactly where it’s always belonged; with the people and institutions that create and control the technology shaping our future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*IedZUGkP3nj6Nwdpm2PQ1w.png" /></figure><p><strong>Reference</strong></p><ol><li>Baeza-Yates, Ricardo. “Introduction to Responsible AI.” <em>Proceedings of the 17th ACM International Conference on Web Search and Data Mining</em>. 2024.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f43361fcfbff" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/why-responsible-ai-is-the-only-term-that-makes-sense-in-our-ai-powered-world-f43361fcfbff">Why “Responsible AI” Is the Only Term That Makes Sense in Our AI-Powered World</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the Perceptron: A Beginner’s Guide to AI’s Building Block]]></title>
            <link>https://medium.com/@hirushanethni2277/understanding-the-perceptron-a-beginners-guide-to-ai-s-building-block-5b1a37d246eb?source=rss-6aaa7d5a0b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b1a37d246eb</guid>
            <dc:creator><![CDATA[Hirusha Wanigasingha]]></dc:creator>
            <pubDate>Sat, 13 Dec 2025 16:56:11 GMT</pubDate>
            <atom:updated>2025-12-13T16:56:11.217Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re just starting to learn about Artificial Intelligence, one of the first concepts you’ll come across is the <strong>Perceptron</strong>. Don’t let the fancy name intimidate you, it’s actually quite simple once you break it down. Think of it as the basic building block of AI, like an atom is to matter.</p><h3><strong>What Exactly is a Perceptron?</strong></h3><p>Imagine you need to make a simple yes-or-no decision. Should a student pass or fail? Is this email spam or not spam? The Perceptron is designed to answer exactly these kinds of questions.</p><p>At its heart, a Perceptron is an <strong>artificial neuron, </strong>a computer’s attempt to mimic how a brain cell works. It’s the simplest type of neural network you can build, sometimes called a single-layer neural network.</p><p>The Perceptron’s job is to be a <strong>binary classifier</strong>. This means it looks at some information and puts it into one of two buckets: yes or no, 0 or 1, pass or fail. That’s it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*RJxDjwmObpICABQIHDWAdw.png" /></figure><h3><strong>How Does a Perceptron Actually Work?</strong></h3><p>Let’s walk through what happens inside a Perceptron, step by step. Think of it as a recipe with specific ingredients and instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*ARBUfTpRMGLZYmoo_pWZfA.png" /></figure><h4><strong>Step 1: Gather the Ingredients (Inputs)</strong></h4><p>First, you need to feed the Perceptron some information. These pieces of information are called <strong>inputs</strong>, and we label them as <strong>x</strong>.</p><p>For example, let’s say you want to predict whether a student will pass an exam. Your inputs might be:</p><ul><li><strong>x₁</strong>: The student’s IQ score</li><li><strong>x₂</strong>: How many hours they studied</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*IHKCoPO-e8dDQVVjNx6apg.png" /></figure><h4><strong>Step 2: Assign Importance (Weights)</strong></h4><p>Not all information is equally important. Maybe study hours matter more than IQ for passing an exam. To handle this, each input gets a <strong>weight</strong> (labeled as <strong>w</strong>).</p><ul><li>Weights tell the Perceptron how much attention to pay to each input</li><li>At the beginning, we usually just guess these weights randomly</li><li>The Perceptron will learn better weights over time</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*mLhsHTKeVYwavF6jfI6dVw.png" /></figure><h4><strong>Step 3: Add a Safety Net (Bias)</strong></h4><p>Here’s where things get interesting. We add something called a <strong>bias</strong> (labeled as <strong>b</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*1FM3Br5YTsV2KoUK6vrWsQ.png" /></figure><p><strong>Why do we need this?</strong></p><p>Imagine all your inputs happen to be zero. Without bias, your calculation would be zero too, and you’d get stuck. The bias acts like a baseline adjustment — similar to the y-intercept in a straight line equation (remember y = mx + c from school?).</p><p>The bias helps the model:</p><ul><li>Handle situations where inputs are zero</li><li>Deal with noisy or imperfect data</li><li>Make better predictions overall</li></ul><h4><strong>Step 4: Do the Math (Weighted Sum)</strong></h4><p>Now comes the calculation. The Perceptron multiplies each input by its weight, adds them all together, and then adds the bias. Here’s the formula:</p><blockquote><strong>Z = (w₁ × x₁) + (w₂ × x₂) + … + b</strong></blockquote><blockquote>Or in other math notation: <strong>Z = Σ(wᵢ × xᵢ) + b</strong></blockquote><p>This is just like calculating a straight line equation. The result (Z) is just a number at this point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*MNz7ekzPxTqmM0nLnXZd_Q.png" /></figure><h4><strong>Step 5: Make a Decision (Activation Function)</strong></h4><p>We have a number (Z), but we need a yes-or-no answer. This is where the <strong>activation function</strong> comes in.</p><p>The activation function takes that number and squashes it into a range, typically between 0 and 1. Think of it like a dimmer switch that can only be set between “off” (0) and “on” (1).</p><p>Common activation functions include:</p><ul><li><strong>Sigmoid function</strong>: Smoothly converts any number into a value between 0 and 1</li><li><strong>Step function</strong>: Gives you exactly 0 or exactly 1, like a light switch</li></ul><h4><strong>Step 6: Apply the Threshold</strong></h4><p>Finally, we use a <strong>threshold</strong> (often 0.5) to make the final call:</p><ul><li>If the output is greater than 0.5 → classify as <strong>1</strong> (yes, pass, spam, etc.)</li><li>If the output is less than 0.5 → classify as <strong>0</strong> (no, fail, not spam, etc.)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXhML2k9uPZCvWrk7MoUbw.png" /></figure><h3><strong>The Big Limitation: The Straight Line Problem</strong></h3><p>Here’s the catch: a Perceptron is a <strong>linear classifier</strong>. This means it can only solve problems where you can draw a straight line to separate the two groups.</p><p>Imagine you have dots on a piece of paper with some are red, some are blue. If you can draw a single straight line that puts all the red dots on one side and all the blue dots on the other, the Perceptron will work great. This is called <strong>linearly separable</strong> data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*ZQy2t9JeqJoGcRmXP5JR-A.png" /></figure><p>But what if the dots are all mixed up, and no straight line can separate them? Then a single Perceptron fails. This is called <strong>non-linearly separable</strong> data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*RnM_wilpwG1opIvaDaptKQ.png" /></figure><h3><strong>The Solution: Going Deeper</strong></h3><p>To handle complex, real-world problems (which are usually non-linear), we need more power. That’s where <strong>Multi-Layer Perceptrons (MLPs)</strong> come in, also known as <strong>Artificial Neural Networks</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*02heFeLlGiwQ_g7tPpGTzw.png" /></figure><p>Instead of just one Perceptron, we stack many of them in layers. These deeper networks use advanced techniques like:</p><ul><li><strong>Forward Propagation</strong>: Passing information from input to output</li><li><strong>Backward Propagation</strong>: Learning from mistakes by adjusting weights</li><li><strong>Loss Functions</strong>: Measuring how wrong the predictions are</li><li><strong>Optimizers</strong>: Finding the best weights to minimize errors</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*W3WDOWd-XxWxGL40qRG8rA.png" /></figure><h3>Summary</h3><p>Let me break down the key components one more time:</p><p><strong>Inputs (x)</strong>: The data you feed into the model (like study hours or IQ score)</p><p><strong>Weights (w)</strong>: Numbers that determine how important each input is</p><p><strong>Bias (b)</strong>: An extra adjustment value to help the model work better</p><blockquote><strong>Calculation</strong>: Z = (w₁ × x₁) + (w₂ × x₂) + … + b</blockquote><p><strong>Activation Function</strong>: Converts the calculation into a decision (0 or 1)</p><p><strong>Limitation</strong>: Can only solve problems where data can be separated by a straight line</p><p>The Perceptron is beautifully simple: it takes inputs, does some multiplication and addition, passes the result through a function, and gives you a yes-or-no answer. It’s not powerful enough to solve complex problems on its own, but it’s the foundation of modern AI.</p><p>Understanding the Perceptron is like learning to walk before you run. Once you grasp how this simple artificial neuron works, you’re ready to understand how thousands or millions of them work together in deep neural networks to recognize faces, understand speech, and drive cars.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b1a37d246eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use AI to Manage Your Personal Finances]]></title>
            <link>https://medium.com/@hirushanethni2277/how-to-use-ai-to-manage-your-personal-finances-45db3f008295?source=rss-6aaa7d5a0b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/45db3f008295</guid>
            <dc:creator><![CDATA[Hirusha Wanigasingha]]></dc:creator>
            <pubDate>Sun, 14 Sep 2025 16:43:10 GMT</pubDate>
            <atom:updated>2025-09-14T16:43:10.619Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial Intelligence (AI) is rapidly transforming the way people budget, save, invest, and manage debt. Tools that were once accessible only to financial experts or the wealthy are now available to everyone through easy-to-use apps. Whether you want to cut unnecessary expenses, grow your savings, or understand investing, AI can help you take control of your money with less effort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gCbDxiB8zmQRnQlh" /><figcaption>Photo by <a href="https://unsplash.com/@hostreviews?utm_source=medium&amp;utm_medium=referral">Stephen Phillips - Hostreviews.co.uk</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>How AI Helps with Personal Finance</h3><p>AI-powered tools analyze your income, spending habits, savings, and goals to provide <strong>personalized recommendations</strong>. They can automate routine tasks, keep you on track, and offer insights that were previously available only from financial advisors. Here are some of the main ways AI supports personal finance:</p><ul><li><strong>Automated Budgeting</strong> — AI apps connect to your bank accounts and credit cards, categorize your transactions automatically, and monitor your spending in real time. You’ll get alerts when you’re overspending and tips to stay within your budget.</li><li><strong>Expense Tracking</strong> — By studying your spending patterns, AI can identify unnecessary costs, such as unused subscriptions or frequent dining out, and suggest ways to save.</li><li><strong>Smart Savings</strong> — Many apps set up automatic savings plans, round up your purchases, and recommend how much to save each month based on your financial goals.</li><li><strong>Investment Guidance</strong> — AI-powered robo-advisors design investment portfolios tailored to your risk tolerance and goals, making investing less intimidating for beginners.</li><li><strong>Debt Management</strong> — AI helps you create repayment strategies, prioritize high-interest debts, and may even negotiate lower rates on your behalf.</li><li><strong>Financial Education</strong> — AI chatbots and tools can explain complex money topics in plain language, making financial literacy easier to achieve.</li></ul><h3>Popular AI Tools for Personal Finance</h3><p>Here are some AI-driven apps that make managing money simpler:</p><ul><li><strong>Rocket Money</strong> — Tracks subscriptions, cancels unused ones, automates savings. (Free; Premium from $6/month)</li><li><strong>Cleo</strong> — Budgeting, savings challenges, chatbot-style coaching. ($5.99/month)</li><li><strong>Origin</strong> — Budgeting, investing, tax filing, retirement planning. ($12.99/month)</li><li><strong>Danelfin</strong> — Stock/ETF analysis, portfolio monitoring. (Free; Premium from $19/month)</li></ul><p><em>Tip: Many banks now include AI budgeting and savings features directly in their apps, so check if yours offers these before signing up elsewhere.</em></p><h3>Getting Started with AI for Your Finances</h3><ol><li><strong>Choose the Right Tool</strong> — Pick an app that matches your priority, whether it’s budgeting, investing, or debt repayment.</li><li><strong>Connect Your Accounts</strong> — Link your bank, credit card, and investment accounts for a complete view of your finances.</li><li><strong>Set Clear Goals</strong> — Define what you want to achieve, such as building an emergency fund, saving for a vacation, or paying down debt.</li><li><strong>Review Insights Regularly</strong> — Check the recommendations and adjust your habits as needed.</li><li><strong>Protect Your Data</strong> — Use trusted apps, read their privacy policies, and enable two-factor authentication.</li></ol><p>AI is making personal finance more accessible, personalized, and efficient than ever before. From automated budgeting to robo-investing, these tools help you save time, cut costs, and reach your financial goals with confidence. Start small by trying one app, explore its features, and let AI take on the heavy lifting while you stay focused on your future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45db3f008295" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple Linear Regression]]></title>
            <link>https://medium.com/@hirushanethni2277/simple-linear-regression-1028c2f0d829?source=rss-6aaa7d5a0b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1028c2f0d829</guid>
            <dc:creator><![CDATA[Hirusha Wanigasingha]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 18:27:23 GMT</pubDate>
            <atom:updated>2023-12-14T18:27:23.430Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6nsxeW6VIooWtM0E816LNw.png" /></figure><p>You are given a real estate dataset.</p><p>Real estate is one of those examples that every regression course goes through as it is extremely easy to understand and there is a (almost always) certain causal relationship to be found.</p><p>The data is located in the file: ‘<a href="https://github.com/tehmeerali786/360-Data-Science-/blob/master/1.6%20Simple%20linear%20regression%20Exercise/real_estate_price_size.csv">real_estate_price_size.csv</a>’.</p><p>You are expected to create a simple linear regression (similar to the one in the lecture), using the new data.</p><p>In this exercise, the dependent variable is ‘price’, while the independent variable is ‘size’.</p><h3>Import the relevant libraries</h3><pre>import numpy as np<br>import pandas as pd<br>import matplotlib.pyplot as plt<br>import statsmodels.api as sm<br>import seaborn as sns<br>sns.set()</pre><p>numpy → Work with multidimensional arrays</p><p>pandas → allow to organize data in a tabular form and to attach descriptive labels to the rows and columns</p><p>statsmodels → package built on top of Numpy and Scipy, which integrates with pandas. / provides good summaries</p><p>matplotlib → 2D plotting library specially designed for visualization of numpy computations</p><p>seaborn → python visualization library based on matplotlib. It provides a high-level interface for drawing attractive statistical graphs.</p><p>sns.set() → override the style and graphics of all matplotlib graphs</p><h3>Load the data</h3><p>First, we need to load our dataset</p><pre>data = pd.read_csv(&#39;/content/006 real-estate-price-size.csv&#39;)</pre><pre>data.describe() # print summaries</pre><pre>          price    size<br>count 100.000000 100.000000<br>mean 292289.470160 853.024200<br>std 77051.727525 297.941951<br>min 154282.128000 479.750000<br>25% 234280.148000 643.330000<br>50% 280590.716000 696.405000<br>75% 335723.696000 1029.322500<br>max 500681.128000 1842.510000</pre><p>when you load your data CSV file → print their summaries. That is a good practice.</p><h3>Declare the dependent and the independent variables</h3><p>Before we create the regression model, we need to identify dependent and independent variables.</p><pre>y = data[&#39;price&#39;]<br>x1 = data [&#39;size&#39;]</pre><h3>Explore the data</h3><pre>plt.scatter(x1,y)<br>plt.xlabel(&#39;size&#39;)<br>plt.ylabel(&#39;price&#39;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*s2agxDYW0q1oE-erb56hVg.png" /></figure><h3>Regression itself</h3><p>Here I use to OLS method for regression.</p><pre>x = sm.add_constant(x1)<br>results = sm.OLS(y,x).fit()<br>results.summary()</pre><pre>OLS Regression Results<br>Dep. Variable: price R-squared: 0.745<br>Model: OLS Adj. R-squared: 0.742<br>Method: Least Squares F-statistic: 285.9<br>Date: Fri, 24 Nov 2023 Prob (F-statistic): 8.13e-31<br>Time: 06:03:47 Log-Likelihood: -1198.3<br>No. Observations: 100 AIC: 2401.<br>Df Residuals: 98 BIC: 2406.<br>Df Model: 1  <br>Covariance Type: nonrobust  <br><br>          coef   std err t    P&gt;|t|   [0.025   0.975]<br>const 1.019e+05 1.19e+04 8.550 0.000 7.83e+04 1.26e+05<br>size  223.1787  13.199  16.909 0.000 196.986  249.371<br><br>Omnibus: 6.262 Durbin-Watson: 2.267<br>Prob(Omnibus): 0.044 Jarque-Bera (JB): 2.938<br>Skew: 0.117 Prob(JB): 0.230<br>Kurtosis: 2.194 Cond. No. 2.75e+03</pre><p>Notes:<br>[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.<br>[2] The condition number is large, 2.75e+03. This might indicate that there are strong multicollinearity or other numerical problems.</p><h3>Plot the regression line on the initial scatter</h3><p>Our regression line likes</p><p>y = m* x1 + c</p><p>How do we find the m and c? We can use our summary table to find the m and c. In our summary table, you can see the below part.</p><pre>         coef   std err t    P&gt;|t|   [0.025   0.975]<br>const 1.019e+05 1.19e+04 8.550 0.000 7.83e+04 1.26e+05<br>size  223.1787  13.199  16.909 0.000 196.986  249.371</pre><p>There is a column, named called coef. There is a row, name called ‘size’. ‘size’ (x1) is our independent variable. The coefficient of x1 is 223.1787. This is a value of m.</p><p>Now we want to find our c value. there is a row, named call const. The coefficient of c is 1.019e+05. Our c value is 1.019e+05.</p><p>Now, we can plot our results.</p><pre>yhat = 223.1787*x1 + 1.019e+05</pre><pre>plt.scatter(x1,y)<br>plt.xlabel(&#39;size&#39;)<br>plt.ylabel(&#39;price&#39;)<br>plt.plot(x1,yhat,color =&quot;red&quot;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*NDHwWeZzRwz0-vlae0M6iw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1028c2f0d829" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overfitting and Underfitting in Machine Learning]]></title>
            <link>https://medium.com/@hirushanethni2277/overfitting-and-underfitting-in-machine-learning-bc35c37bbff4?source=rss-6aaa7d5a0b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc35c37bbff4</guid>
            <dc:creator><![CDATA[Hirusha Wanigasingha]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 17:24:50 GMT</pubDate>
            <atom:updated>2023-12-14T17:34:46.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6D91lZT6KPVDZzkSsgGfeg.png" /></figure><p>We create a machine learning model to get some ideas, decisions or future predictions about data. So here we need an accurate good model. But in some cases, we face two common problems. They are Overfitting and underfitting.</p><h4>What is underfitting?</h4><blockquote>“Underfitting is a scenario in data science where a data model is unable to capture the relationship between the input and output variables accurately, generating a high error rate on both the training set and unseen data.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jmACbFN3Q9155xEyFLMQPw.png" /></figure><p>Here the grey color line is a good model.</p><p>The red colour line is an <strong>underfitted model</strong>.</p><p>An underfitted model provides an answer but does not capture the underline logic. We can’t capture any relationship in an underfitted model.</p><p>You know we divide our data set as training and testing.</p><p>The underfitted model has <strong>Low training accuracy</strong> and <strong>Low testing accuracy.</strong></p><h4>What is Overfitting?</h4><blockquote>“Overfitting is an undesirable machine learning behaviour that occurs when the machine learning model gives accurate predictions for training data but not for new data. When data scientists use machine learning models for making predictions, they first train the model on a known data set.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EExOsL8mXSbtk6FurOBQLQ.png" /></figure><p>Here the grey color line is a good model.</p><p>The red colour line is an <strong>overfitted model</strong>.</p><p>In overfitting our training has focused on the particular training set so much. The overfitted model is super good at modelling the training data.</p><p>The overfitted model has <strong>High Training accuracy </strong>but <strong>Low testing accuracy.</strong></p><h4><strong>Summary</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2bVJ1F7iniPoxb-ADb-wA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc35c37bbff4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Functional Programming: The paradigm shift]]></title>
            <link>https://medium.com/@hirushanethni2277/functional-programming-the-paradigm-shift-c4059602da3c?source=rss-6aaa7d5a0b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4059602da3c</guid>
            <dc:creator><![CDATA[Hirusha Wanigasingha]]></dc:creator>
            <pubDate>Sun, 05 Nov 2023 15:55:09 GMT</pubDate>
            <atom:updated>2023-11-05T15:55:09.836Z</atom:updated>
            <content:encoded><![CDATA[<p>The programming languages can be Imperative or Declarative.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/0*Viyn9ffOfwxmlnOX" /></figure><p>So in this article, I talk about</p><ol><li>What are the Imperative and Declarative programming languages?</li><li>Meaning of the word ‘function’ in ‘functional programming’.</li><li>What is ‘functional programming’?</li><li>What are the main components of Functional Programming?</li></ol><p>I think this article is most suitable for Computer Science undergraduates who are interested in functional programming and the Theory of Programming Languages. So, I think they can get a key idea about functional programming.</p><h3><strong>What are the Imperative and Declarative programming languages?</strong></h3><h4>I. Imperative programming language</h4><p>In imperative programming language, describe how the programs do. Here there are a series of commands for how the program runs. There is an order, so cannot skip the steps. If skip the steps, the program does not work properly.</p><p>Simply in Imperative programming, <strong>tell how to do.</strong></p><p>Ex: python, C, java</p><h4>II. Declarative programming Language</h4><p>In declarative programming, we tell the program what we need. There is no order or no need to follow steps. It can run any order without breaking the program.</p><p>Simply in Declarative programming, <strong>tell what to do.</strong></p><p>Ex: SQL, Prolog</p><h3><strong>Meaning of the word ‘function’ in ‘functional programming’.</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wlLcWscvzWlUPqo9" /></figure><p>Before we go to functional programming we need to understand two terms. The word ‘function’ in Imperative programming and ‘functional programming’.</p><p>In Imperative programming functions are typically used to group a set of related actions or statements. They can have input parameters and return values. Imperative functions are usually focused on how to achieve the tasks often involving changing states and using control structures like loops and conditions.</p><p>In functional programming, ‘functions’ are treated as first-class citizens. (like variables in other languages) These functions are deterministic. (The same input should return the same output) Depends on input parameters only.</p><h3><strong>What is ‘functional programming’?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OW83tsp-HgnoB_TB" /></figure><p>There are so many definitions for functional programming. I like to use the following definition,</p><blockquote>“Functional programming is a way of writing software applications using pure functions and immutable values”</blockquote><p>Actually, functional programming is a programming Declarative paradigm or style that uses only pure functions and immutable states. Functions act as a first-class citizen.</p><p>Functional programming = Pure functions + Immutable states + No side effects</p><h4><strong>Major components of Functional Programming</strong></h4><ol><li>Avoid side effects and use PURE functions</li><li>Use higher-order functions</li><li>Immutable data</li><li>Recursion</li></ol><p>If none of those words make sense to you, don’t worry! I am going to break down all this terminology in my article series.</p><p><strong>Summary</strong></p><p>First, talk about imperative and declarative programming languages. Then identify how the programming instead of imperative languages. Finally, we move to functional programming and its major components.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4059602da3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Optimization and Algorithms]]></title>
            <link>https://medium.com/@hirushanethni2277/introduction-to-optimization-and-algorithms-8df8d77ef1a8?source=rss-6aaa7d5a0b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8df8d77ef1a8</guid>
            <dc:creator><![CDATA[Hirusha Wanigasingha]]></dc:creator>
            <pubDate>Thu, 26 Oct 2023 17:12:04 GMT</pubDate>
            <atom:updated>2023-10-26T17:12:04.034Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D1bW6QVxhsIXPfaHC3Y_SQ.png" /></figure><p><strong>What is Optimization?</strong></p><p>Simply optimization means the action of making something better or the process of making something better. Another way we can say finding the best solution for the problem.</p><p>Today, various kinds of industries use this optimization to do their work better. For example, the Apparel Industry uses optimization to increase their profit by optimizing the human working hours, machine hours and resources. Time and Resources are the main parts of the optimization in the industry. By reducing time and resources, if we can give a better output, that means the optimum process happens.</p><p><strong>Why do we need Optimization?</strong></p><p>In real-world scenarios, we need optimization to minimize energy consumption and costs.</p><p>By minimizing energy and cost we can maximize our profit. The economic world always targets their profit. They need an optimization mechanism for that.</p><p>In optimization sometimes we have to do minimization and sometimes we have to do maximization. This is based on the problem. Optimization is going under some constraints and studying their parameters.</p><p><strong>Classification of Optimization Algorithms</strong></p><p>Problems can be Linear or nonlinear. More real-world applications are often highly non-linear. The non-linear problems cannot be differentiable. So we need some stochastic optimization tools to tackle.</p><p>Optimization Algorithms can be <strong>deterministic and stochastic</strong>. (non-deterministic)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/0*ED-HxsEOsgdC9MTK" /></figure><p><strong>Deterministic Optimization Algorithms</strong></p><p>Simply deterministic means it cannot be changeable. When we do the same process for using the same value again and again the output must not be changed.</p><p>Eg: Linear programming, nonlinear Programming, Gradient-based, Gradient-free</p><p><strong>Non-deterministic Optimization Algorithms</strong></p><p>Non-deterministic algorithms, also known as stochastic algorithms, have some randomness. The same input will not get the same output in the entire process.</p><p>There are two Non-deterministic methods. They are <strong>Heuristic</strong> and <strong>Meta-heuristic.</strong></p><p>A <strong>Heuristic</strong> is a problem-specific method. This method is used to solve only a particular problem.</p><p>Eg: Hill climbing</p><p>Instead of Heuristic algorithms, <strong>meta-heuristic </strong>is a problem-independent method like a framework. By using the same method we can solve different problems.</p><p>Eg: Swarm Intelligence, Evolutionary Computing</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8df8d77ef1a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>