<?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 Ritzke Aisyarah on Medium]]></title>
        <description><![CDATA[Stories by Ritzke Aisyarah on Medium]]></description>
        <link>https://medium.com/@raisyarah?source=rss-ce4b60108052------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ywlp8qigk4l1WJ7zsxxnKQ@2x.jpeg</url>
            <title>Stories by Ritzke Aisyarah on Medium</title>
            <link>https://medium.com/@raisyarah?source=rss-ce4b60108052------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:36:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raisyarah/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 Spent My Career Break Building an App for My Mum.]]></title>
            <link>https://medium.com/@raisyarah/i-spent-my-career-break-building-an-app-for-my-mum-a75403604412?source=rss-ce4b60108052------2</link>
            <guid isPermaLink="false">https://medium.com/p/a75403604412</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-for-good]]></category>
            <category><![CDATA[health-technology]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Ritzke Aisyarah]]></dc:creator>
            <pubDate>Wed, 03 Jun 2026 13:38:53 GMT</pubDate>
            <atom:updated>2026-06-03T13:38:53.510Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Spent My Career Break Building an App for My Mum. Here’s What a PM Learns When the User Is Someone She Loves.</h3><p><em>A dialysis patient, a 500ml fluid limit, and the most honest product feedback I’ve ever received.</em></p><p>My mother drinks 500ml of fluid a day.</p><p>That’s roughly two cups of coffee. Every sip counts — water, soup broth, tea, the juice from her fruit. She has to track all of it, because if she doesn’t, her body pays the price. She’s been on dialysis since earlier this year, and the daily management is relentless: fluid restrictions, a long list of foods she can’t eat, medications at precise times, a dialysis schedule she can’t miss.</p><p>For a long time, I was her informal system. A bunch of questions every day about whether a particular food was safe to consume.</p><p>I’m a Product Manager. I build things that solve real problems. And somewhere between the second and third daily call, it occurred to me: I could build this.</p><p>So I did. During my career break, I built <strong>Asisten Dialisis Bunda</strong> — an AI-powered health companion for dialysis patients, in Bahasa Indonesia, designed for an elderly woman who prefers big buttons and has zero patience for confusing UX.</p><p>This is the story of how I built it, what I learned, and why your most demanding user might be someone who loves you.</p><h3>Start With the PRD. Even for an Audience of One.</h3><p>The first thing I did — before writing a single line of code — was write a Product Requirements Document.</p><p>I know how that sounds. A PRD for a one-user app. For my mum.</p><p>But here’s the thing: the PRD wasn’t bureaucracy. It was clarity. Writing it forced me to articulate the real problem (not just “Bunda needs help” but <em>why</em> existing solutions failed her), define what success actually looked like, and think through risks before I hit them.</p><p>The risk register alone saved me. One of the risks I documented was: <em>“AI gives incorrect food guidance — root cause: LLM hallucination — mitigation: add a disclaimer on every response, build a curated local database.”</em> That thinking directly shaped the architecture I ended up with.</p><p>The goals I set were specific and measurable even at n=1:</p><ul><li>Fluid log used ≥ 5 days a week</li><li>≥ 3 food queries asked per week</li><li>Reminder completion rate ≥ 85%</li><li>Caregiver check-in calls reduced from ~3/day to ≤ 1/day</li></ul><p>That last metric is the one I actually care about. Not because I don’t want to talk to my mum — but because if she needs me less for logistics, it means the app is working.</p><h3>Building for the Real User, Not the Imagined One</h3><p>Most products are built for an imagined user. A persona. A composite. Someone you’ve interviewed, maybe, but ultimately a construct.</p><p>I was building for a real person I’ve known my whole life. That changes everything.</p><p>My mum is in her 50s. She uses a basic Android phone. She’s not bad with technology — she uses WhatsApp, she watches YouTube — but she has no patience for anything that requires more than two taps to figure out. If a button is too small, she won’t press it. If a label is in English, she’ll ignore it. If the app doesn’t feel immediately familiar, she’ll put her phone down and call me instead.</p><p>So the design constraints weren’t aesthetic. They were functional requirements:</p><ul><li><strong>Language:</strong> Bahasa Indonesia only. No English labels, no mixed-language UI.</li><li><strong>Button size:</strong> Every interactive element had to be large enough to tap comfortably with one finger.</li><li><strong>Zero onboarding:</strong> She needed to open the app and immediately know what to do.</li><li><strong>No app store:</strong> I wasn’t going to ask her to find and install an app. It had to install from a browser link.</li></ul><p>The solution was a Progressive Web App — a single HTML file hosted on Netlify, installable on Android via “Add to Home Screen.” She opens a link I sent on WhatsApp, taps one button, and it lives on her home screen like any other app.</p><p>No Play Store. No account creation. No password.</p><h3>The Architecture Decision That Saved Me Money and Sanity</h3><p>The original version used AI for everything — including food safety checks. Ask the AI if rendang is safe for dialysis patients, get an answer in Bahasa Indonesia.</p><p>It worked beautifully. Until it didn’t.</p><p>I switched to Google’s Gemini API because it had a free tier. I hit a 429 rate limit error on my very first real query. Not because I was making thousands of requests — because the free tier’s rate limits are per minute, not per day, and even a handful of queries triggered the threshold.</p><p>The lesson wasn’t just “free APIs aren’t free.” It was a product architecture lesson: <strong>AI is expensive and unpredictable for high-frequency, predictable queries.</strong></p><p>So I rebuilt the food checker as a hybrid system. I manually curated a database of 44 common Indonesian foods — nasi putih, tempe, bayam, pisang, rendang, and so on — each with a status (AMAN / BATASI / HINDARI), a plain-language reason, and a practical tip. The database loads instantly, costs nothing, and never hallucinates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*S6qhgI_5NKbkd56W5kbodw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*6pt_Y-czh0y4k3vdPXRLwg.png" /></figure><p>AI only kicks in when a food isn’t in the database. Which means it handles the edge cases — the unusual dishes, the regional foods, the things I didn’t think to include. For those, the AI response is clearly labeled as a suggestion, not a verdict, and always ends with: <em>“Konsultasi dengan dokter atau ahli gizi Bunda untuk panduan personal ya.”</em></p><p>Structured data for the common cases. AI for the long tail. That’s the architecture I’d use again.</p><h3>What I Learned About Product Work</h3><p>Three things I didn’t expect to learn from building a tool for my mum:</p><p><strong>Your most honest user has no incentive to be polite.</strong> Enterprise users soften their feedback. They say “it’s a bit confusing” when they mean “I have no idea what this does.” My mum just puts her phone down. That’s the clearest signal I’ve ever received in a user test.</p><p><strong>Constraints are a gift.</strong> The tight scope — three features, one user, Bahasa Indonesia only — meant every decision was sharp. I never spiraled into feature creep. The PRD’s out-of-scope list was as important as the requirements themselves.</p><p><strong>The real product is trust.</strong> The app isn’t really about fluid tracking or food databases. It’s about whether my mum trusts it enough to use it instead of calling me. That trust is built through accuracy, simplicity, and one honest framing I kept coming back to throughout the build:</p><p><em>This is not a medical device. It’s a memory aid. Not a replacement for her doctor — a replacement for me, when I can’t be there.</em></p><h3>What’s Next</h3><p>The app is live. My mum uses it. The daily call count has dropped.</p><p>This is Project One of my career break. I’m heading to NUS for a Master of Science in Business Analytics this year&#39;s intake (2026), and I’ve decided to use the time before then to keep building things that matter — small or large, as long as they solve a real problem for a real person.</p><p>There’s a v1.1 on the mental roadmap: proper push notifications so the app actually reminds her instead of just listing her schedule, and a backend proxy to handle the API key more securely.</p><p>But honestly, the moment I knew the v1.0 was good enough was when my mum sent me a WhatsApp message that just said: <em>“Tadi nanya sama aplikasinya.”</em></p><p>She asked the app.</p><p>Not me. The app.</p><p>That’s the only success metric that matters.</p><p><em>Asisten Dialisis Bunda was built with Claude (claude.ai) by Anthropic. If you’re a PM curious about the full PRD structure or tech implementation, feel free to reach out.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a75403604412" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Catching the right bus at the right time]]></title>
            <link>https://medium.com/@raisyarah/catching-the-right-bus-at-the-right-time-5ed3b446df49?source=rss-ce4b60108052------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ed3b446df49</guid>
            <dc:creator><![CDATA[Ritzke Aisyarah]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 15:36:58 GMT</pubDate>
            <atom:updated>2025-07-30T15:36:58.006Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, it’s me again and it’s been a long since my last post~ and.. this time i’m not writing about code or book review.. but a moment i’ve been thinking lately</p><p>Last weekend, I planned to get a bowl of <em>mie ayam</em> from a local spot in town.</p><p>To get there, I decided to take the local bus — the one that stops near my neighborhood and heads toward the market area. According to the schedule, the next bus was supposed to arrive at 10:37 AM.</p><p>At 10:27, I started walking about 500 meters to the nearest stop.</p><p>But then, from a distance, I saw a bus passing by.</p><p>A little panic set in.<br>I picked up my pace, tried to jog toward it… but yeah, I missed it.</p><p>“Well, that’s that,” I thought.</p><p>But then I paused.<br>Wait, did I even check where that bus was going?</p><p>Just to be sure, I opened the live tracker app on my phone.<br>Turned out, the one I saw wasn’t even going toward my destination — it was heading somewhere completely different.</p><p>And then, right on time, at exactly 10:37, <em>my</em> bus arrived. The one I actually needed.</p><p>But this story isn’t really about the bus.</p><p>It’s about timing. And trust.</p><p>Sometimes we feel like we’ve missed something important.<br>An opportunity. A moment. A path we were supposed to take.</p><p>We panic. We chase. We beat ourselves up.</p><p>But maybe — just maybe — that thing we missed wasn’t meant for us.<br>Not our direction. Not our schedule. Not our ride.</p><p>Sometimes all we need is to pause, breathe, and trust:<br><strong>You’re not late. You’re not behind. You’re exactly where you’re meant to be.</strong></p><p>No rush.</p><p>You’ll get there — right on time.</p><p>🫶🏻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ed3b446df49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Book Review: Why We Have to Think Like the Problem-Solving Kids]]></title>
            <link>https://medium.com/@raisyarah/a-book-review-why-we-have-to-think-like-the-problem-solving-kids-b7d97d076361?source=rss-ce4b60108052------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7d97d076361</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[book-review]]></category>
            <dc:creator><![CDATA[Ritzke Aisyarah]]></dc:creator>
            <pubDate>Sat, 11 May 2024 17:10:08 GMT</pubDate>
            <atom:updated>2024-05-11T17:25:04.015Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there! It’s been two years… 🤓 since I last dropped some thoughts on Medium, but I couldn’t resist coming back to share a game-changer with you all *cough*. Really far from my last post (<a href="https://medium.com/@raisyarah/playlist-that-matches-mine-a-spotify-prediction-machine-learning-model-779d5ead0fbf">about machine learning</a>), this time I want to share about the product manager’s secret weapon.</p><p>So, picture this: you’re knee-deep in the world of product management, juggling timelines, stakeholders, and a seemingly endless stream of feature requests. Sound familiar? Well, fear not, because I’ve stumbled upon a little gem that’s about to become your new best friend: <strong>“Problem Solving 101” by Ken Watanabe</strong>.</p><p>Now, I know what you’re thinking. Another self-help book with lofty promises and fancy jargon, right? Wrong. This little book packs a punch, and let me tell you, it’s a game-changer for me (and i hope for you too). See, in the wild world of product management, we’re constantly faced with, you guessed it, problems. Whether it’s a bug in the code, a user experience that’s more confusing than a choose-your-own-adventure novel, or…. <em>something i can not disclose iykyk</em>, problems are our bread and butter. And that’s where “Problem Solving 101” swoops in to save the day.</p><p>So, grab your favorite beverage, play your favorite taylor’s version, kick back, and join me as we dive into the world of problem-solving mastery. Because trust me, once you’ve got these skills under your belt, there’s no problem too big, no bug too pesky. Let’s do this!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_q8nmFkBIhzGFWNKhBdB6A.jpeg" /><figcaption>Problem Solving 101 by Ken Watanabe</figcaption></figure><h4>Part 1. Problem-solving Kid Basics</h4><p><em>“Never too old to become problem-solving kids”</em></p><p>Problem-Solving 101 is a book that invites us to adopt the mindset of “the problem-solving kids.” But who are they exactly? Imagine a group of pint-sized problem-solvers: Ms. Sigh, Mr. Critic, Ms. Dreamer, Mr. Go-Getter, and the problem-solving kids themselves. Each character represents a different approach to tackling challenges.</p><p>Long story short, Ms. Sigh, the eternal pessimist, never seems to make progress, drowning in her own doubts. Mr. Critic, true to his name, shoots down every idea without offering solutions of his own. Ms. Dreamer is full of big dreams but lacks the initiative to turn them into reality. Mr. Go-Getter rushes into action without much thought, believing sheer effort can fix anything.</p><p>And then there are the ✨problem-solving kids✨, our heroes. They dive deep into problems, identify root causes, craft effective plans, and DO THE EXECUTION. They embrace both successes and failures as learning opportunities.</p><h4>Part 2. Rock Bands &amp; Root Causes</h4><p><em>“We all face obstacles as we try to accomplish our goals and dreams”</em></p><p>What can we learn from the problem-solving kids?</p><ul><li>First, understanding the current situation is crucial.</li><li>Then, it’s about digging deep to uncover root causes and</li><li>Crafting a solid action plan.</li><li>Execute until the problem is solved, also making modifications as necessary (because not everything will run in your favor)</li></ul><p>But how do we identify root causes? Ken Watanabe breaks it down for us:</p><ul><li>List potential causes</li><li>Develop hypotheses for the likely root-cause</li><li>Determine the analysis &amp; information required to test the hypothesis</li><li>Analyze to find the true culprit.</li></ul><p>Now, the next part is how the problem-solving kids solve the problem by developing solutions. How do they do that? The problem-solving kids brainstorm a range of ideas, prioritize actions, and create detailed implementation plans.</p><h4>Part 3. Fishy Goals &amp; Solid Achievements</h4><p><em>“Break down a big dream into smaller goals”</em></p><p>Back to the problem-solving kids, they don’t just have big dreams; they also ask themselves questions like, ‘What specifically do I want to achieve? When do I want to achieve it? What specific conditions do I have?’ They break down the big dream into smaller milestones so that no dream is too big to achieve when we can break it down into smaller steps.</p><p>How to achieve such goals?</p><ul><li>Set a clear goal</li><li>Determine the gap between the goal and the current conditions</li><li>Form a hypothesis about how to close the gap and achieve the goal by listing as many options as possible and then selecting the best one</li><li>Check the hypothesis and back to the prev step if the hypothesis is disproved</li></ul><p><em>“the more specific goal the more specific action plan”</em></p><ul><li>THE MOST CRITICAL AND CRUCIAL PART IS EXECUTION. As we all know impact is plan effectiveness x quality of execution ✨</li><li>Also, remember to monitor the progress and revise the plan as necessary to reduce sudden panic (always have backup plans / panic button)</li></ul><h4>Part 4. Soccer School Pros and Cons</h4><p><em>“By considering all options, we do not have any space to regret” </em>😊</p><p>Here are several reasons why we have to consider all the options and break down each with pros and cons:</p><ul><li>We can think of workarounds for things that are out of our control. For example, if a problem-solving kid wants to continue studying at a school that is out of their budget due to high tuition fees, they can explore all possibilities, such as scholarships, to make it work.</li></ul><p><em>“you can change the prophecy if you try to shape it yourself”</em></p><ul><li>There’s less time to worry because we’ve already considered all the options and related actions.</li><li>Essentially, we’re sharpening our thinking by challenging our own perspectives, asking ourselves, “Why this and why not those?”</li></ul><p>Lastly,</p><ul><li>Don&#39;t forget to ask for advice, we do not have to face it all alone</li><li>And remember we all face deadlines, stop over-think and choose the best option for the period of time</li></ul><h4>To wrap up,</h4><p>Embracing the problem-solving kids’ mindset can truly revolutionize how product managers operate. Through curiosity, delving into issues, and crafting inventive solutions, product managers can ensure timely and effective problem-solving, with a lot less stress along the way. Just like the problem-solving kids, they can break down big challenges into manageable steps, test hypotheses, and adjust their approach as needed. So, let’s channel our inner problem-solving kid, face challenges head-on, and pave the way for success in the dynamic world of product management. Remember, with the right mindset and approach, there’s no problem too big to solve.</p><p>Best of luck! 🍀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7d97d076361" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Postgres: Query That Returns the Top 5 Records in a Group]]></title>
            <link>https://medium.com/@raisyarah/postgres-query-that-returns-the-top-5-records-in-a-group-67ed32f46812?source=rss-ce4b60108052------2</link>
            <guid isPermaLink="false">https://medium.com/p/67ed32f46812</guid>
            <category><![CDATA[postgres]]></category>
            <dc:creator><![CDATA[Ritzke Aisyarah]]></dc:creator>
            <pubDate>Sun, 10 Apr 2022 09:34:22 GMT</pubDate>
            <atom:updated>2022-04-10T09:34:22.733Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Using rank over partition function</em></p><p>Hi Folks!</p><p>If you want to write a query that returns the top 5 or <strong><em>n</em></strong> number of the records. This one is an alternative that you can write down in your text editor (ps I use Postgres)</p><p>I use rank () function. <a href="https://www.geeksforgeeks.org/rank-function-in-sql-server/#:~:text=The%20RANK()%20function%20is,the%20first%20row%20is%201.">Rank</a> is a function that could be used to calculate a rank for each row within a partition of a result set.</p><p>Assume that these columns include in the database table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*HD4h88ckBhC2dm1B3SLTaA.png" /></figure><p>Here’s the coding that could return the top 10 stores that have the most contributed to the success order on weekly basis:</p><pre>SELECT *<br>FROM<br>(SELECT date_part(&#39;week&#39;, order_time) AS weekly, store_name, sum(<br>CASE<br>WHEN order_status = &#39;success&#39; THEN<br>1<br>ELSE 0<br>END ) AS contribution, rank ()<br>OVER ( partition by date_part(&#39;week&#39;, order_time)<br>ORDER BY  sum(<br>CASE<br>WHEN order_status = &#39;success&#39; THEN<br>1<br>ELSE 0<br>END ) DESC ) AS ranking<br>FROM orders<br>GROUP BY  store_name, weekly<br>ORDER BY  weekly asc, ranking ASC ) sub<br>WHERE ranking &lt;= 5</pre><p>Okay, that&#39;s all from me! Just leave any comments if there’s any feedback on my coding. Thankyou! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67ed32f46812" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Playlist that matches mine — A Spotify Prediction Machine Learning Model]]></title>
            <link>https://medium.com/@raisyarah/playlist-that-matches-mine-a-spotify-prediction-machine-learning-model-779d5ead0fbf?source=rss-ce4b60108052------2</link>
            <guid isPermaLink="false">https://medium.com/p/779d5ead0fbf</guid>
            <category><![CDATA[spotify]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Ritzke Aisyarah]]></dc:creator>
            <pubDate>Sat, 02 Apr 2022 10:58:01 GMT</pubDate>
            <atom:updated>2022-04-02T10:58:01.042Z</atom:updated>
            <content:encoded><![CDATA[<h3>Playlist that matches mine — A Spotify Prediction Machine Learning Model</h3><p><em>Using Spotify WEB API &amp; K-Means Cluster Model</em></p><p><strong>Introduction</strong></p><p>Hi Folks!</p><p>This is my very first-time writing something on Medium. So, let me introduce myself first. I’m Sarah and I love listening to music. That&#39;s why I love Spotify so much 😁. In my spare time, I like to conduct some interesting projects using Python and or Postgres — and I&#39;m still learning it too ✌️.</p><p>A few days <em>(or weeks or months ahaha I forgot)</em> ago, I tried to make a machine-learning model to predict what songs on a playlist suit my music preference. I used my brother’s playlist as a reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cyT0pbbdCrSsEezVTUZwpg.png" /><figcaption>My Brother’s Playlist</figcaption></figure><p>Just because I love some music on his playlist and I don&#39;t like some of them. So, I tried to compare mine with my brother’s playlist.</p><p><strong>Spotify</strong></p><p>One thing that you have to know, Spotify provides users with a Web API for free! You just need to create a developer account <a href="https://developer.spotify.com/">here</a> and you can deep-dive the information and turn it into beautiful insights!</p><p><strong>Background</strong></p><p>I will use my current-favorite playlist with only 49 songs and I will utilize my playlist to find what song(s) that probably I like from my brother’s playlist. <strong>Note</strong> that you will only get a maximum of 100 songs from Spotify API for each sending request.</p><p>Here we go!</p><p><strong>The first step</strong> — Create a Spotify developer account <a href="https://developer.spotify.com/">here</a></p><p><strong>Second step</strong></p><p>We need to provide the ID of the playlist. We can get the ID by click the three dots -&gt; Share -&gt;Copy link to playlist</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*Nk2rDN8BX92b6t2R_wL1Bw.png" /></figure><p>The ID of the playlist is a string after playlist/ . For example: <a href="https://open.spotify.com/playlist/5vtOyKHHk62IvCvj82bmOw?si=df1d844960184b0d">https://open.spotify.com/playlist/<strong>5vtOyxxxxxxxxxxbmOw</strong>?si=df1d844960184b0d</a>. That “<a href="https://open.spotify.com/playlist/5vtOyKHHk62IvCvj82bmOw?si=df1d844960184b0d"><strong>5vtOyxxxxxxxxxxbmOw</strong></a>” is the playlist ID.</p><p><strong>Third Step</strong></p><p>Now, we are trying to collect the information about the songs in the playlist using this coding</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*z0jKrQfS3UGb22wI1XGknQ.png" /></figure><p><strong>Fourth step</strong></p><p>Now, we will make a model using K-means clustering. If you wondering what is K-means clustering, you can get the theory <a href="https://scikit-learn.org/stable/modules/clustering.html#k-means">here</a>.</p><p>Before performing the k-means cluster, we conduct standardization to align the scales for all numeric variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*27ORPyAIam_L_BqxmYVXJw.png" /></figure><p>Then, to know the number of k that will be optimal, we can use the elbow method</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*AIf-kqrseZLmfNNbuN5w2g.png" /></figure><p>Here’s the plot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*0lLFEP9Qhmqyf4OsXJ3ytw.png" /></figure><p>As we can see, the elbow is not clear, but at least the drop from 1 to 2 is larger than from 2 onwards. So I take k =2 for the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*xX1SIdisfa13r0hevTnbAg.png" /></figure><p>Here’s the number of the songs in each cluster</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*y7HOxSa8bALW5BVbnrrU2Q.png" /></figure><p>If you wondering what the song listed on cluster 1…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*Vl2v5IZv-mIbWCT-PsAcXA.png" /></figure><p><strong>Next step</strong></p><p>Now, we can do the same to the other playlist that we want to predict.</p><p>Here’s the list of the song that are predicted to be in cluster 1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*AcKgVk2tjsyVhUYcNqML8g.png" /></figure><p>Next, we calculate the distance between each song and its respective centroid of the cluster. Here we use Euclidean distance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*xR2Aolo9ZPunA3llVHgyBQ.png" /></figure><p>Here are the top five songs that close to the centroid</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bIEVcyPJq77o6VByXASKjw.png" /></figure><p>Okay, that are the songs that I might like from my brother’s playlist. Brb, I will listen to the songs asap 😁.</p><p><strong>Last but not least</strong></p><p><strong>You can access my coding here</strong> <a href="https://github.com/raisyarahh/spotify-model">https://github.com/raisyarahh/spotify-model</a></p><p>Thank you for reading! 😁</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=779d5ead0fbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>