Spaces:
Sleeping
Sleeping
File size: 1,127 Bytes
256b89c 81efac6 003dd63 256b89c 81efac6 256b89c 81efac6 256b89c 003dd63 256b89c 003dd63 256b89c 003dd63 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | ---
title: AppUserClustering
emoji: 👥✨
colorFrom: indigo
colorTo: gray
sdk: docker
app_port: 8501
tags:
- streamlit
pinned: false
short_description: User segmentation with KMeans clustering
license: mit
---
# 👥✨ KMeans User Segmentation
This Streamlit app performs **user segmentation** using a trained **KMeans clustering model**.
## What it does
- Loads a saved **KMeans model** (`kmeans_user_segmentation.pkl`) and **StandardScaler** (`scaler.pkl`)
- Accepts input via:
- **CSV upload**, or
- **Manual input (demo)**
- Assigns each row to a **cluster**
- Shows:
- cluster distribution
- cluster profile (mean feature values)
- optional PCA 2D visualization
- Allows downloading the results as CSV
## Required CSV columns
Your CSV must contain these columns exactly:
- `Average Screen Time`
- `Average Spent on App (INR)`
- `Ratings`
- `Last Visited Minutes`
- `New Password Request`
## Files in this Space
- `app.py`
- `kmeans_user_segmentation.pkl`
- `scaler.pkl`
- `requirements.txt`
## Note
Clustering is unsupervised: clusters represent **groups of similar behavior**, not ground-truth labels.
|