# pb111/k-means-clustering-project architecture

> Architecture diagram of the GitHub repository pb111/k-means-clustering-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pb111/k-means-clustering-project
- Repository: https://github.com/pb111/k-means-clustering-project

## Overview

This repository is a notebook-based K-Means clustering project using the Facebook Live Sellers in Thailand dataset to identify groups with similar post status types. The documented workflow uses Scikit-Learn and discusses choosing K with the elbow method before interpreting clusters. No notebook source excerpt was provided, so the graph reflects README-documented relationships and does not assume undocumented preprocessing or notebook internals.

Main entry points: [`K-Means Clustering with Python and Scikit-Learn.ipynb`](https://github.com/pb111/k-means-clustering-project/blob/master/K-Means%20Clustering%20with%20Python%20and%20Scikit-Learn.ipynb) (Clustering notebook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Clustering analysis"]
  node_notebook["Clustering notebook"]
end

subgraph group_evaluation["K selection"]
  node_kchoice["Elbow-based K choice"]
end

subgraph group_outputs["Cluster results"]
  node_clusters["Status-type clusters"]
end

node_user(("Analyst"))
node_dataset[("Facebook Live Sellers data")]
node_sklearn["Scikit-Learn"]

node_user -->|"runs"| node_notebook
node_notebook -->|"uses"| node_dataset
node_notebook -->|"implements with"| node_sklearn
node_notebook -->|"compares K"| node_kchoice
node_kchoice -->|"guides clustering"| node_clusters
node_notebook -->|"identifies groups"| node_clusters

click node_notebook "https://github.com/pb111/k-means-clustering-project/blob/master/K-Means%20Clustering%20with%20Python%20and%20Scikit-Learn.ipynb"
click node_kchoice "https://github.com/pb111/k-means-clustering-project/blob/master/K-Means%20Clustering%20with%20Python%20and%20Scikit-Learn.ipynb"
click node_clusters "https://github.com/pb111/k-means-clustering-project/blob/master/K-Means%20Clustering%20with%20Python%20and%20Scikit-Learn.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_notebook toneBlue
class node_kchoice,node_dataset toneAmber
class node_clusters toneMint
class node_user,node_sklearn toneIndigo
```

## Components

### Clustering analysis

- [Clustering notebook](https://github.com/pb111/k-means-clustering-project/blob/master/K-Means%20Clustering%20with%20Python%20and%20Scikit-Learn.ipynb): `K-Means Clustering with Python and Scikit-Learn.ipynb`

### K selection

- [Elbow-based K choice](https://github.com/pb111/k-means-clustering-project/blob/master/K-Means%20Clustering%20with%20Python%20and%20Scikit-Learn.ipynb): `K-Means Clustering with Python and Scikit-Learn.ipynb`

### Cluster results

- [Status-type clusters](https://github.com/pb111/k-means-clustering-project/blob/master/K-Means%20Clustering%20with%20Python%20and%20Scikit-Learn.ipynb): `K-Means Clustering with Python and Scikit-Learn.ipynb`

### Other components

- **Analyst**
- **Facebook Live Sellers data**
- **Scikit-Learn**

## Connections

- Analyst → Clustering notebook: runs (evidence: `README.md`)
- Clustering notebook → Facebook Live Sellers data: uses (evidence: `README.md`)
- Clustering notebook → Scikit-Learn: implements with (evidence: `README.md`)
- Clustering notebook → Elbow-based K choice: compares K (evidence: `README.md`)
- Elbow-based K choice → Status-type clusters: guides clustering (evidence: `README.md`)
- Clustering notebook → Status-type clusters: identifies groups (evidence: `README.md`)
