<?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 Owais Makroo on Medium]]></title>
        <description><![CDATA[Stories by Owais Makroo on Medium]]></description>
        <link>https://medium.com/@makroo.owais?source=rss-a851584a6014------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mBKJoJR3V8Tz2eGT07tF1w.jpeg</url>
            <title>Stories by Owais Makroo on Medium</title>
            <link>https://medium.com/@makroo.owais?source=rss-a851584a6014------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:09:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@makroo.owais/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[I Wasn’t Supposed to Be Here]]></title>
            <link>https://medium.com/the-story-well/i-wasnt-supposed-to-be-here-71401e538831?source=rss-a851584a6014------2</link>
            <guid isPermaLink="false">https://medium.com/p/71401e538831</guid>
            <category><![CDATA[friendship]]></category>
            <category><![CDATA[college]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Owais Makroo]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 04:49:33 GMT</pubDate>
            <atom:updated>2026-11-15T12:05:40.269Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Four years at IIT Kharagpur, a series of questionable decisions, and the people who made it worthwhile.</em></p><p>I joined IIT Kharagpur in November 2022.</p><p>I wasn’t particularly excited about it. In fact, I hadn’t wanted to join an IIT in the first place. I was supposed to be at UC San Diego, pursuing my Bachelor’s degree, but circumstances had other plans. Eventually, I found myself at Kharagpur, enrolled in Civil Engineering, with very little idea of what I had gotten myself into.</p><p>I didn’t have many expectations going in. Whatever little I did have was promptly and brutally dismantled by the realisation that this place was built on the essence of a concentration camp, situated miles away from anything resembling civilisation. And, for a premier institute of technology, the fact that mobile networks refused to work on more than half the campus grounds was a particularly amusing introduction.</p><p>I hadn’t spoken to any current students before arriving. No seniors, no batchmates, nobody who could give me even the slightest idea of what life here would look like. I was flying blind, straight into the sun, as it would turn out.</p><p>Looking back, I don’t think I would have wanted things to happen any other way. But that doesn’t mean I have entirely made peace with how they did. Even now, whenever life here gets characteristically difficult, I find myself wondering what my life would have looked like had I gone to the US. I sometimes curse the circumstances that brought me here.</p><p>And yet, here we are.</p><h3>1. An Era-Defining Friendship and a Train I Almost Didn’t Catch</h3><p>Given how far along I am in this journey, the memories of my first semester are oddly fleeting yet tantalisingly fresh. I came here a considerably different person, although, in some ways, I feel like the same idiot who walked through the gates on 4 November 2022.</p><p>If I had to pick one memory from my first year that would go on to influence the trajectory of my life, it would be the day I met Akshat. We call him Lathi.</p><p>The first time we met, we were so deeply engrossed in the lecture that we spent practically the entire time talking about a calculator. Yes, a calculator. That day marked the beginning of what I can only describe as an era-defining friendship.</p><p>I can literally kill someone, and the man will find a way to justify it for me.</p><p>I have always been a pathologically extroverted idiot, so over the years, I made acquaintances with a fairly large number of people. Still, only a handful have had a defining effect on the trajectory of my life. For better or worse, Lathi was certainly one of the biggest contributors. Others include Krithanya, Kansal (Shreyansh), Arora (Aryan), Atif, Grumpy (Bhanvi), Kriti, and Tuhina. I could probably come up with another ten names while writing this, but in the interest of time and ink, I shall promise to remember them in my prayers.</p><p>One of my favourite memories from the first year involves Lathi and a rather questionable decision.</p><p>We had gone to Kolkata for a day trip. On our way back, we were travelling on a local train when it stopped at what appeared to be a deserted station. I looked at Lathi and asked if he had watched DDLJ.</p><p>He nodded.</p><p>I tilted my head slightly. He nodded again.</p><p>And I got off the train.</p><p>That was the day I discovered that trains do not, in fact, start slowly at stations like they do in movies.</p><p>I still remember the exact thoughts going through my head as I ran for the last train of the day, desperately trying to save my life. The station was practically empty, and there wasn’t a single living soul in sight. It was an evening characterised by nothing but dread and hopelessness.</p><p>That was also the day I was particularly glad to have been regular at the gym for the preceding three years.</p><p>Would recommend it to anyone.</p><h3>2. A Department I Didn’t Quite Choose</h3><p>I don’t think I ever particularly wanted to leave Civil Engineering. It was more that I couldn’t find a compelling reason to stay.</p><p>I wasn’t leaving because I thought the department was bad. I was leaving because I thought I might be happier elsewhere.</p><p>The Department Change process in KGP is an interesting exercise in uncertainty. You don’t simply choose your new department. You submit a preference order, and allocations are made based on CGPA and the preferences of everyone else applying.</p><p>My preference order had Computer Science first, followed by Mathematics and Computing. I put MnC on the list largely because Lathi convinced me to.</p><p>And so, somewhat accidentally, I ended up here.</p><p>I would love to tell you that the moment I entered MnC, everything fell into place. That I found my calling, discovered my passion for mathematics, and finally felt at home.</p><p>None of that happened.</p><p>Even by the end of my first year, I hadn’t truly accepted the reality of having to be at KGP. No matter how much I outwardly projected that I had moved on from what I had lost by not going to the US, a part of me was still stuck there. I was going through the motions, doing things because I had to, not necessarily because I wanted to.</p><p>The first-year courses were largely familiar territory, having covered much of the material during JEE preparation. Getting decent grades wasn’t particularly difficult. It required some commitment, but nothing extraordinary.</p><p>The actual transition was a different story.</p><p>I still remember coming back to KGP at the beginning of my second year. I was physically here, but I had absolutely no idea which classes I would be attending the following morning. The final DepC results were released at 7 PM the night before classes began.</p><p>A friend called to tell me the results were out. I tried logging into ERP, only to discover that my roll number had changed. Campus Wi-Fi promptly stopped working for me for the same reason.</p><p>KGP administration never ceases to amuse me with its never-ending pursuit of competence.</p><p>As for my reaction to finding out that I had made it into MnC? I was hungry, so I went out for dinner.</p><p>That is to say, I didn’t have much of a reaction.</p><p>I also don’t think the change did much for how I saw myself academically. I have a rather efficient negative feedback loop that ensures that whenever I start entertaining the possibility that I might actually be somewhat smart, I do something so characteristically stupid that the thought never gets to take concrete form in my noggin.</p><p>Some things never change.</p><h3>3. The Accidental Researcher</h3><p>I have always known that I wanted to work in AI research. What I didn’t know was just how much of a nightmare getting there would be.</p><p>My first serious research project made it to the point where we could give it a name. The premise was interesting: we were trying to figure out how best to transfer knowledge from an already-trained model to a new model operating in a different domain.</p><p>I was fortunate enough to be mentored by someone who would eventually become a very good friend. His parents, for reasons beyond me, decided to call him Atif almost a hundred years ago.</p><p>The story of how I got this project is perhaps more interesting than the project itself.</p><p>It was the winter break of my second year, and I was on campus for Inter-IIT athletics. Practice sessions were scheduled for mornings and evenings, which left the rest of my day largely unoccupied. I would often find myself wandering around campus, aimlessly killing time.</p><p>On one such particularly blissful day, I was walking through the Department of Mathematics when a professor called out to me and asked what I was doing there.</p><p>I told him I was jobless and simply roaming around.</p><p>Somehow, in that conversation, I ended up asking whether he had any projects I could work on. He asked me to come back that evening.</p><p>I did.</p><p>And, as they say, the rest is history.</p><p>That professor was Dr. Swanand Khare.</p><p>Between him and Atif (he becomes influential later), I had the foundation on which I would eventually build my research career. They guided me as mentors, listened to me as friends, and gave me the sort of support I could not have anticipated when I first walked into the department.</p><p>I genuinely couldn’t have asked for more.</p><p>The project itself involved developing a method to identify the optimal layer of a deep neural network from which to extract feature representations for transfer learning.</p><p>We had a fairly interesting hypothesis. We believed that the layer with the highest condition number, defined as the ratio of the largest and smallest eigenvalues, would be the best candidate for feature extraction.</p><p>We called the proposed method FastLayerSelector.</p><p>It didn’t work.</p><p>Well, not quite. We got promising pilot results, but eventually, everything started falling apart. After spending months trying to understand what was going wrong, we realised that our argument about condition numbers held only under linear operations. Deep neural networks, as you might have heard, are famously nonlinear. Those pesky activation functions had other plans.</p><p>By the time we understood why our approach didn’t work, we were already months deep into the project.</p><p>And then, after almost a year of work, we discovered that an MIT lab had published a paper on practically the same concept just three weeks before we finalised ours.</p><p>We had to abandon the project.</p><p>It was, in retrospect, perhaps the best first research experience I could have asked for.</p><p>I learned almost everything I know about PyTorch while working on it. I learned how to formulate hypotheses, design experiments, question assumptions, and, most importantly, recognise when something isn’t working.</p><p>I also learned that your code can be absolutely correct, your implementation can be flawless, and your results can still be complete nonsense if the underlying mathematics is wrong.</p><p>I have spent hundreds of hours debugging code that was, for all intents and purposes, working perfectly fine.</p><p>And then there’s PyTorch. Don’t even get me started.</p><p>For my first experiment, I used the same dataset split for training and testing.</p><p>I still remember the sigh Atif let out when he saw that.</p><p>It haunts me to this day.</p><h3>4. Learning to Work With People Who Are Better Than You</h3><p>My first industry experience came through Atif’s startup.</p><p>The overarching idea was a property-listing platform, with its pièce de résistance being the 3D walkthroughs offered to prospective buyers. Before I joined, the process of creating these walkthroughs involved manually adding anchors to images and connecting each anchor to the image of the room that a particular door or passage led to.</p><p>My job was to automate this process.</p><p>Atif called me one blissful morning during the summer of 2024, asking whether I was interested in being a part of something bigger.</p><p>Those were his literal words.</p><p>Oh, how naive I was.</p><p>I said yes, of course!</p><p>The statement aged like fine milk.</p><p>I was a second-year undergraduate who could barely tell a train set from a test set, suddenly working with people who were objectively very, very good at what they did.</p><p>There was Sayantan, a senior Applied Scientist at Amazon, and Atif, who, in his own words, was also a force to reckon with.</p><p>And then there was me.</p><p>The work itself wasn’t necessarily difficult, but there was a substantial amount of literature to get through, and I knew none of it would be plug-and-play. If it were, I probably wouldn’t have been there in the first place.</p><p>Even the existing baselines looked intimidating. I knew that whatever eventually worked for our use case was going to be a nightmare on a good day.</p><p>So, armed with the naivety of a second-year idiot and nothing to lose except a rather massive bruise to my ego, I got to work.</p><p>The biggest intimidator, however, was Sayantan.</p><p>He had the sort of confidence that comes only with experience. His questions were often simple, but the grace and conviction with which he asked them made me second-guess my answers every single time.</p><p>I eventually had to speak to Atif about it and admit that I was genuinely scared of the man.</p><p>Despite the intimidation, I learned a tremendous amount from that experience. Not just technically, but also about communicating within a team, navigating disagreements, and working with people whose experience and abilities far exceeded my own.</p><p>The team had four people, including me, and I quite enjoyed that time.</p><p>One thing I would recommend to anyone starting out is to pounce on opportunities that give you access to people who are genuinely good at what they do. You can learn an extraordinary amount simply by being around them.</p><p>Everyone, other than Atif, was an absolute delight to learn from.</p><h3>5. A Paper With My Name On It</h3><p>My first publication came from a summer project in Data Science and AI at IIT Jodhpur.</p><p>I applied rather randomly. My application was late, and it certainly wasn’t the most well-prepared application they received. Nevertheless, they decided to take a chance on me.</p><p>That chance paid off (allow me to glaze myself a bit).</p><p>The project involved identifying genetic clusters of pheochromocytomas and paragangliomas from CT imaging.</p><p>The resulting work was published at SPIE Medical Imaging 2025.</p><p>We had worked on it, on and off, for almost a year.</p><p>I still remember the message from my supervisor telling me that the paper had been accepted.</p><p>It is difficult to describe what it feels like to see your name on a scientific publication for the first time. To know that something you worked on, however small its contribution might be, has become an accepted addition to a field of science.</p><p>It still feels somewhat unreal.</p><p>In hindsight, I was incredibly fortunate that my first paper was accepted on the first attempt. I hadn’t experienced the rather brutal reality of academic publishing yet. Had I encountered the random rejections that would follow, I might have given up then and there.</p><p>I have since learned that rejection is practically a feature of the process.</p><p>One of the more memorable instances involved a paper being rejected because a reviewer didn’t like the way we had formatted the references to save space.</p><p>You really cannot make this stuff up.</p><p>But that’s research. You spend months working on something, convince yourself that you’ve finally figured it out, send it into the world, and then wait for strangers to tell you everything that’s wrong with it.</p><p>And then you do it all over again.</p><h3>6. From Kharagpur to Rio</h3><p>Somewhere along the way, I also found myself working on projects that would eventually become a much larger part of my research journey.</p><p>There was SIREN, our submission for the Computer Vision problem statement at Inter-IIT Tech Meet 13.0. We ended up winning a gold medal.</p><p>There was SALSA, our machine unlearning work, which would eventually take me to the Conference on Uncertainty in Artificial Intelligence (UAI) 2025.</p><p>And there were other projects, papers, experiments and countless hours spent trying to make things work.</p><p>I had never imagined that any of this would happen when I first started walking into the Mathematics department looking for something to do.</p><p>Presenting SALSA at UAI 2025 in Rio de Janeiro was another experience I struggle to put into words.</p><p>There is something quite surreal about standing in a room with researchers from across the world, presenting something you have worked on for months, and realising that these people are genuinely interested in what you have to say.</p><p>They stop, listen, ask questions, challenge your assumptions, and engage with your work.</p><p>For someone who still spends a considerable amount of time anticipating the moment someone will call his bluff, it was a particularly strange feeling.</p><p>I suffer from a rather severe case of imposter syndrome. To this day, I feel as though I have built an enormous facade around my incompetence, and it will all come crashing down any day now, exposing me for the fraud I apparently am.</p><p>I don’t think presenting at an international conference cured any of that.</p><p>But it did give me a glimpse of what research can look like beyond the confines of a university department. And for that, I am incredibly grateful.</p><h3>7. The Amazon Glitch in the Matrix</h3><p>Eventually, I found myself interviewing for Amazon.</p><p>I wish I could recall exactly how I ended up there, but the entire process is a blur.</p><p>I was sick the night of my online assessment. The only reason I know this is because I had texted Lathi after the assessment, and the next day he called to ask how it had gone.</p><p>I had absolutely no idea what he was talking about.</p><p>Apparently, I had taken an online assessment the previous night.</p><p>The first interview was on Data Structures and Algorithms. I had spent the entire preceding night revising machine learning concepts.</p><p>By the time the second interview came around, I had more or less given up.</p><p>I fell through so many cracks during that recruitment process that I cannot even attribute the outcome to luck. It had to be a glitch in the Matrix.</p><p>And yet, somehow, I made it.</p><p>I eventually joined Amazon as an Applied Scientist, working with people and systems at a scale that was quite different from anything I had encountered during my undergraduate projects.</p><p>There is a particular transition that happens when you move from student research to working in an industry research environment. The problems become larger, the infrastructure more involved, and the consequences of your decisions extend beyond whether an experiment produces a promising result.</p><p>You begin to appreciate just how much engineering goes into making research work in practice.</p><p>I had gone from making elementary mistakes with dataset splits to working with large-scale data pipelines and infrastructure.</p><p>I would like to claim that this was the result of some carefully executed master plan.</p><p>It wasn’t.</p><p>If anything, it was another reminder that I had absolutely no idea what I was doing, and that somehow, things kept working out.</p><h3>8. Everything That Wasn’t Research</h3><p>It would be rather unfair to describe my time at KGP entirely through the lens of academics and research.</p><p>Some of the most important parts of these four years had absolutely nothing to do with either.</p><p>I wasn’t particularly physically fit as a child. At some point, I got into working out and realised that I was reasonably good at it. So, naturally, I decided to try athletics.</p><p>I initially went for a trial as a runner.</p><p>I failed spectacularly.</p><p>Any semblance of an ego I had was thoroughly butchered that day. I eventually pleaded with the coach to let me practise for a while and give me another shot.</p><p>Somewhere along the way, I discovered that I was considerably better at throwing than running.</p><p>I use the word <em>better</em> very loosely.</p><p>I went on to become part of the athletics team, training in shot put and hammer throw and participating in a few athletics competitions along the way. It became one of those things that occupied a fairly significant part of my life outside the classroom.</p><p>Then there was The Scholars’ Avenue.</p><p>I didn’t exactly have a grand plan to become a writer or reporter. A friend forced me to attend the interview, and they gave me a writing assignment that I genuinely enjoyed. I wrote something I was happy with, got through, and ended up joining.</p><p>It was probably one of the best decisions of my college life.</p><p>I met some of the most amazing people there. People I might never have interacted with otherwise, people who introduced me to entirely different ways of thinking, and people who made the experience of being at KGP considerably richer.</p><p>I don’t think I appreciated just how much that place would mean to me when I first walked in.</p><p>And then there was Inter-IIT Tech Meet 13.0.</p><p>Perhaps the worst experience of my college life.</p><p>And that’s saying a lot.</p><p>We worked incredibly hard over those six weeks, and I learned a tremendous amount. We eventually won gold for our SIREN submission, but the experience also taught me a few things about collaboration and group dynamics that I would rather not elaborate on in a public forum.</p><p>For reasons that are best left unexplained, it was the experience that made me decide never to participate in a group-based competition again.</p><p>Would I change it if I could?</p><p>No.</p><p>I learned too much, met too many people, and experienced too much to wish it away.</p><p>As for how I managed to balance research, athletics, writing, competitions, coursework and everything else, I have a fairly straightforward answer.</p><p>I didn’t.</p><p>I just did whatever I wanted to, whenever I wanted to, and somehow it all worked out in the end.</p><p>I wouldn’t recommend this as a productivity framework.</p><h3>9. The People Who Made It Worthwhile</h3><p>If there is one thing that I would take away from these four years, it would be the people.</p><p>I have already mentioned Lathi, and I don’t think I can adequately describe what his friendship has meant to me without turning this into an entirely separate piece.</p><p>Krithanya deserves a mention of her own.</p><p>She has been my rock throughout these four years, my best friend right alongside Lathi. I met her in the most egregious of circumstances, and boi, do I regret that every single day.</p><p>But I am incredibly glad that I did.</p><p>There are people who become such an integral part of your life that you eventually stop thinking about how they got there. You simply cannot imagine the same years without them.</p><p>She is one of those people.</p><p>And then there are Swanand Sir and Atif (yep, him too).</p><p>It is difficult to overstate how much these two contributed to my journey. They were the people who gave me my first real opportunities in research, guided me through the early stages of figuring out what I wanted to do, and helped me navigate the many occasions when I had absolutely no idea what I was doing.</p><p>More importantly, they were willing to listen.</p><p>There are countless others I could mention: friends, teammates, seniors, professors, people from The Scholars’ Avenue, people I met through competitions, and people I probably haven’t spoken to in months but still think about fondly.</p><p>I am sure I will forget someone important if I try to list everyone here.</p><p>But if you’re reading this and wondering whether you made a difference, chances are you did.</p><p>And I am grateful.</p><h3>10. What KGP Actually Taught Me</h3><p>I came to KGP as an 18-year-old who had, for the most part, been fortunate enough to have things handed to him with relatively little effort.</p><p>I had done well academically, cleared JEE, and generally operated under the assumption that if I put my mind to something, things would eventually work out.</p><p>KGP was a rather effective reality check.</p><p>I found myself in an environment where almost everyone seemed to be exceptionally capable. People were competing for grades, internships, research opportunities, positions, recognition and just about everything else.</p><p>It is easy to get caught up in that environment.</p><p>You look around and see people doing things you haven’t even begun to understand. Someone has a better CGPA, someone else has a better internship, another person has published more papers, and somebody else seems to have figured out their entire life by the time they’re twenty.</p><p>And before you know it, you’re measuring your own progress against everyone else’s.</p><p>What you eventually realise, though, is that almost everyone is struggling in some way.</p><p>Some people are struggling academically. Others are dealing with things outside the classroom. Some are trying to figure out what they want to do with their lives, while others are simply trying to make it through the semester.</p><p>Most of us are just trying to fit in, find ourselves, and figure out what comes next.</p><p>We rarely see the full picture of what someone else is going through. We see their achievements, their grades, their internships, their successes. We don’t necessarily see the circumstances behind them, the failures that preceded them, or the things they’re dealing with privately.</p><p>I think the most important realisation I had during these four years was that we are all works in progress.</p><p>We are all figuring things out. Some of us are a little further along in certain aspects of life, some are further behind, and most of us have absolutely no idea what we’re doing.</p><p>Perhaps we should take it a little easier on each other.</p><p>I don’t think KGP taught me everything I know about mathematics, computer science or research. A substantial amount of that came from books, papers, failed experiments, countless hours of debugging and people who were kind enough to answer my questions.</p><p>But it taught me something that no classroom could.</p><p>It taught me how to be a human being.</p><h3>11. Four Years Later</h3><p>I don’t know what I would tell the version of myself who walked through the gates on 4 November 2022.</p><p>There are too many things that have happened since then, too many people he hasn’t met yet, too many experiences he couldn’t possibly anticipate.</p><p>I could tell him about the research projects, the publications, the conferences, the internships, and eventually joining Amazon.</p><p>I could tell him about the friendships that would become some of the most important relationships in his life. About the trips, the competitions, the late nights, the failures, and the many, many questionable decisions.</p><p>But I don’t think any of that would adequately prepare him for what was coming.</p><p>I don’t think I have become the person I expected to become. In fact, I don’t think I had a particularly clear picture of who that person was supposed to be.</p><p>I still have my fair share of insecurities. I still question my decisions, struggle with imposter syndrome, and occasionally wonder what life would have looked like had things gone differently.</p><p>I haven’t figured everything out. I don’t think I am particularly close to doing so.</p><p>And perhaps that’s okay.</p><p>I came here expecting to build a career. Somewhere along the way, I built a life.</p><p>One filled with people I wouldn’t trade for anything, experiences I wouldn’t want to erase, and memories that I suspect will stay with me long after the details of my coursework and research have faded.</p><p>I don’t know whether coming to KGP was the right decision. I don’t know whether choosing MnC was the right decision. I don’t know whether any of the decisions that brought me here were particularly well thought out.</p><p>But I know that I am glad I met the people I did. I am glad I got to work on the things I worked on, even the ones that failed. I am glad I got to experience the good, the bad, and the downright absurd.</p><p>And if I could go back and change one thing, I am not sure I would.</p><p>Perhaps I wasn’t supposed to be here.</p><p>But I am glad I was.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71401e538831" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-story-well/i-wasnt-supposed-to-be-here-71401e538831">I Wasn’t Supposed to Be Here</a> was originally published in <a href="https://medium.com/the-story-well">The Story Well</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Not Devotion, but Indulgence]]></title>
            <link>https://medium.com/@makroo.owais/not-devotion-but-indulgence-ec6a727fec88?source=rss-a851584a6014------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec6a727fec88</guid>
            <category><![CDATA[indulgence]]></category>
            <category><![CDATA[love]]></category>
            <category><![CDATA[self-awareness]]></category>
            <dc:creator><![CDATA[Owais Makroo]]></dc:creator>
            <pubDate>Sun, 17 May 2026 16:48:53 GMT</pubDate>
            <atom:updated>2026-11-14T02:23:18.515Z</atom:updated>
            <content:encoded><![CDATA[<p>There is a simple way to recognize this kind of self-deception:<em> if he loves her, he writes her a poem; if he writes her a hundred poems, he loves writing poems</em>. Love makes available to us a dangerous belief: that because we are suffering for someone, we must be acting for them. Fyodor Dostoevsky understood this. The Gambler is not, at its core, a story about cards or money. It is a story about a man who used love as a permission slip for everything he already wanted to do.</p><p>The Gambler revolves around Alexei Ivanovitch, and more precisely, how he understands love. At first glance, he appears ordinary: a man constrained by class, quietly in love with Polina Alexandrovna, unsure of how to act. But what defines him is not his hesitation; it is his tendency to translate feeling into action, and action into justification. Polina, on the other hand, seeks something far simpler and far more difficult: to be accepted without correction, to be loved without being fixed. By the time she turns to Alexei, she believes he might be capable of that. What follows proves otherwise.</p><p>Polina needed money to settle a debt. Alexei, who had sworn off gambling, returned to the casino for her, he told himself. He won enough. He did not leave. He stayed and gambled. Justifying it by saying that the extra money he would win would help him give Polina a happier life, he thought she had already faced enough hardship and now deserved a better time. The problem here is that all Polina ever wanted was to be loved for who she was; she did not want anyone’s pity, she wanted to feel seen and understood. She wanted to be accepted, not solved<em>.</em> But she got someone who thought he could solve her problems for her.</p><p>The problem with Alexei’s return to gambling reveals itself in a simple distinction: actions done for someone else have limits; indulgences do not. If he were truly acting for Polina, he would have left the moment he had enough. The goal would have been clear, finite, and sufficient. But he stayed. He continued to gamble; not because Polina needed more, but because he did. What he called love was, in reality, an indulgence he could now justify.</p><p>It is far easier to tell oneself that one is suffering, risking, striving <em>for someone else</em> than to admit that one is simply unable to stop. By attaching his actions to Polina, Alexei elevated his compulsion into something noble. But strip away the justification, and what remains is not devotion, but appetite.</p><p>Polina did not need a savior. She needed someone who could stand beside her without trying to rewrite her life. But Alexei could not do that.</p><p>And that is perhaps the more unsettling truth this reveals: in our pursuit of love, we often do not see the other person as they are, but as a vessel through which we pursue our own desires, be it validation, purpose, or escape. We convince ourselves that the intensity of our actions proves the sincerity of our feelings, when in reality, it often only reflects the depth of our own unrest.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec6a727fec88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Memory Erase Button: Identity, Responsibility, and the Value of Suffering]]></title>
            <link>https://medium.com/@makroo.owais/the-memory-erase-button-identity-responsibility-and-the-value-of-suffering-7a02c36f8257?source=rss-a851584a6014------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a02c36f8257</guid>
            <category><![CDATA[identity]]></category>
            <category><![CDATA[responsibility]]></category>
            <category><![CDATA[suffering]]></category>
            <dc:creator><![CDATA[Owais Makroo]]></dc:creator>
            <pubDate>Wed, 01 Apr 2026 18:50:41 GMT</pubDate>
            <atom:updated>2026-11-14T02:38:59.148Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine a button.</p><p>Press it, and a traumatic memory from your past disappears completely: the fear, the grief, the humiliation, the anger, all gone. You remember nothing of the event, and with it, the emotional consequences vanish.</p><p>The real question the button raises is not whether pain is worth keeping. It is: <em>who gets to be the author of your story?</em></p><p>Every life is a narrative. Not simply a sequence of events, but an interpretation of those events, a continuous act of authorship through which we decide what things meant, what they made us, and whether they’re worth carrying forward. Trauma often becomes a load-bearing chapter. Remove it, and the structure above can shift in ways neither the surgeon nor the patient fully anticipates.</p><h3>Identity and Memory</h3><p>Philosophers have long suspected that memory is not merely a record of the past but the architecture of the self. Derek Parfit’s influential account of personal identity holds that what makes you the same person over time is psychological continuity: the web of memories, beliefs, intentions, and character traits that connects your past self to your present self. You are not defined by any singular experience, but by the continuous path all experiences have carved through you. Alter one link in that chain and the change appears small at first. Over time, the person can shift entirely.</p><p>Under this view, erasing a memory is not a small edit. It is a revision to the manuscript.</p><p>Traumatic experiences, in particular, become anchors in that manuscript. A betrayal teaches caution. A loss deepens empathy. A failure hardens resolve. These are not passive effects; they are acts of authorship the self performs on itself, making meaning from damage. If such an event disappears, the question is not simply what the person loses. It is whether the chapter that followed, the changed behavior, the rebuilt priorities, the altered way of seeing others, can hold without the page on which it was built.</p><p>Two possibilities open here, and either is equally alarming. In the first, the memory vanishes, but the behavioral patterns remain. A person feels uneasy in certain situations without knowing why; their reactions persist, but the story behind them has been redacted. In the second, the memory fades, and the patterns dissolve with it. The person does not simply lose a painful recollection. They become someone else. Not dramatically, not all at once, but the manuscript has a different shape now, and so does the person reading it.</p><p>The thought experiment, then, is asking something sharper than whether suffering should be removed. It asks whether identity resides in the stories we remember or in the causal experiences that shaped us and whether those can even be separated.</p><h3>The Authenticity Problem</h3><p>Most people hesitate before pressing the button. Even when the suffering is real, there is an instinct that removing it cheapens the life that follows. That instinct deserves to be taken seriously, but it also needs to be interrogated.</p><p>Robert Nozick’s <em>experience machine </em>argued that people value actually being certain kinds of people, not merely feeling like they are. His point was that authenticity is not a feeling; it is a relationship between the self and reality. Memory erasure introduces a different but related problem: if the psychological narrative that shapes a person is edited, the person who emerges is real but reconstructed. Life feels continuous from the inside, but the narrative has been quietly altered. The page is still there. The text has changed.</p><p>Nietzsche’s concept of <em>amor fati</em> goes further. It asks not merely that we endure suffering, but that we affirm it as necessary to what we became. In that framework, pressing the button is a refusal, a declaration that you reject the draft of your life. But Nietzsche is easy to misuse here. He did not admire suffering. He admired strength. Trauma that destroys a person is not something to celebrate, and the refusal to erase it is not automatically noble. Which brings up the sharpest question in this entire thought experiment: <em>is refusing to erase trauma an act of strength, or simply an inability to imagine a different self?</em></p><p>There is a real danger in romanticizing hardship. Trauma does not reliably build character. For many people, it produces depression, addiction, and isolation rather than insight or resilience. The claim that suffering makes us who we are is sometimes true, and sometimes it is a story we tell because we have no other way to make sense of the damage we couldn’t prevent.</p><p>So praising hardship is not the answer. But neither is the simple removal of it. The question is more precise than that.</p><h3>What Suffering Actually Does?</h3><p>If the emotional pain attached to a traumatic memory were stripped away while the factual memory remained, what would be left?</p><p>Without the suffering, the event becomes an anecdote. Something that happened, filed away, inert. The intensity that forced reflection, that made you stay awake at three in the morning, reconstructing what went wrong, that made you change something in yourself, disappears. And with it, the weight that gave the experience its moral gravity.</p><p>But here is the more interesting possibility: <em>suffering is not the teacher</em>. It is the catalyst that forces a person to teach themselves.</p><p>In therapy, people revisit painful memories until the emotional intensity fades. The memory remains; the distress weakens. What persists is not the pain, but the meaning constructed in its presence. The lesson survives the suffering that produced it. If this is right, then the transformative part of trauma lies not in the experience itself, but in what we build from it afterward.</p><p>This introduces a temporal dimension that the thought experiment usually ignores. Pressing the button immediately after the trauma forecloses growth entirely; the chapter gets deleted before you’ve written the ones that follow from it. Pressing it years later, after the event has already reshaped your perspective, removes pain without erasing the development it triggered. The authorship has already happened. The suffering has done its work.</p><p>In other words, the timing of forgetting matters as much as the act of forgetting itself. And if timing matters, then so does the question of who decides.</p><h3>Who Gets to Press the Button?</h3><p>If you press it yourself, the act is an exercise of authorship. You are choosing to revise your own narrative, with full knowledge of what you’re changing and why. That is a legitimate, if irreversible, choice.</p><p>Now imagine a doctor, parent, or state official decides your suffering is too severe and presses it for you. The problem shifts from identity to something more troubling: someone else is editing a manuscript that does not belong to them.</p><p>Medicine already navigates adjacent territory. When patients lack decision-making capacity, others act on their behalf, guided by what the person would likely have wanted and what appears to be in their best interests. These are imperfect proxies, but they preserve at least the orientation toward the patient’s own authorship. Memory erasure goes further. A third party can measure suffering or functional impairment; they cannot measure the meaning a memory holds for the person living with it. What reads as a purely destructive chapter from the outside might be the event around which someone has organized their entire sense of purpose.</p><p>To edit it is not a treatment. It is ghostwriting someone else’s life without their permission.</p><h3>Memory Erasure and Moral Responsibility</h3><p>The problem sharpens further when responsibility comes into play.</p><p>Suppose someone commits a harmful act while overwhelmed by trauma. Later, the memory of the trauma is erased. Who is responsible now?</p><p>One answer is historical: responsibility attaches to the individual who acted, regardless of whether they remember doing it. Legal systems follow this logic. Forgetting a crime does not undo it.</p><p>The opposing view ties responsibility to psychological continuity. If the present person no longer shares the memories or motivations of the one who committed the act, the connection between them weakens, approaching the condition of severe amnesia, in which the person who exists now is psychologically remote from the one who acted. Some philosophers argue that punishment becomes morally questionable in such cases. If the psychological agent who committed the wrongdoing has effectively ceased to exist, it is unclear whether the current person is the proper target.</p><p>Societies resist this conclusion for good reason. If responsibility dissolves whenever memory changes, memory-editing technology becomes an instrument of impunity. Practical necessity keeps responsibility tied to the historical individual, the author of the act, not the edited version that followed.</p><h3><strong>The Deeper Question</strong></h3><p>The button, ultimately, is not a question about pain. Pain is the surface. Underneath it is a question about authorship: <em>who gets to write your life, and what is lost when someone revises it without your consent or when you revise it without fully understanding what you’re erasing.</em></p><p>Our moral and legal systems assume personal identity is stable. The same person who made a promise must keep it. The same person who caused harm is the one who answers for it. Memory erasure makes that assumption fragile. It reveals that the self we treat as a fixed point is actually a manuscript, continuously authored, subject to revision, and far more vulnerable to editing than we usually admit.</p><p>The choice the button presents is not really between suffering and relief. It is between two kinds of life: one whose difficult chapters remain in the text, shaping every chapter that follows, and one that has been curated into something smoother, more bearable, and perhaps less entirely yours.</p><p>Most people, if they think carefully, would rather endure a difficult chapter or two than discover afterward, when it is too late, that someone has rewritten the book.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a02c36f8257" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Quiet Tension Between Generations]]></title>
            <link>https://medium.com/@makroo.owais/the-quiet-tension-between-generations-964208fc6562?source=rss-a851584a6014------2</link>
            <guid isPermaLink="false">https://medium.com/p/964208fc6562</guid>
            <category><![CDATA[parenting-teenagers]]></category>
            <category><![CDATA[elders]]></category>
            <category><![CDATA[respect]]></category>
            <category><![CDATA[love]]></category>
            <category><![CDATA[parents]]></category>
            <dc:creator><![CDATA[Owais Makroo]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 08:29:42 GMT</pubDate>
            <atom:updated>2026-03-07T08:29:42.426Z</atom:updated>
            <content:encoded><![CDATA[<p>Every generation believes it is giving the next one the tools to live well. Parents pass on advice, warnings, and rules that they believe will keep their children safe. Yet, somewhere along the way, a quiet tension emerges. The younger generation begins making choices that do not fully align with the values their elders built their lives on. What begins as advice slowly turns into disagreement.</p><p>This disagreement is often misunderstood. It is easy to assume that elders oppose new choices simply because they dislike them or because they resist change. But the deeper reason is more complicated. The values people live by are not abstract ideas; they are the foundation upon which they justify decades of decisions. Careers chosen, risks avoided, sacrifices endured; all of these choices are tied to a belief about how life ought to be lived.</p><p>When someone younger succeeds by following a different path, it subtly challenges that belief. If another way works, then the earlier choices begin to look less inevitable and more contingent. That realization can be deeply unsettling. What appears to be resistance to the younger person’s choices is often an unconscious attempt to preserve the meaning of one’s own past.</p><p>This tension between generations is not new. In <em>On Children</em>, from <em>The Prophet</em>, Khalil Gibran offers a perspective that dissolves the conflict rather than escalating it. He writes:</p><blockquote>Your children are not your children.<br>They are the sons and daughters of Life’s longing for itself.<br>They come through you but not from you,<br>And though they are with you, yet they belong not to you.</blockquote><p>Gibran’s point is subtle but powerful. Parents are not the authors of their children’s lives; they are the passage through which life continues. They can offer love, protection, and wisdom, but they cannot rightfully impose the shape that another life must take.</p><p>He continues with another striking line: “<em>You may give them your love but not your thoughts</em>.” Experience can be shared, but belief cannot be transferred by force. Each generation must confront the world as it exists in its own time and discover which principles still hold and which must be reimagined.</p><p>Seen this way, the role of an elder becomes clearer. Their task is not to determine the path, but to illuminate the terrain. They can explain where they walked, the dangers they encountered, and the reasons they chose the routes they did. But the younger traveler must still decide which direction to take.</p><p>This does not make the elder irrelevant, nor does it make the younger generation wiser. It simply acknowledges a truth about life: every person must test inherited wisdom against their own experience.</p><p>Gibran captures this balance beautifully when he writes that parents are “<em>the bows from which your children, as living arrows, are sent forth.</em>” The bow provides the tension and the direction, but the arrow must ultimately fly on its own.</p><p>Perhaps the healthiest relationship between generations is one where advice is given freely but not enforced, and independence is exercised without contempt for the past. The elder offers perspective; the younger offers possibility. Between the two, life continues to evolve.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=964208fc6562" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Limits of Kindness]]></title>
            <link>https://medium.com/@makroo.owais/are-good-people-idiots-1884bf2e32a9?source=rss-a851584a6014------2</link>
            <guid isPermaLink="false">https://medium.com/p/1884bf2e32a9</guid>
            <category><![CDATA[dostoevsky]]></category>
            <category><![CDATA[kindness]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[idiots]]></category>
            <category><![CDATA[fyodor-dostoevsky]]></category>
            <dc:creator><![CDATA[Owais Makroo]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 22:00:05 GMT</pubDate>
            <atom:updated>2026-03-03T22:03:20.405Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding Kindness Through<strong> Dostoevsky’s <em>The Idiot</em></strong></p><p>In 1869, Fyodor Dostoevsky published <em>The Idiot</em>, a novel built around a daring experiment.</p><p>What would happen if a truly good person, innocent, compassionate, sincere, were placed into ordinary society?</p><p>Would he elevate it? Or would society crush him?</p><p>The result is unsettling. Dostoevsky does not give us a triumphant moral hero. Instead, he gives us Prince Myshkin, a man whose goodness destabilizes everyone around him.</p><p>The novel forces a difficult question: are good people naïve? Or does society misunderstand goodness itself?</p><p>Let’s unpack this carefully.</p><p><strong>What Does “Kindness” Actually Mean?</strong></p><p>Before judging Myshkin, we need clarity about what kindness is.</p><p>Kindness is not mere politeness or conflict avoidance. It is not saying yes to keep the peace.</p><p>At its best, kindness is recognizing that we cannot fully understand another person’s inner world and choosing to respond with patience rather than judgment. It is empathy rooted in humility.</p><p>But kindness must operate in the real world, where time, emotional energy, and loyalty are finite. When kindness lacks structure, when it has no boundaries, no prioritization, it can become unstable.</p><p>That tension sits at the center of <em>The Idiot</em>.</p><h3>Prince Myshkin: Compassion Without Boundaries</h3><p>Prince Myshkin returns to Russia after years of treatment for epilepsy. He is socially awkward but deeply perceptive. He sees suffering quickly and responds to it instinctively. He does not manipulate, compete, or posture.</p><p>He is sincere to a fault. Yet everywhere he goes, relationships unravel.</p><p>Why?</p><p>Because Myshkin’s kindness is universal and immediate. He does not scale his emotional investment. He responds to whoever is suffering in front of him, even if that response destabilizes other commitments.</p><p>His moral instinct is to heal. His weakness is that he cannot choose decisively.</p><p>This becomes clearest in his relationships with two women: Nastasya Filippovna and Aglaya Epanchina.</p><h3>Nastasya Filippovna: The Refusal of Redemption</h3><p>Nastasya Filippovna has lived a life marked by exploitation and shame. As a young woman groomed by a wealthy guardian, she grows up believing she is morally ruined. Over time, she internalizes this belief so deeply that it becomes her identity.</p><p>When Myshkin sees her, he does not see corruption. He sees dignity. He offers marriage not out of pity, but out of respect.</p><p>On paper, this seems like perfect kindness. But for Nastasya, it is destabilizing.</p><p>If she accepts Myshkin’s view of her, she must abandon the narrative that she is irreparably damaged. That would require rebuilding her sense of self. It would require hope.</p><p><strong>Hope is harder than despair.</strong></p><p>Instead, she gravitates toward Rogozhin, a man whose obsessive, possessive love confirms her self-destructive identity. Rogozhin’s intensity feels familiar. Myshkin’s compassion feels alien.</p><p>Dostoevsky suggests something profound here: <strong>people often choose what feels coherent over what is healthy.</strong></p><p>Nastasya does not reject kindness because it is false. She rejects it because it demands transformation.</p><h3>Aglaya Epanchina: The Need to Be Chosen</h3><p>Aglaya Epanchina represents a different tension.</p><p>She is intelligent, proud, and romantic. She admires Myshkin’s purity and initially sees him as morally superior to the shallow men around her. <strong>But admiration is not the same as security.</strong></p><p>Aglaya wants exclusivity. She wants to be chosen.</p><p>Myshkin, however, continues to respond compassionately to Nastasya’s suffering even as he moves toward a relationship with Aglaya. When forced to choose decisively, he hesitates. He cannot withdraw his empathy, even when doing so might preserve his romantic commitment.</p><p>To Aglaya, this feels like weakness.</p><p>Her frustration is not with kindness itself, but with diffusion, with a love that extends everywhere instead of anchoring somewhere.</p><h3>Rogozhin and Ippolit: Other Failures of Kindness</h3><p>Rogozhin embodies the opposite of Myshkin. Where Myshkin dissolves boundaries, Rogozhin enforces domination. His love is possessive and obsessive. He equates love with ownership. His failure is not excessive kindness, but excessive control.</p><p>Then there is Ippolit Terentyev, a terminally ill and intellectually sharp young man. Facing death, he lashes out with cynicism. He delivers long, defiant speeches that mix vulnerability with contempt. His cruelty masks fear.</p><p>Each character fails differently:</p><ul><li>Myshkin fails through <strong>overextension</strong>.</li><li>Nastasya fails through <strong>self-annihilation</strong>.</li><li>Aglaya fails through <strong>pride </strong>and <strong>unspoken expectations</strong>.</li><li>Rogozhin fails through <strong>obsession</strong>.</li><li>Ippolit fails through <strong>defensive bitterness</strong>.</li></ul><p>The novel becomes a study of imbalanced virtues.</p><h3>So, Are Good People Idiots?</h3><p>The answer is more nuanced than the title suggests.</p><p>Myshkin is not foolish because he is kind. He is tragic because his kindness lacks structure. He does not set boundaries. He does not prioritize commitments. He responds to immediate suffering rather than long-term stability.</p><p>In a world governed by pride, insecurity, and competition, such goodness appears naïve.</p><p>But Dostoevsky is not mocking kindness. He is testing it.</p><p>He asks: Can pure compassion survive in a flawed society? And if not, what is missing?</p><p>The novel’s quiet conclusion seems to be this: <strong>Kindness alone is insufficient.</strong></p><p>For goodness to be sustainable, it must be paired with clarity, decisiveness, and self-knowledge. <strong>Compassion without boundaries can create unintended harm. Empathy without commitment can destabilize relationships.</strong></p><p>Good people are not idiots. But goodness without strength is fragile.</p><p><em>The Idiot</em> endures because it refuses easy answers. It challenges us to consider whether we value purity more than stability, and whether true maturity lies not in abandoning kindness, but in disciplining it.</p><p>Dostoevsky does not argue against goodness. He argues that goodness must grow up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1884bf2e32a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TorchOptimizer: Efficient Hyperparameter Optimization for PyTorch Lightning Models]]></title>
            <link>https://medium.com/@makroo.owais/torchoptimizer-efficient-hyperparameter-optimization-for-pytorch-lightning-models-31ea4e7b7545?source=rss-a851584a6014------2</link>
            <guid isPermaLink="false">https://medium.com/p/31ea4e7b7545</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[hyperparameter-tuning]]></category>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[pytorch-lightning]]></category>
            <dc:creator><![CDATA[Owais Makroo]]></dc:creator>
            <pubDate>Fri, 10 Jan 2025 22:50:07 GMT</pubDate>
            <atom:updated>2025-01-11T10:07:42.379Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L9gXx2i8Aa6hHVJu.jpg" /></figure><p>Hyperparameter optimization is a critical yet challenging aspect of deep learning model development. Finding the right combination of hyperparameters can significantly impact model performance, but the process can be time-consuming and computationally expensive. Today, I’m excited to introduce TorchOptimizer, a powerful tool that streamlines hyperparameter optimization for PyTorch Lightning models using Bayesian Optimization.</p><h3>What is TorchOptimizer?</h3><p>TorchOptimizer is a Python library that combines the power of PyTorch Lightning with scikit-optimize’s Bayesian Optimization capabilities. It’s designed to efficiently explore hyperparameter search spaces while leveraging parallel processing for faster results. The library uses Gaussian Processes to model the objective function, making intelligent decisions about which hyperparameter combinations to try next.</p><h3>Key Features</h3><ol><li><strong>Bayesian Optimization</strong>: Instead of grid or random search, TorchOptimizer uses Gaussian Processes to build a probabilistic model of the objective function. This allows it to decide which hyperparameter combinations to explore next.</li><li><strong>Parallel Evaluation</strong>: The library leverages multiple CPU cores to evaluate different hyperparameter configurations simultaneously, significantly reducing optimization time.</li><li><strong>Seamless PyTorch Lightning Integration</strong>: Explicitly built for PyTorch Lightning models, TorchOptimizer integrates smoothly with the Lightning ecosystem, including support for callbacks and logging.</li><li><strong>Flexible Search Space</strong>: Define complex hyperparameter search spaces with constraints using scikit-optimize’s dimension specifications.</li></ol><h3>How It Works</h3><p>Let’s look at a simple example of how to use TorchOptimizer:</p><pre>import torch<br>from pytorch_lightning import LightningModule<br>from torch_optimizer import TorchOptimizer<br>from skopt.space import Real, Integer<br><br># Define your PyTorch Lightning model<br>class MyModel(LightningModule):<br>    def __init__(self, lr, hidden_size):<br>        super().__init__()<br>        self.lr = lr<br>        self.hidden_size = hidden_size<br>        self.layer = torch.nn.Linear(hidden_size, 1)<br><br>    def forward(self, x):<br>        return self.layer(x)<br><br>    def training_step(self, batch, batch_idx):<br>        x, y = batch<br>        y_hat = self(x)<br>        loss = torch.nn.functional.mse_loss(y_hat, y)<br>        return loss<br><br># Define your search space<br>space = [<br>    Real(1e-4, 1e-2, name=&quot;lr&quot;),<br>    Integer(32, 256, name=&quot;hidden_size&quot;)<br>]<br><br># Configure the optimizer<br>optimizer = TorchOptimizer(<br>    model=MyModel,<br>    trainer_args={&quot;max_epochs&quot;: 100, &quot;accelerator&quot;: &quot;gpu&quot;},<br>    train_loader=train_loader,<br>    val_loader=val_loader,<br>    monitor=&quot;val_loss&quot;,<br>    maximise=False,<br>    space=space,<br>    constraint=lambda params: params[&quot;hidden_size&quot;] % 32 == 0,<br>    n_calls=50,<br>    n_initial_points=10<br>)<br><br># Run the optimization<br>best_params = optimizer()<br>print(&quot;Best Parameters:&quot;, best_params)</pre><h3>Under the Hood: Gaussian Processes</h3><p>TorchOptimizer uses Gaussian Processes (GPs) for Bayesian optimization. GPs provide several advantages:</p><ol><li>The model uncertainty in predictions allows the optimizer to balance the exploration of unknown regions with the exploitation of known suitable regions</li><li>They continuously update their understanding of the objective function as new evaluations are performed</li><li>They work well with relatively few evaluations, making them ideal for expensive-to-evaluate functions like neural network training.</li></ol><h3>Advanced Features</h3><h3>Custom Constraints</h3><p>You can define custom constraints to ensure hyperparameter combinations meet specific requirements:</p><pre>def constraint(params):<br>    return params[&quot;hidden_size&quot;] % 32 == 0 and params[&quot;lr&quot;] &lt;= 0.01p</pre><h3>Logging and Checkpointing</h3><p>TorchOptimizer integrates with PyTorch Lightning’s logging and checkpointing capabilities, making it easy to track experiments:</p><pre>trainer_args = {<br>    &quot;logger&quot;: TensorBoardLogger(save_dir=&quot;logs&quot;),<br>    &quot;callbacks&quot;: [ModelCheckpoint(monitor=&quot;val_loss&quot;)]<br>}</pre><h3>Getting Started</h3><p>You can find the complete TorchOptimizer implementation and examples in the <a href="https://github.com/MakrooOwais/TorchOptimizer">GitHub repository</a>.</p><p>To install the required dependencies:</p><pre>pip install -r requirements.txt</pre><h3>Conclusion</h3><p>TorchOptimizer simplifies the hyperparameter optimization process for PyTorch Lightning models by combining Bayesian optimization with parallel processing. Its integration with the PyTorch Lightning ecosystem and flexible configuration options make it a valuable tool for profound learning practitioners.</p><p>Whether working on a small model or a large-scale deep learning project, TorchOptimizer can help you find optimal hyperparameters more efficiently than traditional grid or random search methods.</p><p>Give it a try, and let me know your thoughts and experiences in the comments below!</p><p><em>The code examples and implementation details are available in the </em><a href="https://github.com/MakrooOwais/TorchOptimizer"><em>TorchOptimizer repository</em></a><em>. Feel free to contribute or report issues!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31ea4e7b7545" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>