File size: 2,718 Bytes
27dc39b
d370496
27dc39b
 
 
8a05c65
 
27dc39b
8a05c65
d370496
47c2bba
27dc39b
 
8a05c65
 
27dc39b
8a05c65
27dc39b
8a05c65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
title: Customer Segmentation App
emoji: 🚀
colorFrom: red
colorTo: red
sdk: streamlit
app_file: app.py
pinned: false
short_description: AI-powered customer personality segmentation using K-Means.
license: apache-2.0
sdk_version: 1.55.0
---

# 📊 Customer Personality Segmentation Project
### (Müşteri Kişilik Segmentasyonu Projesi)

This project uses **Machine Learning (K-Means Clustering)** to segment customers based on their income, spending habits, and family structure. It helps businesses understand their customer base to create targeted marketing strategies.

Bu proje, müşterileri gelir, harcama alışkanlıkları ve aile yapılarına göre segmentlere ayırmak için **Makine Öğrenmesi (K-Means Kümeleme)** kullanır. İşletmelerin hedef odaklı pazarlama stratejileri oluşturmasına yardımcı olur.

---

## 🛠 Features / Özellikler
* **Data Preprocessing:** Handling missing values and feature engineering.
* **Clustering Models:** Comparison between **K-Means** and **DBSCAN**.
* **Model Selection:** Optimized with **Silhouette Score** ($0.28$) and **Elbow Method**.
* **Interactive UI:** A Streamlit web application with real-time predictions and visual effects.

* **Veri Ön İşleme:** Eksik verilerin temizlenmesi ve yeni özelliklerin oluşturulması.
* **Kümeleme Modelleri:** **K-Means** ve **DBSCAN** modellerinin karşılaştırılması.
* **Model Seçimi:** **Silhouette Skoru** ($0.28$) ve **Elbow Metodu** ile optimizasyon.
* **İnteraktif Arayüz:** Gerçek zamanlı tahminler ve görsel efektler sunan Streamlit uygulaması.

---

## 💎 Customer Segments / Müşteri Segmentleri
The model categorizes customers into 4 main groups:
Model, müşterileri 4 ana grupta sınıflandırır:

1. **Premium:** High income, high spending, no children. (Yüksek gelir, yüksek harcama, çocuksuz.) 🎈
2. **Budget:** Middle income, balanced spending. (Orta gelir, dengeli harcama.)
3. **Occasional:** Low income or infrequent shoppers. (Düşük gelir veya seyrek alışveriş yapanlar.)
4. **Alternative:** Unique spending patterns. (Özel harcama alışkanlıkları olanlar.)

---

## 📖 How to Use / Nasıl Kullanılır?
1. Enter the **Annual Income** (e.g., $110,000).
2. Enter the **Total Spending** (e.g., $3,000).
3. Select the number of **Children**.
4. Click **Predict** to see the magic! 🎈

1. **Yıllık Geliri** girin (Örn: $110,000).
2. **Toplam Harcamayı** girin (Örn: $3,000).
3. **Çocuk Sayısını** seçin.
4. Sihri görmek için **Tahmin Et**'e basın! 🎈

---

## 💻 Tech Stack / Kullanılan Teknolojiler
* **Python** (Pandas, Numpy)
* **Scikit-Learn** (StandardScaler, KMeans)
* **Streamlit** (Web UI)
* **Joblib** (Model Deployment)

---