<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sandeep Nayak</title>
    <description>The latest articles on DEV Community by Sandeep Nayak (@sandeepnayak).</description>
    <link>https://dev.to/sandeepnayak</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2054170%2F0452c7ee-fed1-4e00-a43e-b678bedef553.JPG</url>
      <title>DEV Community: Sandeep Nayak</title>
      <link>https://dev.to/sandeepnayak</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sandeepnayak"/>
    <language>en</language>
    <item>
      <title>🚀 Integrating Generative A.I. with Systems Thinking for Enhanced Remote Team Efficiency</title>
      <dc:creator>Sandeep Nayak</dc:creator>
      <pubDate>Fri, 24 Jan 2025 14:39:41 +0000</pubDate>
      <link>https://dev.to/sandeepnayak/integrating-generative-ai-with-systems-thinking-for-enhanced-remote-team-efficiency-bbb</link>
      <guid>https://dev.to/sandeepnayak/integrating-generative-ai-with-systems-thinking-for-enhanced-remote-team-efficiency-bbb</guid>
      <description>&lt;p&gt;Remote work has become a powerful force in today’s global business landscape. Yet, many distributed teams still grapple with common challenges, from managing shared leadership to building trust in AI-based decision-making. Recent research by Mohanty, Saeidi, Tippannavar, and Javadnejad (2023) sheds light on how integrating Generative A.I. with Systems Thinking can fundamentally enhance remote collaboration, address bias, and foster better decision-making across the board.&lt;/p&gt;

&lt;p&gt;🧐 Current Challenges&lt;br&gt;
    1.  Shared Leadership: Remote teams often struggle to align leadership roles and responsibilities, leading to siloed decision-making.&lt;br&gt;
    2.  Limited Collaboration Tools: Despite the availability of web conferencing tools like Zoom and Microsoft Teams, teams typically rely on basic features, missing out on the potential for deeper collaboration.&lt;br&gt;
    3.  AI Trust Gap: Many employees remain skeptical about trusting AI-driven insights for critical decisions, fearing biases or misunderstood context.&lt;/p&gt;

&lt;p&gt;These hurdles highlight the necessity of a more holistic approach—one that combines Generative A.I. with Systems Thinking to create a collaborative, trust-centric environment (Mohanty et al., 2023).&lt;/p&gt;

&lt;p&gt;📊 Analysis&lt;br&gt;
    • 54% of industries report a lack of robust AI infrastructure to support collective, shared work.&lt;br&gt;
    • 47% of C-suite executives explicitly seek AI-powered solutions to enhance impartial, data-driven decision-making.&lt;/p&gt;

&lt;p&gt;This growing executive-level appetite for AI solutions underscores an urgent need to bridge technology gaps and harness AI’s power for unbiased collaboration.&lt;/p&gt;

&lt;p&gt;💡 The Changing Situation&lt;/p&gt;

&lt;p&gt;As remote work cultures become the norm rather than the exception, organizations must contend with:&lt;br&gt;
    • Diverse Perspectives: Global, distributed teams bring varied experiences that can enrich decisions—but can also lead to misalignment if not managed properly.&lt;br&gt;
    • Risk of Mistrust: Dependence on digital tools can breed skepticism about whether algorithms truly capture the nuanced needs of human teams.&lt;/p&gt;

&lt;p&gt;A Systems Thinking lens encourages decision-makers to see the interconnections between team members, technology, and organizational dynamics—paving the way for more cohesive and inclusive remote teamwork (Mohanty et al., 2023).&lt;/p&gt;

&lt;p&gt;✅ Proposed Solution&lt;/p&gt;

&lt;p&gt;Based on the research (Mohanty et al., 2023), here’s a strategic roadmap for integrating AI seamlessly into remote workflows:&lt;br&gt;
    1.  AI Plugins for Real-Time Insights&lt;br&gt;
    • Enhance existing platforms like Zoom and Microsoft Teams with AI-driven plugins that filter, analyze, and present live data.&lt;br&gt;
    • Provide actionable insights into project status, team sentiment, and resource allocation.&lt;br&gt;
    2.  Generative AI for Shared Worldviews&lt;br&gt;
    • Employ Generative AI to model different perspectives within a team, consolidating them into cohesive “worldviews.”&lt;br&gt;
    • Align decisions with established guidelines while ensuring no voices go unheard.&lt;br&gt;
    3.  Extended Reality (XR) for Immersive 3D Scenarios&lt;br&gt;
    • Introduce XR-based tools that let remote teams visualize complex projects in three dimensions.&lt;br&gt;
    • Enable intuitive exploration of “what-if” scenarios for more informed decision-making.&lt;/p&gt;

&lt;p&gt;Through these innovations, the technology ceases to be a mere facilitator and becomes an active participant in decision-making processes.&lt;/p&gt;

&lt;p&gt;🌟 Value Creation&lt;br&gt;
    1.  Streamlined Global Perspectives&lt;br&gt;
    • Consolidate multiple viewpoints into a single, coherent decision-making framework.&lt;br&gt;
    2.  AI-Driven Alternatives&lt;br&gt;
    • Foster creativity and adaptability with a self-learning AI that presents relevant options, reducing decision fatigue.&lt;br&gt;
    3.  Bias Reduction&lt;br&gt;
    • Deploy algorithms trained to counteract human bias, resulting in more equitable outcomes.&lt;br&gt;
    4.  Enhanced Trust Across Teams&lt;br&gt;
    • A transparent AI approach that validates human input and clarifies how decisions are derived promotes higher trust levels.&lt;/p&gt;

&lt;p&gt;By leveraging Systems Thinking principles, organizations create an ecosystem where technology, people, and processes continually reinforce each other’s strengths (Mohanty et al., 2023).&lt;/p&gt;

&lt;p&gt;🔮 Future Outlook&lt;br&gt;
    1.  Distributed Work with Stronger Trust&lt;br&gt;
    • AI-driven insights become more intuitive, supporting efficient teamwork irrespective of geographical boundaries.&lt;br&gt;
    2.  A Standardized Decision-Making Framework&lt;br&gt;
    • A universal, AI-enabled methodology helps remote teams tackle critical tasks and projects with consistent rigor.&lt;br&gt;
    3.  Immersive AI Consumption&lt;br&gt;
    • As XR evolves, new ways of interacting with data will emerge, making AI insights more tangible and accessible.&lt;/p&gt;

&lt;p&gt;Ultimately, these advancements promise a future where location is no longer a barrier but a feature, enabling teams to access global talent, diverse perspectives, and robust AI insights effortlessly.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;The path to more efficient remote teamwork lies in weaving together Generative A.I. and Systems Thinking to foster trust, reduce biases, and elevate decision-making processes. By integrating AI plugins into established conferencing tools, adopting immersive XR scenarios, and enabling a shared leadership model through data-driven insights, organizations can redefine how remote teams operate.&lt;/p&gt;

&lt;p&gt;Let’s transform remote team dynamics with AI-driven solutions—creating a workplace that truly embraces the power of diverse perspectives and cutting-edge technology.&lt;/p&gt;

&lt;p&gt;References&lt;br&gt;
Mohanty, J., Saeidi, A., Tippannavar, S., &amp;amp; Javadnejad, F. (2023). Integrating Generative A.I. with Systems Thinking - making remote teams more efficient. &lt;a href="https://doi.org/10.13140/RG.2.2.30388.63366" rel="noopener noreferrer"&gt;https://doi.org/10.13140/RG.2.2.30388.63366&lt;/a&gt;&lt;/p&gt;

</description>
      <category>genai</category>
    </item>
    <item>
      <title>[Unsupervised Clustering #1] How mean can be a Kmean ?</title>
      <dc:creator>Sandeep Nayak</dc:creator>
      <pubDate>Tue, 10 Sep 2024 17:08:26 +0000</pubDate>
      <link>https://dev.to/sandeepnayak/unsupervised-clustering-1-how-mean-can-be-a-kmean--1oe5</link>
      <guid>https://dev.to/sandeepnayak/unsupervised-clustering-1-how-mean-can-be-a-kmean--1oe5</guid>
      <description>&lt;h1&gt;
  
  
  Intuition and simple example
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;K-Means&lt;/strong&gt; is an unsupervised machine learning algorithm used for clustering data into groups based on similarity. It aims to partition data points into 'k' clusters, where each cluster represents a group of data points with similar characteristics. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Intuition&lt;/strong&gt;:&lt;br&gt;
Imagine you have a dataset of points scattered in space. K-Means works by finding 'k' cluster centers in the data such that each point is assigned to the cluster with the nearest center. The centers represent the "average" of the points in their cluster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step-by-Step Explanation&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Initialization&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start with your dataset of data points.&lt;/li&gt;
&lt;li&gt;Choose a value for 'k,' which represents the number of clusters you want to create.&lt;/li&gt;
&lt;li&gt;Randomly initialize 'k' cluster centers in the feature space.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. Assignment Step&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For each data point, calculate the distance (e.g., Euclidean distance) to all cluster centers.&lt;/li&gt;
&lt;li&gt;Assign the data point to the cluster whose center is closest (i.e., the cluster that minimizes the distance).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. Update Step&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Recalculate the cluster centers by taking the mean of all data points assigned to each cluster.&lt;/li&gt;
&lt;li&gt;The new centers become the centroids for their respective clusters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;4. Repeat Assignment and Update&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Repeat the Assignment and Update steps until one of the stopping criteria is met (e.g., a maximum number of iterations or convergence, where cluster assignments and centers no longer change significantly).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Mathematical Explanation&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;Let's illustrate K-Means with a simple mathematical example. Suppose we have a dataset of 2D points:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Data Point     X     Y
-----------------------
Point 1       2.0   3.0
Point 2       2.5   3.5
Point 3       5.0   5.0
Point 4       5.5   4.5
Point 5       6.0   6.0

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And let's say we want to find 2 clusters (k=2):&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Initialization&lt;/strong&gt;:&lt;br&gt;
Randomly initialize two cluster centers, e.g., Center 1 at (2.0, 3.0) and Center 2 at (5.0, 5.0).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Assignment Step&lt;/strong&gt;:&lt;br&gt;
Calculate the distances and assign points to the nearest cluster center:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Point 1 is closer to Center 1.&lt;/li&gt;
&lt;li&gt;Point 2 is closer to Center 1.&lt;/li&gt;
&lt;li&gt;Point 3 is closer to Center 2.&lt;/li&gt;
&lt;li&gt;Point 4 is closer to Center 2.&lt;/li&gt;
&lt;li&gt;Point 5 is closer to Center 2.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Update Step&lt;/strong&gt;:&lt;br&gt;
Recalculate the cluster centers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Center 1: (2.25, 3.25) - the mean of points 1 and 2.&lt;/li&gt;
&lt;li&gt;Center 2: (5.17, 5.17) - the mean of points 3, 4, and 5.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Repeat Assignment and Update&lt;/strong&gt;:&lt;br&gt;
Repeat the Assignment and Update steps until convergence (cluster assignments and centers no longer change significantly).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Code Example&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;Here's a simplified Python code example for K-Means clustering using the scikit-learn library:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;matplotlib.pyplot&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;plt&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;sklearn.cluster&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;KMeans&lt;/span&gt;

&lt;span class="c1"&gt;# Sample dataset
&lt;/span&gt;&lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;([[&lt;/span&gt;&lt;span class="mf"&gt;2.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;3.0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;2.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;3.5&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;5.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;5.0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;5.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;4.5&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;6.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;6.0&lt;/span&gt;&lt;span class="p"&gt;]])&lt;/span&gt;

&lt;span class="c1"&gt;# Create a K-Means clusterer with k = 2
&lt;/span&gt;&lt;span class="n"&gt;kmeans&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;KMeans&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n_clusters&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;random&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max_iter&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Fit the model to the data
&lt;/span&gt;&lt;span class="n"&gt;kmeans&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Get cluster assignments and centers
&lt;/span&gt;&lt;span class="n"&gt;cluster_assignments&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;kmeans&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;labels_&lt;/span&gt;
&lt;span class="n"&gt;cluster_centers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;kmeans&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cluster_centers_&lt;/span&gt;

&lt;span class="c1"&gt;# Plot the original points before clustering
&lt;/span&gt;&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;figure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;figsize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="c1"&gt;# Before clustering
&lt;/span&gt;&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;subplot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scatter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;blue&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Data Points&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;title&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Before Clustering&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;xlabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;X1&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ylabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;X2&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;legend&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;# After clustering with cluster centers
&lt;/span&gt;&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;subplot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scatter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;cluster_assignments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cmap&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;rainbow&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Data Points&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;scatter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cluster_centers&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;cluster_centers&lt;/span&gt;&lt;span class="p"&gt;[:,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;black&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;marker&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;x&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Cluster Centers&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;title&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;After Clustering&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;xlabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;X1&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ylabel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;X2&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;legend&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;# Show plots
&lt;/span&gt;&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tight_layout&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;plt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F28hhckzxt8kcqeflhri8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F28hhckzxt8kcqeflhri8.png" alt="Image description" width="800" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use Cases&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Customer Segmentation: Segmenting customers based on their behavior for targeted marketing.&lt;/li&gt;
&lt;li&gt;Image Compression: Reducing the number of colors in an image by clustering similar colors together.&lt;/li&gt;
&lt;li&gt;Anomaly Detection: Identifying anomalous data points as those that don't belong to any cluster.&lt;/li&gt;
&lt;li&gt;Document Clustering: Grouping similar documents together in text analysis.&lt;/li&gt;
&lt;li&gt;Recommendation Systems: Clustering users or items for collaborative filtering-based recommendations.&lt;/li&gt;
&lt;li&gt;Image Segmentation: Separating an image into meaningful regions or objects based on similarity.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
  </channel>
</rss>
