<?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 Chathura Perera on Medium]]></title>
        <description><![CDATA[Stories by Chathura Perera on Medium]]></description>
        <link>https://medium.com/@mahinsasa903?source=rss-fc64dfbc65c8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*PbL7LqkwYPT40n54.jpg</url>
            <title>Stories by Chathura Perera on Medium</title>
            <link>https://medium.com/@mahinsasa903?source=rss-fc64dfbc65c8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 14:14:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mahinsasa903/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 Dying Art of Figuring It Out? What AI Is Quietly Unteaching Us]]></title>
            <link>https://medium.com/@mahinsasa903/the-dying-art-of-figuring-it-out-what-ai-is-quietly-unteaching-us-b4d4148fafa6?source=rss-fc64dfbc65c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4d4148fafa6</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[technology-and-society]]></category>
            <dc:creator><![CDATA[Chathura Perera]]></dc:creator>
            <pubDate>Sun, 03 Aug 2025 21:00:36 GMT</pubDate>
            <atom:updated>2025-08-06T20:00:24.975Z</atom:updated>
            <content:encoded><![CDATA[<p>I used to know how to make risotto. I mean, really know. The kind of knowing that lived in my body ; the rhythm of adding broth, one ladle at a time; the slow, meditative stirring; the moment when the rice surrendered its starch and the whole thing turned creamy and comforting. It wasn’t just a recipe it was muscle memory, taste memory, a little dance I’d learned through repetition and ruined pots. I didn’t need to check anything. I just… did it.</p><p>Now? I ask for the recipe. Every. Single. Time.</p><p>I open an app, type the same query, and follow the same instructions I once knew by heart. Not because I’ve never made risotto, but because, somehow, I stopped remembering <em>how</em>. Or maybe I stopped trusting that I still knew. What used to be instinct has quietly become dependency. And I didn’t notice the moment it happened.</p><p>It’s not just risotto, of course. It’s movie titles, phone numbers, directions, historical dates, names of actors, how to tie a tie, how to write a thank-you note, how to reword a sentence, how to start a fire, how to end an email. It’s all in there ; at our fingertips, just a prompt away. And slowly, imperceptibly, it’s stopped being in <em>us</em>.</p><p>This isn’t a rant about technology. I’m grateful for the convenience, and honestly, I love the little boost it gives when I need it. But I can’t shake the feeling that I’ve traded something in. The tactile, earned, slightly imperfect knowledge that comes from trying, failing, and figuring it out ; the kind that stays with you ; has been replaced with something flatter. Less mine. Something borrowed for the moment, then forgotten just as quickly.</p><p>And that makes me wonder: what else have I stopped remembering how to do?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ot6Fyd1e2PXBBpdLQFGKhA.jpeg" /><figcaption>Photo Credit :<a href="https://www.pexels.com/@alesiakozik/">https://www.pexels.com/@alesiakozik/</a></figcaption></figure><p>This isn’t a tirade about robots replacing us. It’s more… nuanced. It’s about what <em>we lose when we no longer have to figure things out the hard way</em>. You see, before the age of AI, knowledge wasn’t just something you <em>had</em> ; it was something you <em>earned</em>. Slowly. Stubbornly. Sometimes angrily, with flour on your face and profanity on your lips. But it stuck. Because <em>you did it</em>.</p><p>Now, with AI at our fingertips like an endlessly patient, eerily articulate co-pilot, we skip the messy, awkward, delightful apprenticeship of learning. We don’t <em>build</em> knowledge anymore ; we rent it by the prompt.</p><p>And this, it turns out, is becoming a problem far beyond my stove.</p><p>When I came across this <a href="https://www.youtube.com/watch?v=xTiBF2Hq40I">video</a> funny and faintly tragic ; that explains this new reality with brutal clarity. It opens with what sounds like a punchline but turns out to be a eulogy for academic integrity.</p><p>The premise? <a href="https://nymag.com/intelligencer/article/openai-chatgpt-ai-cheating-education-college-students-school.html">College students are cheating at unprecedented rates</a>, using AI tools to write essays, generate answers, even craft “<em>Quasi original thoughts</em>” with frightening fluency. The twist? AI-generated work is often deceptively polished ; occasionally obvious, but just as often invisible. Traditional plagiarism detectors aren’t designed for this kind of authorship, and most institutions are still developing or scrambling to start the frameworks needed to assess it fairly. Detecting AI use is a slippery process, relying on <a href="https://www.researchgate.net/publication/388681674_The_Role_of_AI_Detection_Tools_in_Upholding_Academic_Integrity_An_Evaluation_of_their_Effectiveness">subjective judgment rather than clear standards</a>. Even when suspicions arise, enforcement is limited by vague policies and unreliable detection tools. The result is a growing dilemma: how to uphold academic integrity in a landscape where assistance is readily available, difficult to trace, and nearly impossible to regulate without risking false accusations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uaryZKVVCSGAI7puUqLhDA.jpeg" /><figcaption>Photo Credit : <a href="https://www.pexels.com/@israwmx/">https://www.pexels.com/@israwmx/</a></figcaption></figure><p>There’s something almost surreal in what recent <a href="https://www.theguardian.com/education/article/2024/jun/26/researchers-fool-university-markers-with-ai-generated-exam-papers">research</a> has uncovered. In one experiment, academics submitted dozens of entirely AI-generated exam answers to university markers. Only one was flagged as suspicious. The rest were graded as normal, with many scoring above average. To detect AI usage, some educators have started planting deliberately odd phrases or patterns in prompts. It’s clever. It’s hilarious. And it’s also… kind of sad. Because it means educators have gone from teaching ideas to laying traps ; less focused on inspiring thought, more on catching out the tools students might be using to avoid it.</p><p>All of this brought me to <strong><em>Cal Newport</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fOWTogPiORcVqGwc66W5dg.jpeg" /><figcaption>Photo Credit :<a href="https://www.pexels.com/@maltelu/">https://www.pexels.com/@maltelu/</a></figcaption></figure><p>Newport, a computer science professor and quiet productivity philosopher, has long argued that deep, focused work is the antidote to our fractured attention spans. In his recent book <em>Slow Productivity</em>, he lays out a countercultural vision: doing fewer things, working at a pace that’s sustainable, and focusing obsessively on quality over quantity. He believes that real learning ; and real contribution ; comes not from checking boxes or keeping up, but from long stretches of undistracted effort, wrestling with ambiguity, and embracing the slow, sometimes uncomfortable, process of making something by hand (or mind). He’s not anti-technology. He’s anti-passivity. In a world that rewards speed, Newport wants us to remember the quiet joy of doing one thing well, and doing it slowly.</p><p>There’s something deeply human about that. After all, the things that stay with us ; the stories, the skills, the scars ; are rarely downloaded. They’re built, usually through a string of small failures and slow, quiet wins.</p><p>A recent <a href="https://arxiv.org/abs/2506.08872">study by MIT</a> suggest that when we outsource too much thinking to AI ; especially tools like ChatGPT / Claude /Deep Seek ; we risk dulling the very muscles that make us human: memory, creativity, and critical thought. One MIT study even showed that students who relied on AI for writing performed faster but with significantly less brain activity, weaker recall, and lower originality. Researchers call it “<em>metacognitive laziness</em>” ; a fancy term for what happens when we stop doing the hard thinking ourselves.</p><p>So no, I’m not cancelling my AI subscription. I still love having a digital sous-chef and fact-checker in my pocket. But I’m also trying to stir my own risotto again.</p><p>Because something’s shifting. Slowly, almost imperceptibly, we’re starting to lose the feel of knowing things first-hand. Not the kind of knowing that comes from being told an answer, but the kind that comes from stumbling toward it on your own ; fumbling, retrying, circling around it until it finally lands in your mind with that quiet, satisfying click. When everything is a prompt away, we begin to forget what it feels like to struggle usefully. To grope around in the fog of a half-memory until a word or an idea surfaces. That struggle, awkward as it is, is where real learning happens. And the more we outsource that process, the more we risk losing the mental calluses that come from real thinking.</p><p><em>It’s not that using AI is bad ; it’s an extraordinary tool</em>, and it’s made many parts of life more efficient, more accessible, even more fun. But there’s a subtle danger in always turning outward for the answer before turning inward. If every question is met with instant autocomplete logic, we never give ourselves the chance to practice remembering, reflecting, connecting. And that matters. Because memory is like a path through the woods: if you stop walking it, nature will quietly take it back.</p><p>So I’ve been trying to reintroduce a bit of friction into my thinking. Before I look something up, I pause and try to pull it from memory. Before I copy a recipe, I test what I remember from last time. Sometimes I’m wrong. Sometimes hilariously so. But the act of reaching ; even failing ; leaves a deeper mark than passively receiving ever will. I’ve started writing things out by hand again, not because it’s efficient, but because it slows me down enough to listen to my own thoughts. There’s a kind of tactile memory that comes from forming each word with your fingers. It’s messier, and my handwriting is abysmal, but the ideas feel more mine.</p><p>Lately, I’ve been doing the same with my work ; challenging myself to debug and plan out SQL queries or DAX formulas (my work stuff )from internal logic before reaching for aids . This process teaches me more than any aid ever could.</p><p>Now and then, I’ll pick a small, ordinary task and do it the long way ; plan a trip without asking the internet, write a thank-you note without a template, explain an idea to someone out loud without peeking at a screen. It’s astonishing how quickly you realize what you’ve started to lose: not just information, but the patience and persistence that once came with learning it. Even something as simple as trying to remember what you read yesterday, and giving yourself a minute to pull it together before checking, becomes a kind of mental exercise. It’s hide-and-seek for your memory. And it’s good for you.</p><p>These aren’t rules, just gentle reminders. We don’t need to reject the tools. But we do need to stay in the habit of thinking for ourselves. Because if we’re not careful, we’ll remember less, reason less, and rely more ; until we no longer trust that the answer is in there somewhere, waiting to be uncovered. That’s not a dramatic end ; it’s just a quiet forgetting.</p><p>So yes, I’ll keep asking for help when I need it. But every now and then, I’ll stir my own risotto. Because in the end, it’s the messy effort that makes the memory stick.</p><p>Because maybe the real danger isn’t that AI will take over our jobs, or our schools, or our brains. Maybe the real danger is that it will take over our <em>process</em> ; that lovely, frustrating, deeply human experience of trial, error, and occasional transcendence.</p><p>Knowledge, after all, is not a download. It’s a journey. Sometimes it smells like garlic and burnt rice. Sometimes it takes the form of an essay that took three drafts and four meltdowns. But it’s <em>ours</em>.</p><p>And I, for one, would like to keep a little of that mess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8M7rsntUKX02cKpLp3LjCA.jpeg" /><figcaption>Photo Credit :<a href="https://www.pexels.com/@aliciazinn/">https://www.pexels.com/@aliciazinn/</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4d4148fafa6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Sausage Walks into a Bun: The Surprisingly Epic History of the Hot Dog]]></title>
            <link>https://medium.com/@mahinsasa903/a-sausage-walks-into-a-bun-the-surprisingly-epic-history-of-the-hot-dog-d39f6d6d582d?source=rss-fc64dfbc65c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d39f6d6d582d</guid>
            <dc:creator><![CDATA[Chathura Perera]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 00:00:08 GMT</pubDate>
            <atom:updated>2025-02-24T00:00:08.026Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s be honest — no one really knows what’s in a hot dog. And let’s be even more honest — no one really wants to know. Something about its smooth, uniform shape and delightful snap is both comforting and slightly unnerving, like discovering your grandmother has a secret criminal past. But the hot dog isn’t just a curious mystery of modern food engineering — it’s the end result of centuries of culinary invention, human ingenuity, and an undying love for stuffing meat into things.</p><p>Sausages — hot dogs’ distinguished great-great-great-grandparents — have been around for millennia. The ancient Babylonians had a go at them. The Greeks mentioned them in Homer’s Odyssey (which is probably the earliest known example of food blogging). But it was in the Middle Ages that sausages really took off. Medieval butchers, keen to use every last bit of an animal (often because they had to), stuffed ground-up meats into casings made from intestines, and thus, the sausage was perfected. European markets filled with various kinds, from bratwursts in Germany to chorizos in Spain, all of them adding different spices, smoking methods, and degrees of mystery meat. The result? A food that could last, travel, and be sold in the streets to hungry townsfolk who had no time to question why it smelled so good.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A5IiihK6RunA6dRh" /></figure><p>The modern hot dog, however, is a different beast entirely. Born from German immigrants who brought their love of sausage to America, the hot dog as we know it emerged in the 19th century. As with all great food inventions, its origins are hotly debated. Did <strong>Charles Feltman</strong> really come up with the idea of placing a sausage in a bun on the boardwalks of Coney Island in the <strong>1860s</strong>? Did <strong>Nathan Handwerker</strong> outwit him by selling them for half the price? And why, for the love of mustard, do New Yorkers insist on only using mustard? These are the questions that keep food historians awake at night.</p><p>Meanwhile, across the Atlantic, Britain had already spent centuries perfecting its own peculiar relationship with sausages. While the hot dog never quite gained the same cultural foothold as in America, the British were no strangers to handheld meat snacks. Victorian street vendors in London were selling “hot sausages” wrapped in bread long before the phrase “hot dog” was coined. These were often consumed by late-night revelers, factory workers, and anyone willing to take the gamble on street food in an era when food safety was more of a suggestion than a rule. Even before that, traveling vendors in the 18th century were known to peddle “spiced sausage rolls” to hungry coach passengers. And, of course, we cannot forget the great British seaside, where stalls began selling hot dog-like sausages in soft white rolls as early as the 1920s. While we never fully embraced the hot dog in the same way as Americans, our love of sausages in convenient breaded formats was alive and well — just ask anyone who has ever braved a football match with a lukewarm stadium hot dog of dubious origin.</p><p>And then the hot dog spread — gloriously, irrepressibly, like ketchup on a child’s hands. Each region, like a mad scientist with a penchant for encased meats, took the hot dog and made it their own. In Mexico, the Sonora dog emerged, wrapped in bacon and topped with tomatoes, avocado, and a shameless amount of mayonnaise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*hSoO-iaLlo2Fl-BC" /><figcaption>Sonora dog (Mexico)</figcaption></figure><p>The Tijuana dog, not to be outdone, added jalapeños and grilled onions for good measure. Seattle decided cream cheese and sriracha belonged on theirs, while Colombia, possibly in an act of joyful culinary chaos, threw pineapple, crushed potato chips, and a quail egg on top. The Japanese, always ones to prioritize aesthetic, turned theirs into tiny edible octopuses, because, well, why not?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AyBLzI8df_SsgttJ.jpg" /><figcaption>Tijuana Hotdog</figcaption></figure><p>Even within the United States, the hot dog has been subject to fierce regional modifications. Los Angeles, home of the famous Dodger Dog, prides itself on the footlong variety, while Detroit slathers its Coney Dog in chili and onions. In the Carolinas, they heap on coleslaw, because if there’s one thing the South knows, it’s that everything is improved with coleslaw. New York remains faithful to the minimalist mustard-and-sauerkraut approach, while Chicago’s devotion to its precise assembly of mustard, neon-green relish, onions, tomato slices, pickle spears, sport peppers, and celery salt is so strict that asking for ketchup may result in exile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*ilsis2XdAb44k4uB" /><figcaption>Chicago hotdog</figcaption></figure><p>The hot dog’s secret, of course, isn’t just its taste — it’s its portability, its adaptability, its sheer nostalgic power. It’s a food that reminds us of simpler times: childhood barbecues, ballpark afternoons, and street fairs where the smell of grilled meat mingles with the sound of distant laughter. It is, quite simply, a comfort food in the truest sense of the term.</p><p>But beyond nostalgia, the hot dog carries with it an absurdly rich history. The term “hot dog” itself is rumored to have originated in the early 20th century when cartoonist Tad Dorgan, upon seeing a vendor selling “dachshund sausages” at a baseball game, couldn’t quite spell “dachshund” and instead jotted down “hot dog” — and the name stuck. Then there’s the fact that President Franklin D. Roosevelt once served King George VI hot dogs at a picnic during his 1939 visit to the U.S. (which, by all accounts, the king thoroughly enjoyed). Or that during World War II, when the term “frankfurter” sounded too Germanic, patriotic Americans started calling them “liberty sausages.”</p><p>So the next time you sink your teeth into a hot dog, take a moment to appreciate the long, meandering journey that brought it to your hands. From the sausage-makers of medieval Europe to the street vendors of 19th-century Coney Island to the backyard grill of your neighbor who always burns things just a little, the hot dog has been there — quietly, steadfastly, deliciously — through it all.</p><p>And Britain, for all its culinary quirks, has played its part in this great sausage odyssey too. While we may not have invented the hot dog, we certainly knew a good banger when we saw one. In the 19th century, British butchers were already stuffing sausage casings with pork and dubious bits of animal, a tradition dating back to at least the Tudors, who, let’s be honest, were enthusiastic about anything that could be encased in pastry or intestine. By the time German immigrants were bringing their frankfurters to America, Britons were tucking into something suspiciously similar at seaside promenades, where vendors hawked steaming sausages to windblown holidaymakers who knew, instinctively, that anything tastes better when eaten in the rain.</p><p>During both World Wars, when rationing turned even the humblest of sausages into an aspirational luxury, British sausages gained their now-infamous reputation for being packed with more bread than meat — hence the nickname “bangers,” so called because they had an unfortunate tendency to explode in the pan due to their high water content. They were, effectively, edible shrapnel. And while Britain never quite embraced the hot dog in the full, flag-waving, ballpark-munching manner of our American cousins, we certainly gave it our own peculiar stamp. To this day, at any given fairground, football match, or railway station, you can still find a lone vendor serving up a piping-hot hot dog with a level of indifference that suggests it is both a privilege and a mild inconvenience for them to be doing so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5PGrTSAkuTyOTzBw" /></figure><p>And as long as there are buns, grills, and a need for a meal that can be eaten with one hand while fending off seagulls, the hot dog isn’t going anywhere.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d39f6d6d582d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rediscovering The Matrix]]></title>
            <link>https://medium.com/@mahinsasa903/rediscovering-the-matrix-2a54b171a9bc?source=rss-fc64dfbc65c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a54b171a9bc</guid>
            <category><![CDATA[insights]]></category>
            <category><![CDATA[matrix]]></category>
            <category><![CDATA[deep]]></category>
            <category><![CDATA[wachowski]]></category>
            <category><![CDATA[simulation]]></category>
            <dc:creator><![CDATA[Chathura Perera]]></dc:creator>
            <pubDate>Mon, 18 Nov 2024 21:50:56 GMT</pubDate>
            <atom:updated>2024-11-18T21:50:56.075Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*949pm4K74eLBRykXQtJ5Vg.png" /></figure><p>Do you remember the first time you watched The Matrix? For me, it was a spring evening in 1999, nearly a quarter-century ago. I found myself sinking into the worn velvet seat of a small, dimly lit theatre, the aroma of buttered popcorn mingling with the faint scent of anticipation that filled the air. As the lights dimmed and that enigmatic cascade of green code trickled down the screen, I felt an electric thrill run through me. Then, suddenly, we were thrust into a heart-stopping chase scene with Trinity. Clad in sleek black leather, she moved with a grace and ferocity that was unheard of at the time — especially for a female lead. Her gravity-defying leaps and flawless martial arts not only redefined action sequences but also shattered conventions about gender roles in cinema. It was as if we were all collectively stepping into a new realm — one where reality itself was up for debate. The notion that our everyday lives might be an elaborate illusion didn’t just entertain me; it unsettled and exhilarated me, shaking the foundations of everything I thought I knew.</p><p>Revisiting the film now, after years filled with life’s twists and turns, it’s like opening a time capsule. The Matrix unfolds not just as a sci-fi spectacle but as a profound commentary on existence. It’s a mirror reflecting the complexities of our own lives — the choices we’ve made, the unseen systems that influence us, and the paths we’ve either followed or dared to stray from.</p><p>As I pressed play, that familiar green code wasn’t just a special effect; it was a portal back to a different era. I could almost feel the texture of the old theater seat, hear the collective gasps of an audience witnessing something revolutionary. Trinity’s words to Neo echoed differently now: “You know that road. You know exactly where it ends.” Back then, they were thrilling lines in an action movie. Today, they felt like a personal challenge — a call to examine the well-worn paths in my own life, the comfortable routines that offer safety but perhaps hinder growth.</p><p>I found myself not just watching but engaging with the film on a deeper level, as if decoding a message meant just for me. Intrigued by these newfound layers, I couldn’t stop at the original. I journeyed further down the rabbit hole, revisiting The Matrix Reloaded, The Matrix Revolutions, and even The Matrix Resurrections. Each sequel, once simply exciting continuations of an action-packed saga, now unfolded like chapters of a philosophical journey — exploring intricate ideas about free will, destiny, and the very fabric of reality.</p><p>Isn’t it remarkable how a franchise can evolve alongside us? How it remains unchanged, yet reveals new deeper insights as we bring to it the accumulated experiences of our lives? Perhaps you’re feeling it too — the stirrings of memories from your first encounter with The Matrix. Maybe you’re recalling where you were, who you were back then, and noticing how its themes resonate differently with you now.</p><p>What follows are my reflections and interpretations — a personal exploration of the symbols and metaphors that have left an indelible mark on me. Yet, the true beauty of The Matrix lies in its openness to interpretation. It’s not just a story; it’s an invitation. It asks us to find our own meanings, to question our realities, and to draw deeply personal insights from its rich tapestry.</p><p>Back in the late ’90s, the internet was still a burgeoning frontier — a digital Wild West promising to connect us in ways we could scarcely imagine. In The Matrix, every individual is linked to a unique “hash” — a digital fingerprint representing their actions, choices, and essence within the system. This hash isn’t static; it evolves, much like our online identities have over the years, shaped by our interactions and the digital footprints we leave behind.</p><p>Positive actions that align with the Matrix’s equilibrium — conformity, self-interest, the pursuit of personal gain — reinforce the system, much like how today’s algorithms promote content that keeps us comfortably engaged. Conversely, acts of altruism, rebellion, and self-sacrifice introduce anomalies, disrupting the smooth operation of the code.</p><p>This concept mirrors the ancient idea of karma — a ledger of actions influencing one’s future. Just as karmic imprints carry over into new lives, the hashes in the Matrix are reattributed upon an individual’s death, affecting the next person’s capacity to conform or rebel. Over countless cycles, these accumulated hashes can give rise to someone like Neo — a singular anomaly capable of challenging the system’s very foundations.</p><p>In the world of The Matrix, The One is a product of these accumulated anomalies — a systemic imperfection that the machines cannot eliminate. Each iteration of The One, including Neo and his five predecessors, is created by the Matrix itself as a failsafe — a deliberately programmed anomaly designed to stabilize the system. The Architect explains that because humans reject a purely deterministic reality, imperfections are inevitable, introducing systemic anomalies that the Matrix must manage.</p><p>The Matrix mitigates this instability by allowing these anomalies to aggregate overtime within a single individual — The One. This person possesses extraordinary abilities within the Matrix due to their intrinsic connection to the system’s code. They’re both a threat to the system and a necessary component of its ongoing control — a paradox that ensures the cycle continues.</p><p>What sets Neo apart from his five predecessors is his unique choice driven by altruism and love. While the previous Ones chose to reboot the Matrix and perpetuate the cycle, Neo prioritizes his love for Trinity and the liberation of humanity over the system’s continuation. His decision to refuse the Architect’s offer and instead broker peace between humans and machines disrupts the established cycle, breaking the machines’ long-standing control.</p><p>Neo’s deep connection to the Source — the central control hub of the machine world — grants him abilities that extend beyond the virtual realm of the Matrix. When he’s blinded in the real world, he begins to “see” machines as forms of golden light, perceiving their digital essence through his awareness of the underlying code. This ability symbolizes his role as a bridge between the human and machine realms, highlighting his unique position in both worlds.</p><p>Reflecting on this now, I can’t help but see parallels with our own digital lives. We’ve become part of systems that track, influence, and sometimes confine us in invisible ways. Just as the Matrix uses these hashes to manage and control individuals, today’s digital platforms monitor our actions, reinforcing certain behaviors while suppressing others. The portrayal of digital karma in The Matrix feels eerily prescient — a poignant reminder of the unseen forces that shape our realities.</p><p>Neo’s journey teaches us about the power of individual choice in the face of systemic control. His decision to break the cycle and pursue peace rather than perpetuating the status quo highlights the impact one person can have on an entire system. It prompts me to consider our own capacity to challenge the structures that influence us and to recognize the potential for change when we act out of altruism and self-sacrifice.</p><p>In a world where algorithms and digital footprints increasingly define our experiences, Neo’s story encourages us to question and, if necessary, disrupt the systems that seek to confine us. By understanding the cycles we are part of — much like the cycles of The One — we can make conscious choices that lead to genuine transformation. Just as Neo’s unique choice led to peace and broke the system, perhaps our actions can also pave the way for meaningful change in our own digital matrix.</p><p>Remember the turn of the millennium, when the world buzzed with talk of Y2K and the future seemed both exciting and uncertain? There’s a peculiar heaviness in the roads we’ve walked daily for years, paths worn smooth by the footsteps of repetition. The choices we’ve made — what to buy, where to work, how to live — often felt like our own, yet were they truly? Or were they subtly guided by the invisible currents of societal expectations and inherited norms?</p><p>The architecture of our lives presses inward, much like the towering structures within the Matrix, directing our steps without us even realizing it. We, like Neo before his awakening, move through these constructed realities, often unaware of the systems that confine us.</p><p>Rewatching <em>The Matrix</em> now, I can’t help but reflect on the routines I’ve accepted without question — the comfortable patterns that have both defined and limited me. It’s a stirring reminder of the potential to awaken, to challenge the status quo, and to seek a deeper understanding of the world and our place within it.</p><p>Fast forward to today, and platforms like Facebook, TikTok, and YouTube have become integral parts of our daily existence. They employ sophisticated algorithms that monitor our likes, shares, watch times, and interactions, crafting personalized feeds that cater to our preferences. At first glance, this personalization seems convenient — after all, who wouldn’t want content tailored to their interests? But beneath the surface lies a more subtle, perhaps more insidious effect.</p><p>These algorithms don’t just reflect our interests; they shape them. Every swipe, click, and view feeds back into the system, refining the content we see next. It’s a self-perpetuating cycle that can lead to polarization, misinformation, and a fragmented understanding of the world. We become trapped in a carefully constructed reality, much like the inhabitants of the Matrix, unaware of the manipulations at play.</p><p>Here’s how it works: platforms utilize data to monitor our behavior. Every interaction — be it a like, share, comment, or even the amount of time we linger on a post — is a data point. The algorithms use this data to build a dynamic profile of our preferences, which isn’t static; it evolves with every action we take, much like how our online identities have evolved over the years.</p><p>They employ recommendation systems — complex algorithms designed to predict and suggest content we’ll find engaging. Two common types are collaborative filtering and content-based filtering. <strong>Collaborative filtering</strong> recommends content based on similarities between users. If you and others have liked similar videos in the past, the algorithm assumes you might enjoy content they liked. <strong>Content-based filtering</strong>, on the other hand, suggests content similar to what you’ve engaged with previously, analyzing features like keywords, tags, and descriptions.</p><p>This creates a feedback loop: the more we engage with certain types of content, the more the algorithm serves us similar material. Over time, this loop can narrow the scope of content we see, much like walking down a corridor that gradually becomes a tunnel. It’s akin to the “echo chambers” or “filter bubbles” that reinforce our existing beliefs and limit our exposure to diverse perspectives.</p><p>On TikTok, for example, the “For You” page quickly learns your viewing habits. If you engage with videos on a particular topic — say, fitness routines or political commentary — the app serves you more of the same, narrowing your worldview. The content becomes a loop, a digital modality where new ideas struggle to break through.</p><p>Facebook amplifies this by prioritizing content that elicits strong emotional reactions. Posts that provoke anger, joy, or fear are more likely to appear in your feed because they increase engagement. This is rooted in the platform’s optimization algorithms, which prioritize engagement metrics like likes, shares, comments, and watch time. However, this can unintentionally promote sensational or extreme content because such material often triggers stronger reactions. The algorithm doesn’t consider the truth or ethical implications of the content; it simply amplifies what keeps you scrolling.</p><p>Similarly, YouTube’s recommendation system can guide you deeper into specific realms, blurring the lines between reality and fabrication — a modern-day Matrix molding our perceptions without us even realizing it.</p><p>These platforms aim to maximize user engagement because it correlates with ad revenue. To achieve this, algorithms often prioritize content that elicits strong emotional responses. While this keeps us hooked, it can lead to the spread of misinformation and polarization. We become immersed in a digital ecosystem where our perceptions are shaped by unseen forces, much like the characters in the film are unaware of the simulated reality they inhabit.</p><p>Reflecting on this now, it’s hard not to see parallels with the world of <em>The Matrix</em>. In the film, the system maintains control by assigning each individual a unique “hash” — a digital fingerprint representing their actions and choices within the Matrix. This hash isn’t static; it evolves, influenced by every decision, much like our profiles on social media platforms. Positive actions that align with the Matrix’s equilibrium — conformity, self-interest, the pursuit of personal gain — reinforce the system. Conversely, acts of altruism, rebellion, and self-sacrifice introduce anomalies, disrupting the smooth operation of the code.</p><p>Similarly, our online interactions feed into algorithms that reinforce certain behaviors while suppressing others. The portrayal of digital karma in <em>The Matrix</em> feels eerily prescient — a poignant reminder of the unseen forces that shape our realities. Just as the Matrix uses these hashes to manage and control individuals, today’s digital platforms monitor our actions, creating feedback loops that can limit our perspectives.</p><p>In <em>The Matrix</em>, Neo emerges as an anomaly — a result of accumulated actions that disrupt the system’s equilibrium. His journey teaches us about the power of individual choice in the face of systemic control. Unlike his predecessors, Neo chooses to break the cycle, prioritizing love and humanity’s liberation over the perpetuation of the system. His decision highlights the impact one person can have on an entire system.</p><p>It prompts me to consider our own capacity to challenge the structures that influence us. To navigate this digital landscape, we must become aware of these underlying mechanisms. Just as Neo chose to forge his own path, perhaps we too can make conscious choices to step outside our digital echo chambers. By seeking diverse perspectives, questioning the content presented to us, and understanding how our actions feed into the algorithms, we can begin to reclaim agency over our perceptions.</p><p>After all, much like the inhabitants of the Matrix, we might be unaware of the manipulations at play. Recognizing these patterns is the first step toward breaking free from the digital modalities that confine us. It’s about understanding that true change comes from addressing the underlying systems, not just tweaking variables within them. This journey demands awareness, critical thinking, and the courage to seek out the broader landscape of truth.</p><p>By doing so, we begin to negate the effects of these algorithms. Like Neo choosing the red pill, we must opt to see beyond the curated illusions and confront the reality of our digital environments. The challenge isn’t just to consume information but to understand how that information reaches us and to reclaim agency over our perceptions. In a world where screens often replace windows, it’s imperative that we look beyond the reflections they offer and seek out the broader landscape of truth.</p><p>So how do we navigate this digital landscape? The key lies in conscious engagement — thinking independently and critically evaluating the information presented to us. This means actively seeking out content from a variety of perspectives. Diversify your sources: read articles from different news outlets, follow creators with differing viewpoints, and question the homogeneity of your feed. Be mindful of how certain content makes you feel and why. Are you being informed or emotionally manipulated? Recognize when content is designed to provoke rather than enlighten.</p><p>Limiting algorithmic influence is also crucial. Adjust your app settings to reduce personalization where possible. Use features that allow you to see content in chronological order or from a broader array of sources. Before accepting information as truth, cross-reference with reputable outlets. Engage in discussions with others to challenge and refine your understanding.</p><p>By taking these steps, we begin to negate the effects of these algorithms. Like Neo choosing the red pill, we must opt to see beyond the curated illusions and confront the reality of our digital environments. The challenge is not just to consume information but to understand how that information reaches us and to reclaim agency over our perceptions. In a world where screens often replace windows, it’s imperative that we look beyond the reflections they offer and seek out the broader landscape of truth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3FzLDHdRbjAIk9aR09v8KA.png" /></figure><p>In the first movie, there’s a pivotal scene where Morpheus presents Neo with a seminal choice: the red pill or the blue pill. It’s more than just a plot device; it’s a profound metaphor that has echoed through culture and conversation ever since. The blue pill offers the comfort of ignorance — a return to familiar roads, the safety of the known, and the blissful sleepwalk through life without questioning the nature of reality. The red pill, however, promises truth — a shattering of illusions and the daunting challenge of confronting reality in all its unfiltered harshness.</p><p>This dichotomy isn’t confined to the film; it manifests in our lives repeatedly. Every day, we face choices that mirror Neo’s. Do we accept the narratives presented to us — the curated news feeds, the dominant cultural stories, the inherited beliefs? Or do we question, dig deeper, and seek authenticity even when it’s uncomfortable?</p><p>Choosing the red pill symbolizes the courage to face our own shadows, much like Carl Jung’s concept of the shadow self. Jung described the shadow as the unconscious parts of our personality that our conscious ego doesn’t want to acknowledge — our insecurities, fears, and suppressed desires. By confronting and integrating our shadow, we move toward wholeness and self-realization.</p><p>Neo’s journey after taking the red pill is akin to this process. He confronts not only the fabricated reality of the Matrix but also his own limitations and fears. It’s a path fraught with uncertainty and struggle, yet it’s the only path that leads to true freedom and understanding.</p><p>In our modern context, taking the red pill might mean questioning the algorithms that shape our digital experiences, challenging societal norms that no longer serve us, or examining personal beliefs that we’ve never thought to question. It’s about seeking truth over comfort, even when that truth disrupts our sense of security.</p><p>But let’s not romanticize the difficulty of this choice. The allure of the blue pill — the temptation to remain in the comfort of the known — is powerful. Ignorance can indeed be blissful, shielding us from the complexities and pains of reality. However, as <em>The Matrix</em> poignantly illustrates, this bliss is an illusion, a cage that prevents growth and authentic experience.</p><p>The choice between the red pill and the blue pill is a timeless metaphor for the human condition. It’s about the universal struggle between the ease of complacency and the arduous journey toward enlightenment. It’s a reminder that while the truth can be challenging, it is only through embracing it that we can fully engage with life and realize our potential.</p><p>As we navigate our own realities — digital or otherwise — we’re constantly presented with moments where we can choose to awaken. Whether it’s by questioning the information we consume, exploring different perspectives, or delving into self-reflection, we have the power to decide how deeply we want to understand the world and ourselves.</p><p>Remember that intense scene in the subway station where Neo faces off against Agent Smith? The grimy tiles, the flickering lights with familiar greenish tinged lighting it’s the perfect backdrop for an existential duel. Smith isn’t just any antagonist; he’s the embodiment of cold logic and disdain. With every calculated move and measured word, he radiates a certain contempt, not just for Neo, but for all of humanity.</p><p>He refers to humans as a virus, a plague mindlessly consuming resources without purpose. Harsh, right? But let’s pause and think about that. Are there times when we might feel like we’re just going through the motions, consuming without creating, existing without truly living? Smith’s perspective forces us to hold up a mirror and ask ourselves: Are we merely perpetuating the systems that confine us, or are we striving to transcend them?</p><p>Agent Smith doesn’t just want to defeat Neo physically; he aims to break his spirit. He seeks to convince Neo that resistance is futile, that the overwhelming power of the system will always win. It’s that insidious whisper we sometimes hear in our own minds: “Why bother? What difference can you make?”</p><p>Within the intricate framework of The Matrix, the evolution of Agent Smith serves as a pivotal element that underscores the system’s inherent instability and its intricate mechanisms for maintaining control. Originally introduced as a standard Agent, Smith is designed to enforce the Matrix’s stability by suppressing anomalies and eliminating threats to the system, including The One. However, his character undergoes a profound transformation after his defeat by Neo, the sixth iteration of The One. Unlike his predecessors, who adhered strictly to their programming to reboot the Matrix and repopulate Zion, Smith breaks free from his original directives, morphing into a rogue program with the ability to replicate himself uncontrollably. This metamorphosis positions him as an “Anti One,” a counterbalance to The One, embodying the system’s unintended consequences when managing systemic anomalies. Smith’s newfound autonomy and viral nature introduce chaos into the previously controlled environment, challenging both the Matrix and Neo’s role within it. This evolution is not merely a plot twist but a reflection of the delicate balance the Matrix strives to maintain; The One is created as a failsafe to address human-induced imperfections, yet this very creation inadvertently gives rise to opposing forces like Smith. Each iteration of The One, including Neo’s predecessors, likely faced similar challenges, suggesting that the system’s method of handling anomalies inherently breeds its own forms of resistance. Smith’s rogue behavior signifies a deeper flaw within the Matrix’s architecture — while The One is meant to stabilize by managing human rebellion, Smith emerges as an uncontrollable anomaly that disrupts this balance, highlighting the paradox of the system’s control mechanisms. This dynamic ensures that the Matrix remains a perpetually evolving entity, capable of self-correction but also susceptible to internal threats that arise from its own methods of regulation. Neo’s unique choice to prioritize love and altruism over the Architect’s prescribed path disrupts the established cycle, offering a resolution that integrates Smith into a new equilibrium rather than allowing him to persist as a destructive force. By choosing peace and mutual understanding, Neo not only breaks the cycle of control but also redefines the relationship between humans and machines, illustrating the profound impact of individual agency within a tightly controlled system. This choice ultimately transforms Smith from a mere antagonist into a symbol of systemic change, reflecting the broader themes of autonomy, resistance, and the potential for transformative actions within oppressive structures. Thus, Agent Smith’s evolution from a system enforcer to an Anti One encapsulates the complex interplay between control and rebellion within the Matrix, serving as a narrative device that explores the consequences of the system’s attempts to manage human unpredictability. It emphasizes that true stability cannot be achieved through rigid control alone, as the very mechanisms designed to maintain order can give rise to new forms of disruption. Smith’s journey highlights the essential conflict between predetermined control and emergent chaos, illustrating that within any system, the forces of conformity and rebellion are in constant tension. This layered relationship not only enriches the narrative of *The Matrix* but also offers a profound commentary on the nature of control, the inevitability of resistance, and the transformative power of individual choice in reshaping even the most entrenched systems.</p><p>Think about Agents Smiths actions — the relentless pursuit, the way he bends the rules of the Matrix to his will, yet remains trapped by his own programming. This enhanced version of Smith unconsciously still operates within a rigid framework, unable to see beyond his purpose of escaping deletion and freedom from his overloads. In a way, his inaction — his inability to change or adapt and make choices — speaks volumes.</p><p>Now, contrast that with Neo’s journey. Neo questions, he doubts, he struggles — but he also evolves. He makes choices, takes risks, and ultimately breaks free from the constraints that bind him. While Smith represents fear, doubt, and apathy, Neo embodies the potential for growth and transformation.</p><p>So, here’s a question: How often do we let our own “Agent Smith” hold us back? That inner critic that tells us to stay in our lane, to not rock the boat, to accept things as they are. It’s easy to succumb to that voice, to choose the path of least resistance. But just like Neo, we have the capacity to push beyond those limitations.</p><p>Let’s make it personal. Think about a time when you wanted to try something new — a career change, a creative project, maybe even just speaking up about something that mattered to you. Did you hear that whisper of doubt? Did you feel the weight of expectations and norms pressing down? That’s Agent Smith talking.</p><p>But remember, Smith’s greatest failing is his inability to change. His rigidity becomes his downfall. In contrast, it’s Neo’s willingness to embrace uncertainty, to act despite his fears, that allows him to transcend the boundaries of the Matrix.</p><p>By reflecting on Agent Smith’s actions — and his inactions — we’re prompted to examine our own lives. Are we acting out of fear and conformity, or are we making conscious choices that align with our true selves? It’s a conversation worth having with ourselves.</p><p>As we continue to navigate the layers of <em>The Matrix</em>, let’s keep challenging the narratives that hold us back. Let’s question the systems — both external and internal — that dictate our actions. After all, if Neo can confront and overcome his Agent Smith, maybe we can, too.</p><p>So, next time you hear that inner voice saying, “Why bother?” perhaps it’s worth responding, “Because I can make a difference.”</p><p>Remember that quiet scene in the Oracle’s waiting room? Amidst the chaos and high-stakes action of the film, Neo finds himself in a serene space filled with potential. There, he encounters a young boy dressed like a monk, calmly bending a spoon with his mind as if it were the most natural thing in the world. Intrigued, Neo tries to replicate the feat but struggles. Sensing his frustration, the child offers a simple yet profound piece of advice: “There is no spoon.”</p><p>At first, it might seem like a whimsical riddle, but think about what he’s really saying. The limitations we perceive — the “spoons” in our lives — are often self-imposed constructs. The barriers we face — whether they’re societal expectations, self-doubt, or fear — aren’t as solid as they appear. They’re shaped by our perceptions and beliefs.</p><p>The challenge lies not in bending the world to our will but in altering our perception of it. It’s about recognizing that our reality is, to a significant extent, a reflection of our mindset. When the boy says, “Then you’ll see that it is not the spoon that bends, it is only yourself,” he’s highlighting the power we have to change our circumstances by changing how we view them.</p><p>Think about a time when you felt stuck. Maybe you were convinced that a problem had no solution, or that you weren’t capable of achieving a goal. But then something shifted — perhaps a new piece of information, a change in perspective — and suddenly, what seemed impossible became possible. The situation didn’t change; your understanding of it did.</p><p>This idea invites us to question the fixed nature of our obstacles. Are the limitations real, or are they a product of how we’ve been conditioned to see the world? By understanding that the cage is as much mental as it is physical, we empower ourselves to transcend limitations.</p><p>So, how does this apply to us? Maybe it’s about challenging a long-held belief that no longer serves you. Perhaps it’s reassessing what you think you’re capable of. It could even be as simple as approaching a problem from a different angle.</p><p>Ask yourself: What “spoons” in your life seem unbendable? What would happen if you viewed them not as rigid barriers but as flexible constructs that can be reshaped? How might that shift open up new possibilities?</p><p>But <em>The Matrix</em> doesn’t stop there. It takes us even deeper into the nuances of existence and choice. Remember when Neo finds himself in that eerie train station called Mobil Ave — an anagram for “Limbo”? It’s no coincidence. This place represents a state of transition, a pause between worlds. Trapped between the Matrix and the real world, Neo confronts his own limitations and the choices that have led him there. Haven’t we all felt that way at times? Stuck in a moment of uncertainty, waiting for the next “train” without knowing where it will take us?</p><p>Train stations are fascinating places when you think about it. They’re hubs of potential — each arrival and departure a metaphor for the decisions that propel us forward or hold us back. They challenge us to consider where we’re headed and why.</p><p>Neo’s journey isn’t one of instant enlightenment. It’s marked by hesitation and disbelief. The system he opposes is designed to suppress individuality, reducing people to mere components within a larger machine. Yet, through encounters with characters like the Oracle and experiences that push him to his limits, Neo begins to see beyond the veil.</p><p>Think about that pivotal moment when Neo finally decides to stand his ground against Agent Smith. It’s not because he’s suddenly certain of himself or brimming with confidence. Far from it. It’s a conscious choice born from a profound moment of self-realization. Up until that point, Neo is riddled with doubt, constantly questioning his role and the path before him. The expectations placed upon him and the fear of the unknown keep him hesitating, almost paralyzed.</p><p>But then Agent Smith closes in, embodying not just a relentless pursuer but the crushing force of a system designed to suppress individuality and enforce conformity. This is Neo’s critical crossroads. He decides to stop running — not just literally, but metaphorically. He’s no longer fleeing from his destiny or his true self. In that split second, he turns to face Smith, and all the resolve that’s been quietly building within him comes to the forefront.</p><p>And then something remarkable happens. Neo raises his hand, and the bullets fired at him stop in mid-air, suspended as if time itself has yielded to his will. In that moment, he experiences a profound revelation. Those unbreakable rules he thought governed his reality? They turn out to be anything but rigid. They’re malleable constructs, illusions imposed by the system to maintain control.</p><p>This transformation isn’t just about defeating an enemy; it’s about Neo realizing he has the power to redefine reality — not just for himself, but as a symbol for others trapped in the same confines. His act of defiance transcends personal victory; it symbolically shatters the constraints that bind everyone within the Matrix. By asserting his own agency, he reshapes his reality, showing that the barriers we often accept as insurmountable can, in fact, be overcome when we choose to face them head-on.</p><p>Doesn’t that make you wonder about the “rules” we accept in our own lives? How many limitations are self-imposed or upheld by societal norms that we could challenge if we had the courage?</p><p>The Matrix itself is built upon balance — a self-correcting system designed to maintain control. Neo, as The One, represents an aggregate of countless unbalanced equations — a variable the system cannot predict or contain. His altruistic actions, driven by love and self-sacrifice, introduce chaos into the Matrix’s order.</p><p>It’s like the idea of karma or the concept of accumulated actions over time. Each selfless act adds a disruptive value to the individual’s essence, accumulating over lifetimes. These acts of defiance against the system’s greed and selfishness ultimately lead to the emergence of anomalies capable of challenging the status quo.</p><p>Consider Zion, the last human city. It embodies a paradox. It relies on machines for survival — life support systems, defense mechanisms — while simultaneously fighting against the machines that seek its destruction. Doesn’t that reflect our own complex relationship with technology and the systems we’ve created? We depend on them, yet we often find ourselves at their mercy. It raises the question: Can we find balance? Can we coexist with the technologies and structures we’ve built without becoming subservient to them?</p><p>Then there’s the Trainman, who controls the liminal space of Mobil Ave. He represents the gatekeepers in our own lives — those who dictate access and movement within systems. Neo’s entrapment in the train station highlights the challenges we face when navigating bureaucracies and power structures that seem beyond our control. It’s a reminder that sometimes, despite our abilities and awareness, we can find ourselves in situations where progress requires not just strength but also negotiation and understanding of the underlying systems.</p><p>At its core, <em>The Matrix</em> is a system of control — a code that dictates reality for those plugged into it. Neo’s journey is about rewriting that code, not just for himself but for others. His choices ripple outward, influencing the collective essence of humanity within the Matrix. By embracing his role and acting out of selflessness, he alters the trajectory, paving the way for liberation. It’s a testament to the power of individual actions in effecting systemic change.</p><p>An essential aspect of Neo’s ability to transform the system lies in his access to the backdoors hidden within the Matrix’s code. These backdoors are secret pathways embedded in the digital architecture, guarded by complex security mechanisms known as tumblers. Like the tumblers in a physical lock that must align perfectly to open a door, these digital tumblers represent the intricate algorithms protecting the system’s deepest layers.</p><p>The Keymaker, a pivotal character in <em>The Matrix Reloaded</em>, provides Neo with the means to navigate the Matrix’s hidden corridors, bypassing the conventional rules and reaching the system’s core — the Source. This journey symbolizes the pursuit of ultimate truth and the challenge of overcoming obstacles that guard entrenched power structures.</p><p>By unlocking these backdoors, Neo confronts the Architect, gaining profound insights into the nature of the Matrix and his role within it. The tumblers and backdoors serve as metaphors for the barriers we face when seeking to challenge and change oppressive systems. They highlight that true understanding and transformation require us to delve beneath the surface, to unlock hidden truths often protected by layers of complexity and resistance.</p><p>Returning to Trinity’s poignant words, we’re challenged to examine our own roads. Familiarity offers comfort but often at the expense of growth. The greatest act of defiance isn’t always grand; sometimes, it’s the quiet decision to step off the well-trodden path and forge a new one.</p><p>In rewatching <em>The Matrix</em>, I found myself inspired not just by its cinematic brilliance but by its enduring relevance. It’s a call to wake up, to question the systems that shape our lives, and to recognize the power we hold in making choices that disrupt the status quo.</p><p>So, as we reflect on Neo’s journey, perhaps it’s time to consider our own. What limitations are we accepting without question? What systems are we perpetuating, consciously or unconsciously? And most importantly, what steps can we take to redefine our reality?</p><p>After all, the power to change our circumstances isn’t something external — it’s within us, waiting to be tapped into when we find the courage to make that choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gVOdNlBQEjKQ51XhX5Emew.png" /></figure><p>When you dive into the world of The Matrix Resurrections, it’s impossible not to feel the weight of nostalgia intertwined with a spark of innovation. Two decades after the original trilogy redefined our understanding of reality and choice, the Wachowskis beckoned us back into the rabbit hole with their fourth installment. Yet, as the credits rolled, many found themselves scratching their heads, wondering why this sequel didn’t quite hit the same emotional chords as its groundbreaking predecessors.</p><p>At the heart of Resurrections lies the concept of the modal — a simulation within a simulation, meticulously designed for iterative improvement. It’s more than just a clever narrative twist; it’s a profound metaphor for our own lives, reflecting the endless cycles and repetitions we often find ourselves trapped in. This modal isn’t just a plot device but a mirror, showcasing our relentless pursuit of authenticity in a world inundated with replicas.</p><p>In this latest chapter, Neo reemerges as Thomas Anderson, now a renowned game designer behind a trilogy of The Matrix games. The lines between his reality and memories blur, prompting him — and us — to question the very fabric of existence. It’s a clever nod to our own experiences with déjà vu and the blurred boundaries between our digital and physical selves.</p><p>The modal operates as a sandbox environment within the Matrix, a playground for Thomas to iterate on programs and explore different outcomes. It’s akin to how we replay past conversations or decisions, tweaking variables in our minds in hopes of achieving different results. This digital echo chamber highlights our tendency to remain stuck in repetitive patterns, seeking comfort in the familiar while yearning for meaningful change.</p><p>Enter Bugs, a character who channels the rebellious spirit of a younger Neo. Her discovery of a modal running a distorted simulation of Neo and Trinity’s first encounter serves as a catalyst for unraveling deeper truths. Bugs identifies anomalies — glitches that hint at Neo’s continued existence within this new iteration of the Matrix. The modal transforms into a portal, not just to Neo’s location but to a deeper understanding of how the Matrix has evolved — or perhaps, stagnated.</p><p>What resonates most about Resurrections is its layered meaning. The modal symbolizes the cycles we find ourselves in, both individually and collectively. We often repeat the same scenarios, hoping for different outcomes, yet rarely breaking free from the confines of our established patterns. This reflection is a poignant commentary on our human tendency to seek comfort in repetition, even when it hinders our growth.</p><p>Critics were divided, and understandably so. The original trilogy set a high bar with its philosophical depth and emotional resonance. Resurrections grapples with this legacy, leaning heavily on nostalgia. Familiar scenes and lines interspersed with new characters create a tension between homage and innovation. While some may view this as a hindrance to forging a fresh narrative, others might appreciate the intricate dance between past and present.</p><p>Moreover, the film’s self-referential nature adds another layer of complexity. By positioning Neo as a game designer within the Matrix universe, the Wachowskis blur the lines between creator and creation, reality and fiction. This meta-commentary serves as both a critique and a reflection of our own consumption-driven culture, where reboots and sequels often overshadow original storytelling.</p><p>Yet, beneath the surface-level critiques lies a treasure trove of nuanced insights. Resurrections isn’t just about revisiting familiar territory; it’s about peeling back the layers to reveal the underlying systems that govern our lives. It challenges us to recognize the loops we inhabit and prompts us to break free from them, much like Neo’s journey towards self-realization.</p><p>As I watched Resurrections, I found myself compelled to rewatch the entire series, this time with a keener eye for the subtle messages woven into its fabric. The film’s true brilliance lies not just in its ability to entertain but in its invitation to delve deeper, to question the narratives we accept, and to seek out the hidden truths beneath the surface.</p><p>So, if you haven’t revisited The Matrix series in a while, perhaps it’s time to do so. Approach it with fresh eyes, ready to uncover the intricate layers and underlying narratives that make it more than just a sci-fi spectacle. You’ll find that each viewing offers new insights, enriching your understanding of both the films and your own journey through the complex matrix of life.</p><p>After all, the most profound transformations come not from merely watching but from truly seeing — and The Matrix Resurrections is a compelling call to do just that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azfk6kbVSQXkAJ2CYu3q1Q.png" /></figure><p>So, perhaps Resurrections wasn’t just another sequel — it was a wake-up call. A prompt to consider whether we’re content replaying the same scenarios or ready to embrace the uncertainty of uncharted paths. The answer, I think, doesn’t lie in the film itself but in the choices we make after the credits fade — a testament to the enduring influence of The Matrix on our collective journey toward self-discovery and transformation.</p><p>In the end, maybe that’s the enduring magic the Wachowskis sought to convey with The Matrix Resurrections. It’s not merely about bending spoons or dodging bullets, but about recognizing the profound impact of our choices and the connections we forge. The film invites us to look beyond the surface — to see that true transformation comes from within and that our potential is limitless when we dare to question the reality presented to us.</p><p>Through Neo and Trinity’s rekindled bond, we’re reminded human connections can transcend even the most formidable barriers. Their journey reflects the idea that when we unite our strengths, we can challenge the systems that confine us, both externally and within ourselves. It’s a nuanced insight into the power of collaboration over isolation — a theme that resonates deeply in our increasingly interconnected yet often fragmented world.</p><p>As I reflect on my own path, I find myself drawn to rewatch the series, not just for the nostalgia but to delve deeper into the layers I may have missed the first time around. Perhaps there’s more to uncover — subtle messages about agency, perception, and the courage it takes to redefine our own narratives.</p><p>So, maybe it’s time we all take that plunge once more. Let’s revisit The Matrix with fresh eyes, open to the underlying narratives that speak to our personal journeys. Who knows what revelations await us when we dare to look beyond the code and embrace the infinite possibilities that lie within.</p><p>After all, the choice has always been ours. And as the saga reminds us, it’s never too late to see just how deep the rabbit hole goes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a54b171a9bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Last Exposure]]></title>
            <link>https://medium.com/@mahinsasa903/the-last-exposure-78e5db942e33?source=rss-fc64dfbc65c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/78e5db942e33</guid>
            <category><![CDATA[sasquatch]]></category>
            <category><![CDATA[autumn]]></category>
            <category><![CDATA[yosemite-national-park]]></category>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[criptide]]></category>
            <dc:creator><![CDATA[Chathura Perera]]></dc:creator>
            <pubDate>Thu, 02 May 2024 23:08:10 GMT</pubDate>
            <atom:updated>2024-05-02T23:08:10.435Z</atom:updated>
            <content:encoded><![CDATA[<p>As the first brush of autumn swept through Yosemite National Park, it painted the towering sequoias and rugged granite cliffs with a palette of burnished golds and deepening reds. Luke, camera in hand, meandered through the underbrush, a few steps behind his Uncle Brian. Each snap of his camera captured the vibrant ballet of oak leaves pirouetting gracefully to the forest floor, a spectacle of color that would surely captivate his recently growing social media followers. The stark contrast of light and shadow played across his lens, crafting scenes of dramatic beauty that begged to be shared.</p><p>But beyond the immediate allure of these images, there was a profound stillness in the air, a silence so dense that it seemed make the forest almost alive. This eerie quiet was punctuated only by the occasional crack of a branch underfoot or the distant call of a raven, its caw echoing off the stone like a solemn bell. As they delved deeper into the heart of the forest, the sounds of their passage seemed to be absorbed by the towering trees, swallowed by a verdant expanse that had stood sentinel over these lands for millennia.</p><p>This silence, this sacred stillness, lent an otherworldly quality to their trek, as if each step took them further from the world they knew and deeper into a realm of ancient whispers and secrets. The forest seemed to watch them, its age-old presence a palpable force that could be felt in the chill of the shadowed places and seen in the watchful eyes of the hidden creatures. It was a place out of time, where the modern buzz of Luke’s digital existence clashed with the timeless rhythm of nature — a dramatic backdrop that not only beckoned his followers to look but urged them to listen, to feel, to immerse themselves in the mystery that unfolded with each frame he captured.</p><p>Brian, a veteran of the wilderness, bore the weathered countenance of one who had spent countless days under the open sky. His rugged features, etched by sun and wind, watched Luke with a blend of awe and worry. The boy, a quintessential child of the digital era, interacted with the world primarily through the sterile, demanding lens of his camera, often missing <br>Brian, noticing Luke’s fixation through the viewfinder, gently nudged him to take a moment to absorb the scene unfiltered. “You know, your followers might not realize they want something different until you show it to them,” he said with a knowing smile. “Everyone’s seen the postcard shots. Let’s find something new, something raw.” Inspired by his uncle’s words, Luke lowered his camera, allowing his eyes to adjust to the broader canvas before him.</p><p>Encouraged to stray from the well-worn paths that tourists frequented, they veered deeper into the wilderness. Brian led the way, his steps sure and quiet, threading through dense underbrush and over mossy logs that had fallen long ago. The landscape changed as they ventured off the beaten track; towering trees leaned closer, their branches forming a cathedral-like canopy above, while the ground beneath their feet turned soft with layers of decomposing leaves. The air grew cooler, the light dimmer, and the forest around them seemed to envelop them in its ancient, whispering secrets.</p><p>As they pushed further into the less-trodden reaches of the park, the subtle noises of the civilized world faded until all that remained was the rustling of wildlife and the gentle gurgle of a distant stream. It was as if they had stepped into another world, one untouched by human hands, offering a glimpse into the visceral thrills of nature’s unmediated splendors. clamor of the outside world dwindled, swallowed by the dense forest. In its place rose the soft symphony of the wild: leaves whispered secrets to the wind; branches creaked and swayed like old bones; a stream murmured in the distance, its water tumbling over stones with a sound like gentle laughter. The deeper they ventured, the more the forest seemed to close around them, a living entity, vast and ancient, watching with a million unseen eyes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vsnFnKU1Be1jBhgvXYrc0A.jpeg" /></figure><p>Their path meandered through a blanket of crisp, fallen leaves, leading them into a secluded glen shrouded by the whispering presence of ancient trees. Here, Luke stumbled upon an old backpack, carelessly discarded against the gnarled trunk of an oak. The fabric of the pack was faded and worn, melding with the forest detritus.</p><p>A few paces away, nestled under a cascade of fallen leaves, lay an early 2000s digital camera. It was some distance from the backpack, as if it had been dropped in haste or forgotten during a sudden departure. Its casing was cracked and bore the harsh marks of weather exposure, lending it a fragile, abandoned appearance. These relics, separated yet linked by their apparent abandonment, hinted at stories of adventure now silenced by the encroaching wilderness.</p><p>“Seems like this trip didn’t end the way somebody planned,” Brian murmured, his gaze lingering on the abandoned belongings with a touch of sadness.</p><p>Back in the bustling city of Oakland, the artifacts became the center of an impromptu investigation led by Luke and his friend Simon, another whiz with electronics. While Simon tackled the damaged camera, Luke delved into the journal, discovering it belonged to a conservationist named Theo, who, along with his companions Jane and Michael, had been documenting the rare Erythranthe filicaulis.</p><p>The journal entries detailed their journey, initially filled with scientific excitement and personal anecdotes. However, as days passed, the entries grew terse, shadows of concern creeping into the margins of the pages.</p><p>The small room was awash with the blue glow of Simon’s dual computer screens as he worked meticulously to recover the data from the camera’s aged and weathered memory card. Luke hovered nearby, the weight of expectation tangible in the cramped space. When the files finally opened, a torrent of digital images and videos flooded the screen, and both boys leaned in, eyes wide with anticipation.</p><p>Initially, the footage was exactly what one might expect from a group of enthusiastic conservationists. The first video clip revealed Theo, Jane, and Michael in high spirits, with the lush green canopy overhead filtering the sunlight into brilliant shards of gold. They laughed often, their voices clear and joyful, as they documented the delicate blooms of the Erythranthe filicaulis, a rare find in the dense underbrush of Yosemite. Their campsite was a lively scene of tents and equipment, nestled peacefully in a small clearing surrounded by the towering trees.</p><p>But as Simon advanced through the clips, a subtle shift began to manifest in the footage. The trio’s initial buoyancy started to wane, and the laughter that once filled the forest grew sparse and forced. In one video, as dusk enveloped the woods, the camera caught their uneasy glances as a sudden, eerie howl sliced through the silence of the night. The forest seemed to hold its breath, and even the cheerful crackling of the campfire could not dispel the growing sense of dread.</p><p>The next sequence of videos, shot primarily under the ghostly pallor of the camera’s night mode, revealed even more disturbing changes. Shadows darted just beyond the circle of firelight, and the night was filled with the rustling of disturbed foliage. In one clip, the camera shook slightly — held by a trembling hand, perhaps — as it captured the frantic, hurried movement of deer and smaller creatures in the underbrush, as if fleeing an unseen predator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTAXxJ0InfNgsKiuTYnF8w.jpeg" /></figure><p>The footage from the following day was more fragmented. It began with a morning check of their surroundings, the camera panning over broken branches and disturbed earth that were not present the night before. The group’s conversation, caught in snippets, was tense and hushed. As darkness fell again, the camera, now positioned to face the camp perimeter, recorded hours of stillness — until a sudden commotion shattered the quiet. Shouts fractured the calm, the camera fell to the ground, its lens capturing only the chaos of rapid movement, the edge of a tent collapsing, and then, an unsettling silence that seemed too dense, too complete. The tension was palpable, leaving Luke and Simon staring at the screen, the eerie stillness of the room amplifying their accelerated heartbeats.</p><p>Then came the final video. The frame was shaky, the sounds of panic cutting through the bird songs. Screams sounded in the distance as the camera captured glimpses of a hulking figure moving with startling quickness. The video ended with a clear shot of a creature straight from folklore — a Sasquatch — before the camera was abruptly dropped, the screen going black after a haunting, silent stare into the lens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JWJeNYz3T-DFAgojGtTEIA.jpeg" /></figure><p>Luke paced the room, his fingers drumming against his leg, while Simon sat intently in front of the computer, both awed and anxious. The screen displayed the recovered footage — a treasure trove of virality that promised to catapult them into the spotlight.</p><p>“Think about it, man,” Simon urged, breaking the silence. “This is huge! You’d blow up overnight! We need to get this out there.”</p><p>He began excitedly explaining the upload process, navigating through the steps on the screen. “Just imagine the likes, the comments… You could be trending by tomorrow morning!”</p><p>Luke leaned closer, his eyes fixed on the cursor that trembled on the brink of ‘upload’. The excitement of going viral buzzed through him like a live wire. Simon, caught up in the hype, was already laying out their roadmap to internet stardom.</p><p>“Dude, this is wild! We’ll break the internet with this — imagine the hits, the follows, the crazy exposure!” Simon’s voice crackled with enthusiasm, his hands dancing over the keyboard.</p><p>Yet, as the excitement swirled around him, Luke’s eyes drifted to the still-open file on the screen. The creature’s eyes — deep, sentient — stared back at him from the frozen frame. A pang of something deeper tugged at his conscience, the creature’s gaze echoing the silent, haunted depths of Yosemite’s ancient woods.</p><p>“But, like, what about the vibe out there, the calm, the untouched?” Luke’s voice wavered, the image of the creature’s profound gaze imprinted in his mind. “Brian was all about respecting the wild, you know? Letting it be its fierce, raw self without us messing it up.”</p><p>Simon’s fingers paused, hovering in limbo. “Bro, this is our moment. This is massive. We can’t just sit on it.”</p><p>Luke was feeling torn inside. As he reflected on their trek — the sacred hush that draped the forest, the respectful steps they took among ancient trees — his heart sank at the thought of revealing their secret. In a burst of vivid imagination, he pictured laboratories buzzing with cold, clinical energy; flashing cameras blinding the dark, secretive corners of nature; scientists in sterile white coats handling the creature, stripping it of its wild essence. Each image was like a betrayal, draining the life from something profoundly beautiful and free.</p><p>In his mind’s eye, he saw the Sasquatch, once a majestic embodiment of the wild, now cowering in the corner of a stark, metal cage. Its eyes, once bright with the untamed spirit of the forest, now dimmed with fear and confusion. Its powerful presence, which had commanded the depths of the wilderness, reduced to a mere spectacle. This vision of the creature, its wild energy sapped, trapped in confinement, solidified Luke’s resolve. No amount of fame could justify the loss of such raw, natural wonder.</p><p>Finally, he sighed, the decision cementing in his heart. “Nah, man, it’s not right. Think about it — blasting this out there would be like handing it over to a circus. We’d be swapping something sacred for what? A few viral days?”</p><p>Simon’s expression softened, the initial disappointment fading into a deeper, mutual understanding. He slowly closed the laptop, the click final and decisive. “Yeah, you’re right. Some stories… they’re meant to stay hidden, just felt.”</p><p>As the weight of their choice settled between them, Luke reached over and deleted the footage. The memory card cracked under the pressure of his resolve, a silent testament to their decision. Simon looked on, somber but supportive.</p><p>“You did the right thing,” Simon whispered. “Not every discovery is ours to share.”</p><p>Together, they sat back, the burden of their secret shared and solemn, yet with a quiet pride in their choice to protect the mystery that had trusted them as its accidental guardians.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*52r_Af4g9epoE02INuC5Ug.jpeg" /></figure><p>Luke nodded, a sense of peace settling over him. He had entered the shadows of the Sierra seeking digital fame, but he emerged with a reverence for its untamed mysteries. Some secrets, he realized, deserve the quiet dignity of remaining untouched.</p><p>As he sat, the fragments of the memory card before him, a reflective calm enveloped Luke. The thrill of virality had ebbed, replaced by a profound connection to the wilderness. His recent experience in Yosemite had altered him; the reckless pursuit of likes had given way to a deeper understanding. Not all wonders should be broadcasted; some demand silence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78e5db942e33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ghostly Gambit]]></title>
            <link>https://medium.com/@mahinsasa903/the-ghostly-gambit-e44d824f737f?source=rss-fc64dfbc65c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e44d824f737f</guid>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[devil]]></category>
            <category><![CDATA[horror-fiction]]></category>
            <dc:creator><![CDATA[Chathura Perera]]></dc:creator>
            <pubDate>Sun, 28 Apr 2024 21:49:39 GMT</pubDate>
            <atom:updated>2024-04-28T23:09:36.178Z</atom:updated>
            <content:encoded><![CDATA[<p>Bernard adjusted his coat as he stepped onto the nearly empty carriage of the Scot Rail train, attributing the lack of fellow passengers to the inconvenient timing of this red-eye journey. As the train departed from the damp, flickering lights of the Glasgow station, Bernard settled into a window seat. The rhythmic hum of the train on the tracks and the lonely whistle through the dark Scottish landscape set a contemplative backdrop for Bernard’s thoughts. Recently laid off from his event planner job in Glasgow, he was now on his way to Oban to interview for a resort manager position.</p><p>Bernard clung to the fleeting warmth of hope as the train churned its way toward Oban, the rhythmic clatter of wheels on tracks like the ticking of a clock marking new beginnings and old endings. He had been unmoored, set adrift when the stark, unyielding news of his layoff had first swept through his life like a harsh wind through barren branches. Yet now, as the Scottish countryside blurred past in a semi nocturnal haze, a spark of something daring flickered within him — a chance not just to reclaim the stability he’d lost, but to redefine his future.</p><p>Oban, with its rugged coastlines and whispering winds, promised more than just a mere job; it offered a post as a resort manager, a role where Bernard could craft experiences as meticulously. Here was an opportunity to blend the natural beauty of the Highlands with the luxury of leisure, a chance to create a sanctuary not only for the weary travelers who would come seeking solace but perhaps for himself as well.</p><p>In his mind’s eye, Bernard envisioned the resort under his stewardship, a beacon of light against the stormy Scottish backdrop, its windows aglow with the promise of warmth and welcome. He imagined the laughter and the contented sighs of guests, the clink of glasses, and the soft murmur of satisfied conversations. Each thought was a stitch in the tapestry of his new life, weaving through them his hopes and fears, his ambitions threaded alongside the subtle terror that perhaps, in the end, it might all be a mirage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIgFJP_bcEeRZD-HgP2pNQ.jpeg" /></figure><p>The train’s whistle pierced the night, echoing off the coastal cliffs as a figure approached Bernard. The man’s attire was peculiar: an overcoat that seemed woven from shadows, and eyes that burned with a strange, fiery intensity. His demeanor was unsettlingly calm, almost demonic.</p><p>“Mind if I sit?” the man asked, his voice smooth and resonant.</p><p>“Please,” Bernard replied, curiosity piqued despite his unease.</p><p>The man smiled thinly. “You can call me Lue,” he said, his name a chilling whisper that seemed to hang in the air. “How about a couple of blackjack rounds to pass the time?” Lue mentioned. Normally he wouldn’t have agreed, but some unseen impulse seemed to egg him on, and Bernard replied, “Might as well, eh?”</p><p>As Lue delved into the depths of his shadow-draped overcoat, he drew forth a deck of cards that seemed to thrum with a quiet malice of its own. Their well-worn surfaces were etched with designs both intricate and unnervingly sinister — skulls that were almost adoringly carved into the royal suits, their hollow eye sockets seeming to flicker with dark amusement. Eyes, too, were there — impossibly real, crafted with such devilish care that they appeared to shift, following Bernard’s slightest movement with an unsettling attentiveness.</p><p>Bernard’s heart raced as his gaze followed the intricate lines of the deck. Each card seemed to murmur secrets best left untold, silent custodians of unspeakable tales. As he examined their faces, he couldn’t shake the eerie sensation that the eyes and expressions were too lifelike, as if the souls of real people were etched into each card, their gazes trapped in eternal observation. Alongside these spectral visages, he noticed something deeply unsettling — subtle yet distinct markings that bore a haunting resemblance to aged rust or perhaps more sinister residues. These stains were delicately sprinkled across the edges of each card, like somber brushstrokes in a dark, forgotten portrait, suggesting traces of a hidden, ominous past. This grim feature cast a shadow over the deck, transforming it from a simple pastime into an artifact of some darker, hidden ritual, imbued perhaps with the lifeblood of those who had once held them, their fates as enigmatic and chilling as the cards themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wd60HJKTOcWDd39PIXRs1g.jpeg" /></figure><p>As the game of blackjack commenced, a slow rain began to drizzle outside the train’s windows. The outside scenery subtly shifted, as if the weather itself mirrored the unfolding drama within. What started as a normal view of the rocky coast gradually morphed; the waves grew more violent, crashing against the cliffs with a renewed fury, and the winds howled louder, echoing the stakes of the game.</p><p>Bernard played cautiously, studying each card he drew. The king of spades seemed to sneer at him, a red stain blurring its crown. Lue laid down his cards with a predatory smile, taking the first round effortlessly. “Fortune favors the bold, but not tonight, I’m afraid, Berny,” Lue remarked, his voice tinged with a sliver of malice, thought Bernard.</p><p>Feeling the stakes rise, Bernard’s strategy shifted in the next hand. The queen of hearts fluttered into his hand, her eye seemingly weeping blood. Lue’s chuckles grew low and menacing as the storm outside intensified. Bernard narrowly clinched this round, his pulse quickening. “Ah, a flicker of hope can be quite deceiving,” Lue whispered, almost sympathetically.</p><p>After narrowly clinching the second round, Bernard felt a surge of unease twist in his gut. Sensing a sinister twist in his predicament, he decided to stand and leave, hoping to escape the sinister game. However, as he tried to rise, an invisible force pushed him back into his seat with an unnerving intensity. Shocked and breathless, Bernard looked around, bewildered by the unseen assailant.</p><p>Lue, watching Bernard’s futile attempt with a sardonic smile, leaned forward. The flickering lights of the train cast deep shadows across his face, enhancing his menacing demeanor. “I’m afraid there are no forfeits today, old chap,” Lue said, his voice smooth and ominously calm. Bernard, realizing he was trapped, sank reluctantly back into his seat as the storm outside intensified, the wind howling louder against the windows, as if in chorus with Lue’s dark intentions.</p><p>With each card played, the storm’s fury seemed to grow, echoing the rising stakes of the game. By the third round, as Bernard drew his cards with shaky hands, the lightning flashed more violently, illuminating the looming cliffs through the fogged windows. Lue’s confident grin broadened with each win, his voice cutting through the thunder, “The abyss is looking at you, Berny. Do you feel it calling you? One more round to go,” he taunted, the storm raging as fiercely as the battle unfolding on the table.</p><p>As the cards were dealt for what would be their last confrontation, the air aboard the train crackled with a palpable tension, charged by the very essence of some imposing threatening fate. Bernard, pushed to the edge, drew the ace of spades marked with a sinister streak of red. With a desperate stroke of fortune, he played his hand, overcoming Lue at the very last moment. “Well played,” Lue conceded, his expression darkening ominously as dawn broke the night’s hold. “I’m going to walk a bit if you don’t mind.” Lue vanished into the dimly lit space beyond the sliding doors.</p><p>As the train pulled into Oban station, Bernard’s mind raced and spat out a faint ember, recalling an article he’d read about a gruesome incident on a similar route years ago a triple death where the victims were found around a table littered with cards, their faces frozen in terror. The memory chilled him to the bone, adding a spectral layer to the already eerie journey.</p><p>Stepping onto the platform, Bernard felt a cold wave of isolation. A guard passed him and some others from different carriages to lock the carriage he had just vacated. Bernard turned back to the guard and mentioned, “There’s another passenger you need to check on,” he said, his voice earnest.</p><p>The guard confused looked at him, confusion, and a hint of concern in his eyes. “Sir, you were the only passenger in that carriage for this run after Crianlarich.”</p><p>Bernard’s blood ran cold. As he walked away from the station, the echo of the guard’s words mingled with the storm’s howl, leaving him to wonder about the true stakes of the game he had so narrowly survived.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e44d824f737f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s talk about LESP issues in People Analytics…]]></title>
            <link>https://medium.com/@mahinsasa903/lets-talk-about-lesp-issues-in-people-analytics-c1e4e28520f0?source=rss-fc64dfbc65c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1e4e28520f0</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[people-analytics]]></category>
            <category><![CDATA[human-resources]]></category>
            <category><![CDATA[people-management]]></category>
            <dc:creator><![CDATA[Chathura Perera]]></dc:creator>
            <pubDate>Wed, 17 Aug 2022 23:31:19 GMT</pubDate>
            <atom:updated>2022-08-25T10:34:18.211Z</atom:updated>
            <content:encoded><![CDATA[<h3>People Analytics Part 07</h3><p>Welcome to the seventh and final part in our journey to people analytics. In this post I will cover the Legal , Ethical , Social and Professional ( LESP ) issues you may face when acting as a people analyst.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gh2ToQEugzof9-qA" /></figure><p>In people analytics for us to get “actionable insights,” we need to apply digital tools and algorithms to data about or relating to people. These insights can help companies boost their people management procedures and operations.</p><p><strong>Companies deploy people analytics with three main goals in mind…</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*HYVFxih-WDIoprh3-FfkLA.png" /><figcaption>Adapted from the analysis of <a href="https://www.freshfields.com/en-gb/">Freshfields Bruckhaus Deringer</a></figcaption></figure><p><strong>01) Legal Considerations</strong></p><p>People analytics are crucial to managing people in the modern business world. However, there are legal dangers connected to its use. Businesses should consider these pain-points before deploying any People Analytics exercises within a company. An employer must be able to support the processing of employee data using one of the listed legal grounds before using a People Analytics application (Article 6 GDPR).</p><p>“<em>In many situations employers will not be able to rely on the consent of their employees or job applicants to data processing. Consent must be ‘freely given’ and it may be challenged whether employees can give their consent freely, given the imbalance of power between employer and employee (</em><strong><em>Guidelines on Consent adopted by the Article 29 Working Party in April 2018</em></strong><em>).</em>”</p><p>By making the data anonymous, these problems might be avoided because the above mentioned GDPR standards wouldn’t be necessary. This won’t be an option, though, for People Analytics initiatives whose goal is to make decisions that will have an impact on specific people.( Eg: Employee Attrition Prediction, CV selection for hiring etc.)</p><p>To overcome this the research team at <a href="https://www.freshfields.com/en-gb/our-thinking/knowledge/briefing/2018/05/people-analytics-the-opportunities-and-legal-risks-of-a-brave-new-world-3771/"><strong><em>Freshfields Bruckhaus Deringer LLP</em></strong></a> give the following steps before proceeding into any people analytics activity.</p><p>I welcome you to read their full synthesis and guarantee that you will learn lot about the legal aspects of people analytics by doing so.</p><p>Coming back to our point the guidance given by the team are two-fold.</p><ol><li>Managers must be adequately trained and equipped to understand the insights produced by People Analytics tools.</li><li>Just as crucial as having the appropriate software in place is creating the ideal support system for managers.</li></ol><p>These steps and deep understanding of the people analytics domain are the best tools to mitigate any legal concern that might arise within a people analytics exercise.</p><p><strong>02 Ethical Considerations</strong></p><p>As the previous <a href="https://medium.com/@mahinsasa903/lets-learn-of-model-bias-in-people-data-6a6dadc108b4"><strong>post</strong></a> elaborated the key here is conducting adequate research and justifying the analytical task about to be conducted, Making sure data science teams are diverse to protect against any bias, Mapping out and openly discussing risk before deployment are the steps that must be taken to avoid any Ethical of Social issues in people analytics Projects.</p><p><strong>03 Social Considerations</strong></p><p>In general all data analysts have a duty to contribute positively to the society. Always take into account the social effects of the system you are developing , The models and solutions you are building or the programmes you are writing will have a substantial impact on people lives. So as people analysts it is very important always we must learn to “<strong><em>Consider the implications before the Action</em></strong>”. It’s important to always look at the potential <strong><em>impact to all stakeholders</em></strong> before implementing any people analytics project communication and negotiation are key skills for a people analyst.</p><p><strong>04 Professional Considerations</strong></p><p>As a rule for any computing professional its important to consider the codes that the professionals in your location adhere to. I highly encourage you to go over the <a href="https://www.bcs.org/membership-and-registrations/become-a-member/bcs-code-of-conduct/"><strong><em>Code of conduct</em></strong></a> set out by the British Computing Society which will give direction to any people analytics activity that you might be planning.</p><p>Among other matters it highlights the importance of acting in the peoples interest , How and why you must push yourself to be professionally competent. It also highlights the importance of always acting with integrity. How to liaise with public authorities, and last but not least maintaining the duty to the profession.</p><p><strong>Closing words and next Steps ….</strong></p><p>This may sound like a boring <a href="https://www.yourdictionary.com/harang">harang</a> that has no coding or analytics fun bits. However this is nevertheless important especially for a people analysts since working with people data has a high chance of evolving into paths where LESP issues may arise.</p><p>As a next step I suggest reading the <a href="https://www.bcs.org/membership-and-registrations/become-a-member/bcs-code-of-conduct/"><strong><em>Code of conduct</em></strong></a> set out by the British Computing Society this will give you a lot of knowledge about how to act professionally.</p><p>Another step you can take is to try out the “<a href="https://www.kaggle.com/learn/intro-to-ai-ethics"><strong><em>Intro to AI Ethics</em></strong></a>” course offered kaggle.com this will give you five modules to follow that will widen your understanding about the Ethical aspects in general when comes to data science and artificial intelligence.</p><p>This closes the small foray we made in to people analytics. As usual please post comment and any constructive feedback. I wish you all the very best in your people analytics journey. Goodbye for now <a href="https://emojipedia.org/emoji/%F0%9F%91%8B/">👋👋👋</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ygz5y_QPzd4KcNxr" /></figure><h4>Sources</h4><ol><li><a href="https://www.freshfields.com/en-gb/our-thinking/knowledge/briefing/2018/05/people-analytics-the-opportunities-and-legal-risks-of-a-brave-new-world-3771/">https://www.freshfields.com/en-gb/our-thinking/knowledge/briefing/2018/05/people-analytics-the-opportunities-and-legal-risks-of-a-brave-new-world-3771/</a></li><li><a href="https://www.bcs.org/membership-and-registrations/become-a-member/bcs-code-of-conduct/">https://www.bcs.org/membership-and-registrations/become-a-member/bcs-code-of-conduct/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1e4e28520f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s learn of Model Bias in People Data ….]]></title>
            <link>https://medium.com/@mahinsasa903/lets-learn-of-model-bias-in-people-data-6a6dadc108b4?source=rss-fc64dfbc65c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a6dadc108b4</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[human-resources]]></category>
            <category><![CDATA[people-analytics]]></category>
            <category><![CDATA[hr-analytics-course]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Chathura Perera]]></dc:creator>
            <pubDate>Wed, 17 Aug 2022 01:04:13 GMT</pubDate>
            <atom:updated>2022-08-25T10:33:47.177Z</atom:updated>
            <content:encoded><![CDATA[<h3>People Analytics Part 06</h3><h3>Let’s learn about Model Bias in People Data ….</h3><p>Welcome to the sixth post of the series. Here we will discuss the importance of recognizing and dealing with model bias. The key question is How can we be confident that our algorithms don’t contain any explicit or hidden biases like racism, sexism, or other types of prejudice?</p><p>In todays world, which job candidates are recruited, which mortgage applicants are offered a loan, and which inmates are freed on parole are just a few examples of the life-altering decisions being made using machine learning algorithms. Such choices have an impact on human rights, frequently affecting the society’s most helpless citizens.</p><p>Machine learning systems that are well-designed and operated can aid in removing the type of human bias in decision-making that society has been striving to eradicate. Machine learning algorithms might, however, also serve to legitimise existing inequality and bias and prevent the protection of dignity. For instance, historical employment statistics may indicate that women receive less promotions than males. If a machine learning system developed using this data comes to the conclusion that hiring women is less successful, prejudice will continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*fuaecuzVWCclLi-Sf5E9oA.png" /><figcaption>if a machine learning algorithm learned this pattern as acceptable it can have a very negative impact.</figcaption></figure><p>There are certain issues with the data that machine learning algorithms use. The cost of acquiring the enormous datasets required to train these algorithms prevents many businesses, government agencies, and other non-profit organisation&#39;s from participating in the machine learning industry due to cost constrains . People from rural parts of low-income nations, or those who have chosen not to share their data may be left out of training data. This can make the data become inaccurate or skewed.</p><p>Machine learning algorithms may encode prejudice in different ways even if they are trained on acceptable data sets: selecting the incorrect model (or incorrect data); unintentionally creating a model with discriminating elements; lack of human supervision; and human participation, erratic and complex systems, or purposeful and unrestrained prejudice by the people who build them.</p><p>There are already examples of systems that disproportionately identify people of color as being at “higher risk” for committing a crime (<a href="https://www.toptal.com/artificial-intelligence/mitigating-ai-bias"><strong><em>COMPAS</em></strong></a>), or systematically exclude female applicants from positions.(<a href="https://www.reuters.com/article/us-amazon-com-jobs-automation-insight-idUSKCN1MK08G"><strong><em>Amazon</em></strong></a>) Risks are especially high in low- and middle-income countries, where existing inequalities are often deeper, training data are less available, and government regulation and oversight are weaker.</p><p>All businesses should uphold human rights in accordance with international law. The need to respect human rights “exists over and above conformity with national laws and regulations safeguarding human rights,” as stated in the UN Guiding Principles on Business and Human Rights. In other words, even in the absence of legislation addressing machine learning, human rights duties and principles still hold true.</p><p>As such we as people analysts need to be diligent and above all proactive with biased model issues due these facts. The implications usually race ahead of any laws or law makers.</p><p>Training machine learning systems on incomplete, biased, or error-filled data will produce biased models and discriminating results, according to the adage “<strong><em>garbage in, garbage out</em></strong>” in computing. For instance, historical employment data frequently reveals that women are promoted at a lower rate than males, not because women perform their jobs less well, but rather because employers have traditionally been prejudiced. If ML systems that have been trained to think of women as less likely to get hired than males would continue to favors men and provide biased baseline data causing the discrimination to go forward into the future.</p><h4>01 Choosing the incorrect model</h4><p>Algorithms that work in one situation may not work in a another situation as intended. So its really important to do a through a research and have good domain understanding before model selection.</p><h4>02 Building a model with inadvertently discriminatory features</h4><p>Like Amazon and the COMPAS incident how models learn need to be supervised to check whether the model is learning something that it should not.</p><h4>03 Absence of human oversight and involvement</h4><p>It is important to have a human in the loop to oversee the process since that may be a key step in avoiding any bias in the loop. It takes a person to spot areas where crucial elements are unintentionally being ignored. The University of Pittsburgh Medical Center, for instance, employed ML to identify which pneumonia patients were likely to experience few problems and could be sent home. Since only few asthmatics experienced difficulties, the ML model advised that doctors send them home. Doctors knew this was only because they frequently sent such patients to intensive care as a precaution. It is hard to predict in advance when discrimination or any other bias may occur in any particular setting, thus it is important to keep humans involved and make systems interpretable.</p><h4>04 Unpredictable and inscrutable systems</h4><p>This openness is lacking in some ML systems, traceability, too. This may not always matter because we do not necessarily need to comprehend how Google Maps’ ML works for instance determines our recommended path. But when it comes to rights, it’s crucial: for instance, when an The ML systems makes parole judgments, recognising the ability to identify potential discrimination hinges on comprehending the procedures the model follows in making these judgments. Therefore human resources, criminal justice, public housing, welfare, and healthcare are a few instances that inappropriate uses for “black box” ML systems may cause problems.</p><h4>05 Unchecked and intentional discrimination</h4><p>Some people may consciously incorporated bias into algorithms. For instance, businesses may use ML systems to recognise and weed out the subgroup of women who are most likely to become pregnant before hiring them. The responsibility for developing ML systems in a way that anticipates, prevents, and monitors bias falls on the firm leadership, designers, data scientists, engineers, and other people involved in their creation in the lack of sufficient legislation. In the case you the people analyst.</p><h4>06 Solutions</h4><p>After discussing these issues we as people analysts need to find some solutions fortunately, the <strong><em>world economic forum</em></strong> who’s research this article is based on gives some very practical solutions.</p><p>6.1 Organize research.</p><p>6.2 Increase Diversity in ML development Teams.</p><p>6.3 Monitor ML models use across different context and communities.</p><p>6.4 Map out risks prior to deployment.</p><p>6.5 Include dynamic testing.</p><p>6.6 Let stakeholder and domain experts participate.</p><p>6.7 Give AI &amp; ML practitioners some Ethics and Human Rights training.</p><p>6.8 Calibrate models to include fairness criteria.</p><p>6.9 Include dynamic testing of models to check against any unwanted learning.</p><p>6.10 Promote transparency in ML project and create a culture of openness.</p><p>6.11 Restrict the development in case of major conflict with human rights.</p><p>Thank you for going through this important article covering Machine learning Bias. As usual please comment any suggestions below bye for now. 👋👋👋</p><p><strong><em>Sources</em></strong></p><p>01) Unicef.org. 2022. <em>How to Prevent Discriminatory Outcomes in Machine Learning</em>. [online] Available at: &lt;https://www.unicef.org/innovation/reports/how-prevent-discriminatory-outcomes-machine-learning&gt; [Accessed 17 August 2022].</p><p>02) <a href="https://www.reuters.com/article/us-amazon-com-jobs-automation-insight-idUSKCN1MK08G">https://www.reuters.com/article/us-amazon-com-jobs-automation-insight-idUSKCN1MK08G</a></p><p>03) <a href="https://www.toptal.com/artificial-intelligence/mitigating-ai-bias">https://www.toptal.com/artificial-intelligence/mitigating-ai-bias</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a6dadc108b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[People Analytics Part 04]]></title>
            <link>https://medium.com/@mahinsasa903/lets-combine-powerbi-and-r-for-people-data-f45d4bc96720?source=rss-fc64dfbc65c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f45d4bc96720</guid>
            <category><![CDATA[human-resources]]></category>
            <category><![CDATA[people-analytics]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Chathura Perera]]></dc:creator>
            <pubDate>Sun, 14 Aug 2022 12:03:34 GMT</pubDate>
            <atom:updated>2022-08-25T10:31:40.070Z</atom:updated>
            <content:encoded><![CDATA[<h3>Let’s combine PowerBi and R for People Data….</h3><p>Welcome to part 4 of the seven part series. If you are new to my posts please check out the previous ones <a href="https://medium.com/@mahinsasa903"><strong><em>here</em></strong></a>. In this post we will look at how to implement a trained machine learning model within PowerBi this step is crucial since without implementation any machine learning models not useful to anybody. Machine learning Models need to be operationalized to become a success. The PowerBi platform provides a rich array for tools and methods to operationalize the models you have built using a language such as (<strong><em>R , Python or C++</em></strong>).</p><p>So Let’s imagine yourself in the office again this time your team is delighted that the Attrition model works and now they want you to implement it within the PowerBi ecosystem.</p><h4>01 Let’s review the model code</h4><p>You go to your RMarkdown file and grab the final model validation code.</p><pre>library(dplyr) #for data wrangling <br>library(ggplot2) #for visualization <br>library(caret) #for machine learning</pre><pre>path &lt;- r&quot;(<strong>path to your file</strong>)&quot; #the data you got from the link above <br>hr &lt;- read.csv(path, stringsAsFactors = T, header=T)<br>hr &lt;- as_tibble(hr)</pre><pre>hr$model_weights &lt;- ifelse(hr$Attrition == &quot;Yes&quot;,<br>                        table(hr$Attrition)[1]/nrow(hr),<br>                        table(hr$Attrition)[2]/nrow(hr))</pre><pre>hr &lt;- hr %&gt;% select(-c( &quot;EmployeeCount&quot;,  &quot;EmployeeNumber&quot;,&quot;Over18&quot; , &quot;StandardHours&quot;))<br>set.seed(123)<br>index &lt;- sample(2, nrow(hr), replace = TRUE, prob = c(0.7, 0.3))<br>train &lt;- hr[index==1,]<br>test &lt;- hr[index==2,]</pre><pre>trainup &lt;- <br>train %&gt;% <br>upSample( train$Attrition) %&gt;% <br>select(-c(&quot;Attrition&quot;)) %&gt;% <br>rename(Attrition=Class)</pre><pre>control = trainControl(method = &quot;repeatedcv&quot;, number=10,repeats = 5)</pre><pre>xgbGrid01 &lt;- expand.grid(nrounds = c(20,40,60,80),<br>                       max_depth = c(10,15,20,25),<br>                       eta = c(0.1,0.2,0.4),<br>                       gamma = 0,<br>                       colsample_bytree = 0.7,<br>                       min_child_weight = 1,<br>                       subsample = c(0.6,0.8,1))</pre><pre>set.seed(123)<br>xGB.modelenhanced &lt;- <br>train(Attrition ~ ., <br>data=trainup,   <br>metric = &quot;Accuracy&quot;,<br>method=&quot;xgbTree&quot;,<br>verbosity = 0,<br>weights = model_weights , #adding model weights <br>preProcess=c(&quot;center&quot;,&quot;scale&quot;),<br>trControl = control, #cross validation <br>tuneGrid = xgbGrid01) # hyperparameter tuning</pre><p>you save this model onto an “<strong>RDS</strong>” format. Note when implementing we are not using the evaluation lines of code since we have completed that phase earlier in <a href="https://medium.com/@mahinsasa903/lets-machine-learn-with-people-data-b473b8150142"><strong><em>post 03</em></strong></a>.</p><pre>path &lt;- r&quot;(path to your file)&quot;<br>saveRDS(xGB.modelenhanced,path)</pre><h4>02 Let’s setup the model in PowerBi</h4><p>Then you move to PowerBi and type in the SQL code to connect to the main database that contain the full employee data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2RK02TkV8Je6HZsdCuTQeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0mSp95gauX14L0ewpDY7sQ.png" /></figure><p><strong><em>Note that the columns in the PowerBi dataset must have the columns the model uses to predict. Otherwise the model we saved in the earlier steps will not have all the information needed to predict the class</em></strong> ( Attrition in this case).</p><p>Once the data is loaded in the query editor window. Move to the right and click on Run R script in the transform tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jp2I--22a5uOWtZVaC2hSg.png" /></figure><p>Then you type in this code to setup the model.</p><pre><strong># &#39;dataset&#39; holds the input data for this script</strong></pre><pre>library(caret) #for machine learning</pre><pre>dataset$model_weights &lt;- ifelse(dataset$Attrition == &quot;Yes&quot;,<br>                        table(dataset$Attrition)[1]/nrow(dataset),<br>                        table(dataset$Attrition)[2]/nrow(dataset))</pre><pre>Modelfit = readRDS(&quot;<strong>path to your model</strong>&quot;)</pre><pre>prediction = predict(Modelfit, dataset)</pre><pre><strong>dataset$model &lt;- prediction </strong></pre><pre><br><strong>output&lt;- dataset</strong></pre><p>There are a few things to note here. Within PowerBi the data that flows into this step is know as <strong>“<em>dataset</em></strong>” and the data that flows out of this step is know as <strong>“output</strong>”.</p><p>Lets understand what&#39;s happening here the “<strong><em>dataset</em></strong>” data frame is automatically inherited from PowerBi. Since the model weights are not initially available we need to set them for this data frame.</p><p>Next we read in the model saved from our R console via the “<strong>readRDS</strong>” function. Then we use it to predict on the new data. The predictions are assigned to the dataset model column.</p><p>Then this data frame flows out as the output from the code. This output now contains an extra column called model that carries the labels predicted from the model. Viola!! now you have implemented the trained model within PowerBi. <a href="https://emojipedia.org/Happy/">😄😄😄</a></p><h4>03 Visualise in PowerBi using R</h4><p>Another question what if you need to visualize something in PowerBi and its a custom visual in not available in PowerBi natively lets say a boxplot with geom_jitter like we did in post one.</p><p>No fear PowerBi can give that functionality.</p><p>If you load the dataset and click on the below icon you can see a console open up within PowerBi that can give you the details needed to perform the work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KKeSso9aOXVhs2veQzLDrw.png" /></figure><p>When you look at the prompt you can see the below wording to make it easy for you to understand I put the code you have to type in bold.</p><pre># The following code to create a dataframe and remove duplicated rows is always executed and acts as a preamble for your script:</pre><pre># dataset &lt;- data.frame(Department, Attrition, EmployeeCount, ï..Age)</pre><pre># dataset &lt;- unique(dataset)</pre><pre><strong>library(ggplot2)</strong></pre><pre># Paste or type your script code here:</pre><pre><strong>ggplot(dataset, aes(MonthlyRate,y=Attrition))+</strong></pre><pre><strong>geom_boxplot(alpha = 0.1,aes(color=Attrition))+</strong></pre><pre><strong>geom_jitter(size = 1.5,alpha=0.4,aes(color=Attrition))+</strong></pre><pre><strong>ggtitle(&quot;Is MonthlyRate related to attrition&quot;)+</strong></pre><pre><strong>theme(plot.title = element_text(face=&quot;bold&quot;,hjust = 0.5))</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fctZ0-IZwBoDOS9Q.png" /></figure><p>Wow that gives us same visual but this time within PowerBi.</p><p><strong>04 Points to note</strong></p><p>ggplot2 visuals are great to have within PowerBi but there are something&#39;s to keep in mind these visuals are not interactive as normal PowerBi visuals.</p><p>Another thing to note is tooltips and other drill downs functionalities will not be active within these visuals this is a down side but if you are pressed for time and want to present in a tight deadline this feature may be just the thing you need right now.</p><p>Let’s hope Microsoft builds on this functionality and keeps on improving it.</p><p><strong>05 R Scripts as a data source to PowerBi</strong></p><p>This is another neat feature that PowerBi has, lets say you have a couple of spreadsheets that are spread out in several office locations and you want to combine them all and finally visualize the Outcome in PowerBi.</p><p>No problem you can turn a data-frame generated via a R script directly into PowerBi.</p><p>Simple use the below option to open a console where you can type in your script. <a href="https://emojipedia.org/thumbs-up/">👍</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/0*K3p5Av5IZocb-nCY.png" /></figure><p>Well this is the end of a another article.</p><p>As always please leave any comments and suggestions below. Bye for now.</p><p>👋👋👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f45d4bc96720" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[People Analytics Part 05]]></title>
            <link>https://medium.com/@mahinsasa903/lets-analyse-people-survey-data-562ca6154e83?source=rss-fc64dfbc65c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/562ca6154e83</guid>
            <category><![CDATA[human-resources]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[data-visualisation]]></category>
            <category><![CDATA[people-analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Chathura Perera]]></dc:creator>
            <pubDate>Sat, 13 Aug 2022 23:04:22 GMT</pubDate>
            <atom:updated>2022-08-25T10:32:20.271Z</atom:updated>
            <content:encoded><![CDATA[<h3>Let’s Analyse People Survey Data…</h3><p>Welcome to the 5th post of the series in this post let’s look at what survey data is and what we can do with them. If you are new to my posts check out the previous posts <a href="https://medium.com/me/stories/drafts"><strong>here</strong></a>.</p><p>This time we are going to look at a another common situation you may find yourself in your role as a people analyst. Learning from and communicating to others about what survey data tells you.</p><p>In my experience as a people analyst I have come across a many many MANY surveys and have seen many analysis about them with different interpretations. Some were very insightful others not so much.</p><p>Through experience when dealing with surveys its best to start of with an end goal in mind. You need to be focused on what you want to achieve from the survey then draw the data to see what the respondents are actually saying.</p><p>Depending on the type of survey the exact way you will look at the data might be different. Let’s get coding and I’ll tell you some more…</p><p>Another day in the office and you find yourself in a meeting with your people director and manager. The three of you are discussing about a new survey you have launched within the company.</p><p>After a week of responses now the data is ready to be analysed . Before we start let’s take a peek at the data. We are adding a new package to our tool box “<strong><em>openxlsx</em></strong>” this will make handling excel data a breeze from inside “R” <a href="https://emojipedia.org/winking-face/">😉</a>.</p><pre>library(dplyr)<br>library(ggplot2)<br>library(openxlsx) <strong>#you may have to install this from scratch</strong><br>library(tidyr)</pre><pre><strong>#reading in the data </strong></pre><pre>setwd(&quot;path where the data file is located &quot;)</pre><pre><strong>survey</strong>&lt;- <strong>readWorkbook(<br>  &quot;survey.xlsx&quot;,<br>  sheet = 1, #specify the sheet you want to read from <br>  startRow = 1,#specify row you want to read from<br>  colNames = TRUE, <br>  rowNames = FALSE,<br>  detectDates = TRUE)</strong></pre><pre>survey&lt;- as_tibble(survey)</pre><pre>glimpse(survey)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*06UTugCJ7FeOhtiLj-5nFA.png" /></figure><p>All set (btw in reality surveys will have a lot more questions) 😊.</p><p>You notice something odd 😒 hey some of the factors ( text columns with levels eg: Very Satisfied ,Satisfied …. ) have not been converted into the factor data type. No matter let’s fix it.</p><pre>survey &lt;- <br>survey %&gt;% <br>mutate_if(sapply(survey,is.character), as.factor)</pre><p>you type in the above line and all character (free text columns get converted into factors)</p><p>Let’s break this down and understand what this means.</p><p>“<strong><em>sapply</em></strong>” is used to apply a function over a column in this case turn every element of the column into a factor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*z0vx53AvaJ0cF_VHcFksOg.png" /><figcaption>Adapted from ASA CSP conference slides by Hadley Wickham</figcaption></figure><p><strong><em>“mutate_if”</em></strong> is similar to mutate <strong>but only works if the condition in this case (<em>being a text column) is fulfilled </em></strong><em>so here it ignores other columns whos data type is not character</em><strong><em>.</em></strong></p><p>Now you check the structure of the dataset and find its all been fixed. yippie! 😃</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b_mA0p7s_d0N3ZDuHSvq2g.png" /></figure><h4>01 Basic counts</h4><p>You decide to freshen up your dplyr chops and bust out a quick summary. You decide to calculate the percentage of respondents by department.</p><pre>survey %&gt;% <br>group_by(Department) %&gt;%<br>summarise(responces_count=n()) %&gt;% mutate(proportion=round(responces_count/sum(responces_count)*100,<br>digits = 1))%&gt;%<br>arrange(desc(responces_count))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*eYFN_f9wQK_jMdXSOsmx5g.png" /></figure><p>You show this preliminary result to your manger and she agrees that the proportions looks reasonable. She then adds “Can you get the proportion of respondents by the total number of people in the company ?”</p><p>You quickly login to the main HR database type in some SQL and get the number of total people by department. Wrangling data in SQL is something you should be proficient in if you are a people analyst however this is beyond scope of this initial article set. I might cover this in a future series. For now lets assume that you got the departmental headcounts via SQL into a R data-frame as below here we will just manually code in the data frame.</p><pre>Staff_by_Dept &lt;- <br>data.frame (</pre><pre><br>Department  = c(&quot;Sales&quot;, &quot;IT&quot;,&quot;Maintenance&quot;,&quot;Finance&quot;,&quot;Engineering&quot; ,&quot;Production&quot;,&quot;Quality Assurance&quot;, &quot;Human Resources&quot;, &quot;Marketing&quot;, &quot;Research &amp; Development&quot;,&quot;Logistics&quot;)</pre><pre><br>, <br>Total_Staff=c(300, 250, 250, 170, 130 ,130, 150, 100,100,100,50)</pre><pre>)</pre><p>Then using what you learned in <a href="https://medium.com/@mahinsasa903/lets-wrangle-some-people-data-b117cd062139"><strong><em>post two </em></strong></a>you punch in the below code. To get the pictured output.</p><pre>Staff_by_Dept %&gt;%<br>left_join(  a , by=c(&quot;Department&quot;)) %&gt;% <br>mutate(participation=round(count/Total_Staff*100,digits=1))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egQvwYxRgdsiew82AnpZRw.png" /></figure><p>You hand in this data and say it seems in the majority of departments over ~70% or more have responded to the survey. Your manager is delighted then asks you to hand in a full analysis of the survey responses.</p><p><strong>01 Visualizing survey responses</strong></p><p>In most cases survey responses can be visualized as bar counts. Let’s take the question what level of cooperation you get from colleagues and visualize that first.</p><pre>survey$`What.level.of.cooperation.do.you.get.from.collegues` = factor(survey$`What.level.of.cooperation.do.you.get.from.collegues`, levels = c(&#39;More cooperation&#39;,&#39;No change&#39;,&#39;Less cooperation&#39;))</pre><pre><br>ggplot(survey) +</pre><pre><br>geom_bar(aes(x = `What.level.of.cooperation.do.you.get.from.collegues`, fill = `What.level.of.cooperation.do.you.get.from.collegues`))+</pre><pre>scale_fill_manual(&#39;Values&#39;, values=c(&quot;#8ecae6&quot;, &#39;#83c5be&#39;,&#39;#d62828&#39;))</pre><p>you get an initial view as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*AT7fI9525Z0kdEIGw0fCjw.png" /></figure><p>But you begin to think if it’ll be more useful if I can see the breakdown by department. In ggplot2 language this is called “<strong>faceting</strong> ” we simply add the “<strong><em>facet_wrap(~ Department)</em></strong>” argument to the plot in addition you decide to flip the plot so they are horizontal bars to make all the mini bar plots readable easily.</p><pre>```{r, echo=FALSE}</pre><pre><strong>#Ordering the levels of the factor <br> </strong><br>survey$`What.level.of.cooperation.do.you.get.from.collegues` = factor(survey$`What.level.of.cooperation.do.you.get.from.collegues`, levels = c(&#39;More cooperation&#39;,&#39;No change&#39;,&#39;Less cooperation&#39;))</pre><pre><strong>#Faceted horizontal bar chart </strong><br>ggplot(survey) +<br>geom_bar(aes(x = `What.level.of.cooperation.do.you.get.from.collegues`, fill = `What.level.of.cooperation.do.you.get.from.collegues`))+</pre><pre>scale_fill_manual(&#39;Values&#39;, values=c(&quot;#8ecae6&quot;, &#39;#83c5be&#39;,&#39;#d62828&#39;))+<br></pre><pre><br>coord_flip()+<br><strong>facet_wrap(~ Department)+ #faceting </strong></pre><pre><strong>#Some more code to tidy up the plot a bit </strong><br>theme(legend.position = &quot;none&quot;,plot.title = element_text(hjust = 0.5))</pre><pre>+ylab(&quot;&quot;)</pre><pre>+xlab(&quot;&quot;)</pre><pre>+ggtitle(&quot;Level of Coorperation&quot;)</pre><pre>```</pre><p>I highly recommend to go over this code line by line and inspect if there are any areas you go not understand on the first run. <a href="https://ggplot2.tidyverse.org/index.html"><strong><em>The official ggplot2 documentation</em></strong></a> is a treasure trove of information when comes to producing graphs. You may want to have a read when you are free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*qVyDWOw5RsmF3fRaYXY-3w.png" /></figure><p>going by this same blueprint you quickly visualize the other Questions as well… I’ll leave this bit for you try and visualize the other question responses in the same way.</p><p>A note : When adding colour to graph always make sure you pay attention to create colour blind friendly visualizations. This website <a href="https://coolors.co/palettes/trending"><strong><em>https://coolors.co</em></strong></a><strong><em> </em></strong>is a great place to start.</p><h4><strong>02 Net promoter score calculation</strong></h4><p>Originally developed for measuring customer loyalty and satisfaction measurement, Net Promoter Score (NPS) is calculated by asking customers how likely they are to recommend your product or service to others on a scale of 0–10 (The scale could compose of any no of steps number 10 is arbitrary).</p><p>This is useful in a people survey situation since it gives an indication of the employees sentiment(What employees are generally thinking). Are they positively Skewed or are they unhappy in regard to a particular topic and negatively skewed.</p><p>We simply calculate the score by deducting the <strong>promoters </strong>by the <strong>detractors</strong> as per the below picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q_uPzFK4_wbvgqMC" /></figure><p>Hey this is a great idea lets calculate the NPS ( Net promoter score) for each question and understand how everyone is feeling.</p><p>Let’s code….</p><pre>cooperation_overall &lt;- </pre><pre>survey %&gt;% </pre><pre>group_by(`What.level.of.cooperation.do.you.get.from.collegues`) %&gt;% </pre><pre>summarise(count=n()) %&gt;% </pre><pre>mutate(percentage=round(count/sum(count),digits=1)) %&gt;% </pre><pre>filter(`What.level.of.cooperation.do.you.get.from.collegues`!=&quot;No change&quot;) %&gt;%</pre><pre>summarise(range= max(percentage)) %&gt;% mutate(type=&quot;Cooreperation&quot;)</pre><p>You find out for the cooperation question the NPS is at +30%. Not stopping here you quickly calculate the NPS for other criteria as well.</p><pre>LOC_with_manager_overall &lt;- survey %&gt;% </pre><pre>group_by(`Are.you.atisfied.with.the.communication.and.interaction.with.your.Supervisor/Line.Manager?`)%&gt;%  </pre><pre>summarise(count=n()) %&gt;% </pre><pre>mutate(percentage=round(count/sum(count),digits=1))%&gt;% </pre><pre><br>mutate( NPS_SCORE= <br>            case_when(<br>              <br>              str_detect(`Are.you.atisfied.with.the.communication.and.interaction.with.your.Supervisor/Line.Manager?`,&quot;dissatisfied&quot;)~ -1*percentage, <br>              <br>              str_detect(`Are.you.atisfied.with.the.communication.and.interaction.with.your.Supervisor/Line.Manager?`,&quot;satisfied&quot;)~ percentage,<br>              <br>              TRUE ~ 0)) %&gt;% </pre><pre><br>summarise(NPS_SCORE=sum(NPS_SCORE))</pre><p>For interaction with the manager the result is +60% which is again a good score.</p><p>Motivated by your success you decide to churn out the NPS for the other questions as well.</p><pre>wellbeing_overall &lt;- survey %&gt;% </pre><pre>group_by(`How.confident.are.you.about.your.overall.wellbeing`) %&gt;%  </pre><pre>summarise(count=n()) %&gt;% </pre><pre>mutate(percentage=round(count/sum(count),digits=1)) %&gt;% </pre><pre><br>mutate( NPS_SCORE= <br>            case_when(<br>              <br>              str_detect(`How.confident.are.you.about.your.overall.wellbeing`,&quot;oubtful&quot;)~ -1*percentage, <br>              <br>              str_detect(`How.confident.are.you.about.your.overall.wellbeing`,&quot;onfident&quot;)~ percentage,<br>              <br>              TRUE ~ 0)) %&gt;% </pre><pre><br>summarise(NPS_SCORE=sum(NPS_SCORE))</pre><p>You find out that for wellbeing the NPS is 50% this is also looking positive.</p><p>You calculate the NPS scores and hand in to the manager who is delighted.</p><h4>03 Clustering respondents based on similarity of their answers.</h4><p>Today, we will explore a different category of Machine Learning, the Unsupervised learning algorithms. As the name suggest, we don’t have the benefit of knowing the correct answer (target variable) upfront like we did in post 03 (Remember Attrition)</p><p>Our goal is to group the employees based on the similarity of their answers on the survey. Notice that we don’t know how many clusters (groups) of employees there will be.</p><pre>binaryVars &lt;- dummyVars(~., data=survey)<br>survey_clust &lt;- predict(binaryVars , newdata= survey)</pre><p>This code will turn the categorical data the survey data-frame into “1”’s and “0”’s. This is needed for clustering to happen since we are going to use a method called “<strong><em>Gower Distance</em></strong>” which will essentially calculate the distance between each data point.</p><p>You quickly do three things within the code you calculate the gower matrix then apply the clustering algorithm in the next line then once the clusters are created you map them back to the original dataset in the third line.</p><pre><strong>#Creating the gower matrix </strong><br>gow.mat &lt;- vegdist(survey_clust, method=&quot;gower&quot;)</pre><pre><strong>#clustering exercise</strong> <br>clusters &lt;- pam(x = gow.mat, <strong>k = 3</strong>, diss = TRUE)</pre><pre><strong>#mapping the cluster data into the original dataset </strong><br>survey$cluster &lt;- clusters$clustering</pre><p>A little note here I have K = 3 in this example however in reality you may have to draw a silhouette plot to decide the optimum number of clusters. I will cover them in a later post for now lets just focus on the basics.</p><p>To see how well the clusters have formed and other information you can use this line. Note that there is room for improvement in this clustering scenario.</p><pre>clusters$clusinfo</pre><p>You then try to explain how the clusters have separated based on some plots.</p><pre>ggplot(survey,aes( </pre><pre>x=`What.level.of.cooperation.do.you.get.from.collegues`, </pre><pre>y=`How.confident.are.you.about.your.overall.wellbeing`))+</pre><pre>geom_jitter(aes(color=cluster))+facet_wrap(vars(cluster))+</pre><pre>scale_x_discrete(guide = guide_axis(n.dodge=3))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*-F9xI6lMuSgZ0XQGbrlVQg.png" /></figure><p>There are some insights that you can grasp from this plot majority of the people who answered Neutral or Doubtful for Overall wellbeing question answered No change for level of cooperation they are mostly in Cluster 1. Majority of Cluster 2 answered very confident to well being and More cooperation to the colleague cooperation questions. Cluster 3 seems to gotten those who answered confident or neutral for well being and More cooperation or no change for cooperation question.</p><pre>ggplot(survey,aes( x=`Do.you.feel.included.in.the.workplace`, y=`Do.you.believe.you.can.voice.ideas.and.be.listened.to`))+geom_jitter(aes(color=cluster))+facet_wrap(vars(cluster))+scale_x_discrete(guide = guide_axis(n.dodge=3))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*xzupmjMxO3_CnUoFDdYxyw.png" /></figure><p>The next plot you draw also has some interesting content there are some patterns here on how the clusters have separated. Mainly people who answered yes to the being listened question,very confident to the inclusion question have landed in Cluster 2. Those who’s ideas are listened to and feel confident to the inclusion at the work place have been clustered into Cluster 3.</p><p>The most clear cut distinction is with people who feel they are not included in the ideation process and feel generally excluded in the work place they have been separated into Cluster 1.</p><p>To confirm your findings you draw yet a another plot….</p><pre>ggplot(survey,aes( x=`Are.you.atisfied.with.the.communication.and.interaction.with.your.Supervisor/Line.Manager?`, y=`Do.you.believe.you.can.voice.ideas.and.be.listened.to`))+geom_jitter(aes(color=cluster))+facet_wrap(vars(cluster))+scale_x_discrete(guide = guide_axis(n.dodge=5))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*zRy5IlhKhrg2pJSjrP8asg.png" /></figure><p>With this 3rd visual you are clear there are three segments in the respondents.</p><p>Some employees feel highly positive and are the “ <strong><em>True Promoters</em></strong>” of the company. Another class are feeling positive but not as much as the earlier group lets call them “ <strong><em>Moderate promoters</em></strong>” the final group will be the ones that need the most help from HR they are the “<strong><em>Detractors</em></strong>” they are not feeling good about working in the company. Even though we don&#39;t specifically know who they are we can use this information to organise more company interaction events , promote one on counselling to employees who need it and other interventions . Hopefully after these actions everyone will be a promoter in the next survey analysis.</p><p>Having completed your analysis you submit a report filled with your initial dplyr summaries , ggplot visuals , the NPS calculations and the clustering findings to your management who thank you for your effort Well done!! <a href="https://emojipedia.org/thumbs-up/">👍</a></p><p>As usual please add in a comment and leave any suggestion&#39;s in the comments.</p><p>Bye till the next post. <a href="https://emojipedia.org/emoji/%F0%9F%91%8B/">👋</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=562ca6154e83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[People Analytics Part 03]]></title>
            <link>https://medium.com/@mahinsasa903/lets-machine-learn-with-people-data-b473b8150142?source=rss-fc64dfbc65c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b473b8150142</guid>
            <category><![CDATA[people-analytics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[human-resources]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[hr]]></category>
            <dc:creator><![CDATA[Chathura Perera]]></dc:creator>
            <pubDate>Mon, 08 Aug 2022 12:10:20 GMT</pubDate>
            <atom:updated>2022-08-25T10:30:19.295Z</atom:updated>
            <content:encoded><![CDATA[<h3>Let’s Learn from People Data…</h3><p>Another day another post welcome to the 3rd post of the people analytics training course which up to now covered <a href="https://medium.com/@mahinsasa903/lets-draw-with-people-data-365e20f7b79"><strong>use of ggplot to visualize people data</strong></a> and then<a href="https://medium.com/p/b117cd062139#4641-95aec54943cf"><strong> how to wrangle people data with dplyr</strong></a>. Now lets get into the crux of the machine learning aspect by building a model that can predict people who might leave our company so we may help our HR manager and her team get to the root of any issues that are making people leave the organisation.</p><p>For any data science project the methodology is very important. The method we are using is called CRISP-DM. This method offers a repeatable cycle for data science project planning and management. So, CRISP-DM can be used in any Data Science project, it applies to any data science situation where a repeatable cycle of planning and management is needed.</p><p>Anyone who is about to do a data science project must first try to understand the business and then secondly the data related to the business. The third step is preparation of the data. Model building is the fourth step. Next the model needs to be evaluated (basically seeing how good is the model in the real world). Deployment is the last phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VwyZxDPvU_VivEcw.png" /><figcaption>The crisp DM methodology</figcaption></figure><p>This time imagine yourself in a meeting with your boss and colleagues discussing why people leave the company and how to stop people leaving the company. You discuss what may be driving the people away and decide to draw some snapshots to see whether your expectations are correct.</p><p>Importing the data into R will be done the same way as last time. And as a recap I am placing the first few lines of code below. As for the dataset you can grab it <a href="https://github.com/Chathura789/HR_analytics_training_course/blob/main/Data/IBM%20HR.csv"><strong>here</strong></a>.</p><pre><strong>#Setup the environment as per below </strong></pre><pre>library(dplyr) #for data wrangling <br>library(caret) #install this package if not already installed <br>library(ggplot2) #for visualization <br>library(caret) #for machine learning</pre><pre>path &lt;- r&quot;(path to your file)&quot; #the data you got from the link above <br>hr &lt;- read.csv(path, stringsAsFactors = T, header=T)<br>hr &lt;- as_tibble(hr)</pre><h4>01 EDA focusing on employee Attrition.</h4><p>Before building any models its good practice to visualize and see connections within your data. You have a hunch that the age maybe a factor and quickly draw up a plot to visualize age of the employees against attrition to see if there is any connection.</p><pre>ggplot(hr, aes(x=Age,y=Attrition))+<br>geom_boxplot(alpha = 0.1,aes(color=Attrition))+<br>geom_jitter(size = 1.5,alpha=0.12,aes(color=Attrition))+<br>ggtitle(&quot;Age by Attrition&quot;)+<br>theme(plot.title = element_text(face=&quot;bold&quot;,hjust = 0.5))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K-7-VCkHs776iLS1ECOMlw.png" /></figure><p>You notice that the median age for the employees that have left is ~33 years of age and for those who have not left have a slightly higher median age ~36.</p><p>You keep this in mind and move on..</p><p>Next you think to look at “distance to work” variable maybe there is a connection of people letting go of the company due to the distance they have to commute daily.</p><pre>ggplot(hr, aes(x=DistanceFromHome,y=Attrition))+<br>geom_boxplot(alpha = 0.1,aes(color=Attrition))+<br>geom_jitter(size = 1.5,alpha=0.4,aes(color=Attrition))+<br>ggtitle(&quot;Is commuting distance related to attrition&quot;)+<br>theme(plot.title = element_text(face=&quot;bold&quot;,hjust = 0.5))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_u2VMP9LJyeGXWjGMZwW8Q.png" /></figure><p>You notice the median distance from home to work in the “<strong>leavers</strong>” is higher that the “<strong>stayers</strong>” hey you maybe onto something here. Nice one #Hi5 <a href="https://stayhipp.com/glossary/%F0%9F%99%8F-high-five-or-prayer-hands-emoji-%F0%9F%99%8F/">🙏</a> !!!</p><p>Then you pause and and think “<strong>can over time utilization be linked to attrition</strong>?” after a bit of pondering you come up with the chart below…</p><pre>ggplot(hr, aes(x=OverTime,y=Attrition))+<br>geom_jitter(size = 1.5,alpha=0.4,aes(color=Attrition))+<br>ggtitle(&quot;Is Overtime related to attrition&quot;)+<br>theme(plot.title = element_text(face=&quot;bold&quot;,hjust = 0.5))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8tpMw5WH2CNVCgOqMlPAFg.png" /></figure><p>the visual is not cutting it you decide to back it up with dplyr table.</p><pre>hr %&gt;% <br> group_by(Attrition, OverTime ) %&gt;% <br> summarise(n=n())  %&gt;% <br> ungroup() %&gt;% <br> transmute(<br> Attrition=Attrition,<br> OverTime=OverTime,<br> count=n, <br> proportion=n/sum(n)<br> )</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*A-EI5FKrkZACqxjjSj0O4w.png" /></figure><p>Hmmm … <a href="https://emojipedia.org/detective/">🕵 ️</a> that looks interesting a majority of “<a href="https://emojipedia.org/detective/"><strong>S</strong></a><strong>tayers</strong>” don’t use overtime its the reverse in “<strong>Leavers</strong>”. You decide to check the individual group proportions within the Leavers and stayers.</p><pre>hr %&gt;% <br> group_by(Attrition, OverTime ) %&gt;% <br> summarise(n=n())   %&gt;% <br> transmute(<br> Attrition=Attrition, <br> OverTime=OverTime, <br> count=n , <br> proportion=n/sum(n)<br> )</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*d_JynkiFT31v0ZeCe-BpkA.png" /></figure><p>So this is a quite interesting chances are if you don’t take overtime you are likely a “<strong>stayer</strong>” since most people who stay on don’t seem to take overtime.</p><p>Before moving lets look at an interesting visualization theory point . Notice when there where one categorical variable(eg : Overtime y/n , Attrition y/n)and one continuous variable( Age , Distance from home) to create a graph with one of each(i.e.: One continuous and one categorical ) it made sense to overlay a box plot with jitter dots for each person.</p><p>However when it comes to plotting two categorical variables together a jitter plot is all that we need. The visual decisions you take when plotting is another more wider subject and I’ll cover it after the people analytics training course in much more detail in another set of posts.</p><p>Working quickly you move to the variable “Monthly Rate” maybe it’s another key to this puzzle<a href="https://emojipedia.org/face-with-monocle/">🧐</a>.</p><pre>ggplot(hr, aes(MonthlyRate,y=Attrition))+<br>geom_boxplot(alpha = 0.1,aes(color=Attrition))+<br>geom_jitter(size = 1.5,alpha=0.4,aes(color=Attrition))+<br>ggtitle(&quot;Is MonthlyRate related to attrition&quot;)+<br>theme(plot.title = element_text(face=&quot;bold&quot;,hjust = 0.5))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6nAo_KzHg-0GyVdzAFBF0A.png" /></figure><p>You notice there that on average when comparing the two medians the people who left have a marginally higher monthly rate compared to people who remained in the company.</p><p>Then you decide to look at the parameter “years with current manager” maybe that is also a contributing factor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZYxHrPhbiqKB59DFbVzcrA.png" /></figure><p>You notice three bands in the less than one year period, then another in 1.5 to 2.5 year period and finally around the 6 to 7 year mark. By comparing this with the employees who stayed on you see the same three bands but you wonder can this be yet a another reason as to why people are leaving.</p><p>After doing a bit of EDA(Exploratory data analysis) you think now you are ready to apply the machine learning model.</p><p>This will be a supervised machine learning problem. In simpler words we will look at the employees who have left and try to see if someone with the similar characteristics are in the employment roster today to highlight and positively intervene via chats with line mangers and informal discussions etc.</p><p>In most machine learning projects we begin by splitting the data into training and testing sets. Data splitting is frequently used in machine learning to prevent <strong>overfitting</strong>. If a machine learning model fits its training data too well and is unable to fit new data in a good enough way and this can be called <strong>overfitting</strong>. As the picture below depicts we are looking for a reasonable fit neither loose(<strong>Underfitting</strong>) nor to tight (<strong>Overfitting</strong>). Think of this as a Goldilocks and the Three Bears type of situation. <a href="https://emojipedia.org/girl/">👧</a><a href="https://emojipedia.org/bear/">🐻🐻</a>🧸</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*RZEsQhr3VHJWBPNVvbZLfA.png" /><figcaption>The middle separation shows a better classification compared to left (Underfit) too general not useful , right(Overfit) too specific not useful</figcaption></figure><p>Lets use a 70/30 split this time.(i.e. : 70% in training 30% in testing ). Another thing to note is set.seed argument this will make your code repeatable. From the start get into the good habit of placing these when splitting data and fitting models this will help you in the long run a great deal by helping you replicate the code for comparison and discussion later.</p><pre>set.seed(123)<br>index &lt;- sample(2, nrow(hr), replace = TRUE, prob = c(<strong>0.7, 0.3</strong>))<br>train &lt;- hr[index==1,]<br>test &lt;- hr[index==2,]</pre><h4>02 What is class imbalance and how can we address it.</h4><p>Class imbalance is when the class we are trying to predict is naturally not common. In our people analytics example the issue is that when we look at that majority of the employees they will stay back anyway.</p><p>what happens when we apply the model without treating this ?</p><p>In short your model will see loads and loads of people who stay on and a very few people who leave. It will start thinking that leavers are so rare that it will predict everyone as a “<strong>stayer</strong>” . Sadly to our purpose its not very useful in this state isn’t it <a href="https://emojipedia.org/person-facepalming/">🤦🤦🤦</a>.</p><p>Ok a bad model is worse than no model at all so you decide to treat imbalance before fitting the model. Let’s look at how worse our problem is by counting the leavers and stayers.</p><pre>train %&gt;% <br>group_by(Attrition) %&gt;% <br>summarise(count =n()) %&gt;% <br>mutate(relative_proportion = 100*round(count/sum(count), 3))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*9UflqxjK95sVZ6Ll8NRmBg.png" /><figcaption><strong>Observe that non attritions are a little more that 5 times of attritions</strong></figcaption></figure><p><strong>Observe that non attritions are a little more that 5 times of attritions</strong></p><p>What we can do in this case is we can use a built in function in caret “<strong>up- sample</strong>” to do the heavy lifting for us and give us a balanced sample to train. What is does is it will create some artificial samples of the minority class (<strong>Leavers</strong>)so the minority class count matches the majority class count creating a balance.</p><p>Then when we train the model it will have fair chance to learn about both types of people thereby be able to predict both classes equally.</p><pre>trainup &lt;- <br>train %&gt;% <br>upSample( train$Attrition) %&gt;% <br>select(-c(&quot;Attrition&quot;)) %&gt;% <br>rename(Attrition=Class)</pre><p>if you check the proportion now it will be balanced.</p><pre>trainup %&gt;% <br>group_by(Attrition) %&gt;% <br>summarise(count =n()) %&gt;% <br>mutate(relative_proportion = 100*round(count/sum(count), 3))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*LaYQoFea5TX6VYDm7BX6SA.png" /><figcaption>Now both classes have equal observations.</figcaption></figure><p>Things to note here are that the “<strong>upsample</strong>” function takes the class label as an argument and creates a new variable that is a duplicate of the class label so make a note to delete the old class label and rename the new class label.</p><p>If you do not do this after training you might get errors at the test phase since the test data frame will lack this extra variable when you try to generate a confusion matrix.</p><p>Now the data is ready for machine learning and lets look at what you need to accomplish the model.</p><h4>03 What are “gradient boosted trees ”</h4><p>Now there are many! many! many! classification algorithms out there Let’s try a popular one that gives reasonably good results in most cases. If you want to learn more about XGBoost tree models I highly recommend this <a href="http://arxiv-export3.library.cornell.edu/abs/2207.08815?context=cs.LG"><strong><em>paper</em></strong></a>.</p><p>The technique we are using is called “<strong>gradient boosted trees</strong>”. What happens here in simple terms is that under the hood there will be conditional statements splitting the data until patterns are found in the data that can split people into “<strong>stayers</strong>” and “<strong>leavers</strong>”.</p><p>This method becomes more powerful than other tree base methods since there will be many trees. Also more importantly each tree will be sequentially created learning from the mistakes of the previous generation. (i.e. each new tree will try and focus on the mistakes of the previous tree) this way the whole sequence of trees becomes wayyyyy more powerful than any single tree or if all the trees had equal weight and voted on the final answer similar to techniques like “<strong>Random forest</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/0*zVxWdA8o2-OtmI3d.png" /><figcaption>How gbmtree becomes more powerful than other techniques due to its sequential nature</figcaption></figure><p>Now lets get to the code….</p><p><strong>3.1 plain vanilla implementation</strong></p><p>you fit the training data into the model as below</p><pre>set.seed(123)</pre><pre>xGB.modelbasic &lt;- <br>train(Attrition ~ ., <br>data=trainup,   <br>metric = &quot;Accuracy&quot;,<br>method=&quot;xgbTree&quot;,<br>verbosity = 0,<br>preProcess=c(&quot;center&quot;,&quot;scale&quot;))</pre><p><strong>Now lets go over these arguments</strong></p><p>First “ <strong>Attrition ~.</strong> ” stands for predicting the label attrition based on all the other columns in the <strong>trainup</strong> data frame. Note “.” stands for all the variables.</p><p>Then we specify the data-frame to use in the train phase of the model. (<strong>trainup</strong>) After that we tell the model what metrics to use when selecting the best model (In our case select the model with highest <strong>accuracy</strong>) from the train function.</p><p>The “<strong>method</strong>” tells the caret train function to use “<strong>xgbtree</strong>” (Gradient Boosted trees ) to solve this classification problem.</p><p>Pre-process instructions basically tell the model to <strong><em>center</em></strong>(<strong>mean of independent variables is subtracted from all the values</strong>) and <strong><em>scale</em></strong> (<strong>evening of the weights of the variables</strong>) the columns. These steps have been known to improve model performance a lot so it is good to get in the practice of including them in your machine learning models .</p><p>Verbosity is an argument that limits the output printed into console this is advised in when beginning when using simple models however I highly advice reading the output and understanding what these outputs mean in your spare time this will make you a more complete data analyst.</p><p>Lastly , depending on the hardware configurations it may take while to run this model so be patient.</p><p>Once the model is run use below snippet to predict the labels on the test data and create a confusion matrix.</p><pre>prediction = predict(xGB.modelbasic, newdata=test)</pre><pre>confusionMatrix(prediction,test$Attrition)</pre><p>you will get an output like the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*_Ib1ihtjDtnQjKvth4zb4g.png" /></figure><p>Other things you can observe are the variable importance( what variables the model used and to How much as a percentage did the model use each variable)</p><pre>varImp(xGB.modelbasic)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*4ADP28kFNZoLzZuEUAc9_A.png" /></figure><p>Another thing you can observe is the accuracy over the boosting iterations.</p><pre>plot(xGB.modelbasic)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b33JT6MUwHR9Nfo9tHcMNA.png" /></figure><p>Woo hoo ! you made your first model but look at the confusion matrix it seems quite a few (45 ) people who actually left have been misclassified as having been stayed.</p><p>You think twice before going and presenting this model. If I predict a person who is actually about to leave as a person who is going to stay on it may be not worth going to the trouble of building this model.</p><p>Fortunately in reality there are number of things that you can do if a model does not perform as well as you would expect…. let’s see what you can do</p><p><strong>3.2 Let’s take things a few step further …</strong></p><p><strong>3.2.1 Cross validation</strong></p><p>Similar to the main test train split. The train set again is split as below into multiple test train splits. Then the model is trained in these iterations to further reduce overfitting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jMO0mG1WA60uC-8k.png" /></figure><p>In our example the training set is split into 10 parts then the cross validation process is repeated 5 times by the following code. On your own I recommend experimenting with this crossvalidation and trying out other methods like Leave one out etc. In a later post lets go into a little more depth with cross validation methods and how they work.</p><pre>control = trainControl(method = &quot;repeatedcv&quot;, number=10,repeats = 5)</pre><p><strong>3.2.2 Hyperparameter tuning</strong></p><p>The xgbtree model has a lot of parameters that we can twist and turn. Imagine you have an equalizer you tweak to get the best sound likewise this model has knobs like eg : nrounds , maxdepth etc. You can twist and turn to get the best result possible. When doing this it is common practice to create a grid of possible variable values and ask the model to go over them step by step. Let’s create this grid in the next snippet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Rot3c8PA8inYVAQD.jpeg" /><figcaption>Let’s tune the model <a href="https://emojipedia.org/smiling-face-with-smiling-eyes/">😊</a></figcaption></figure><pre>xgbGrid01 &lt;- expand.grid(nrounds = c(20,40,60,80),<br>                       max_depth = c(10,15,20,25),<br>                       eta = c(0.1,0.2,0.4),<br>                       gamma = 0,<br>                       colsample_bytree = 0.7,<br>                       min_child_weight = 1,<br>                       subsample = c(0.6,0.8,1))</pre><p><strong>3.2.3 Adding model weights</strong></p><p>Now in our sorting problem ( classification in fancy machine learning language) we have two groups. This type of problem is called “ Binary classification ” problems.</p><p>In this problem if we misclassify a “<strong>stayer</strong>” as “<strong>leaver</strong>” he might get an unexpected informal talk with HR personnel of his or her line manager to see how he or she is coping etc. and see if there is anything the company can do to support them.</p><p>Think how ever if the opposite happened… that mistake will be far more graver . A sad misunderstood worker might leave and the HR team nor the manger will be none the wiser. Even worse if your model detected this person your team could have done something about it.</p><p>Since detecting leavers are far more important you decide to tell the model to put more effort into finding leavers than stayers.</p><p>Let’s code some R to get it done…</p><p>Notice what is happening under the hood here we are weighting the majority class(Stayers) by the proportion of the (Leavers) and vice versa. This will weight the leavers a lot heavier than the more common stayers since that is what we are after in this case its perfect. Note that by doing this there is a risk some stayers will be misclassified but that&#39;s an error we can mange by using people skills. Not every problem needs machine learning you know <a href="https://emojipedia.org/grinning-face-with-sweat/">😅</a>.</p><pre>hr$model_weights &lt;- ifelse(hr$Attrition == &quot;Yes&quot;,<br>                        table(hr$Attrition)[1]/nrow(hr),<br>                        table(hr$Attrition)[2]/nrow(hr))</pre><p>lets fit the model again now with all the bells and whistles.</p><pre>set.seed(123)</pre><pre>xGB.modelenhanced &lt;- <br>train(Attrition ~ ., <br>data=trainup,   <br>metric = &quot;Accuracy&quot;,<br>method=&quot;xgbTree&quot;,<br>verbosity = 0,<br><strong>weights = model_weights</strong> , #adding model weights <br>preProcess=c(&quot;center&quot;,&quot;scale&quot;),<br><strong>trControl = control</strong>, #cross validation <br><strong>tuneGrid = xgbGrid01</strong>) # hyperparameter tuning </pre><h4>04 model evaluation</h4><p>Once the model fitting is done we need to check how well the model classifies the people. Basically we can see quite an improvement in the model compared to our plain vanilla one.</p><pre>prediction1 = predict(xGB.modelenhanced, newdata=test)<br>confusionMatrix(prediction1,test$Attrition)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*kHt2et9E5N_mn8a8yTvtSA.png" /></figure><pre>varImp(xGB.modelenhanced)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*7OhQXmFueBvBbOhqiNW6zg.png" /></figure><p>Notice now the variable importance has changed. Especially now Overtime is ranked much higher than before. The measure kappa which is telling you how much better your classifier is performing over the performance of a classifier that simply guesses at random according to the frequency of each class. It was ~ 40% before now its at 100% which is a good improvement.</p><pre>plot(xGB.modelenhanced)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*JNJWWJTeIiIfOvPXJCVfdg.png" /></figure><h4>05 next steps</h4><p>Hoooray!!! you built you first classification model. You can inform your manager and the people director that the model is ready for integration into the PowerBi platform as a first run but you will need some time to tweak the parameters to make it even better(this will be covered in the next post).</p><p>You should be proud of yourself if you have covered all three posts and got here. Next post will cover implementing this model in PowerBi. That will be very useful since my plan is to discuss implementation at depth within an organization. As always leave any suggestions and I am open to any topic that you want me to explore.</p><p>Bye for now. 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b473b8150142" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>