Skip to content

Create a K-means clustering algorithm to group customers of a retail store based on their purchase history.

Notifications You must be signed in to change notification settings

rafiyasaheer/PRODIGY_ML_02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

3 Commits
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

PRODIGY_ML_02

Create a K-means clustering algorithm to group customers of a retail store based on their purchase history. Features šŸ“ Data Overview: Inspect raw data, statistics, and missing values.

šŸ“Š Visualizations: See distributions, gender counts, and pairwise plots.

šŸ” Clustering Analysis:

Use Elbow Method to find the optimal number of clusters.

Visualize clusters in 2D (Age vs Spending Score).

Explore interactive 3D Clusters (Age, Income, Spending Score).

How it works

Loads customer data (Mall_Customers.csv).

Uses @st.cache_data for efficient data loading.

Computes clusters with KMeans.

Plots cluster results in 2D and 3D.

Provides simple navigation with Streamlit’s sidebar.

About

Create a K-means clustering algorithm to group customers of a retail store based on their purchase history.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages