Upload model and model card
Browse files- README.md +36 -0
- gender_classifier.pkl +3 -0
- imputer.pkl +3 -0
README.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- gender-classification
|
| 5 |
+
- advertising
|
| 6 |
+
- lightgbm
|
| 7 |
---
|
| 8 |
+
|
| 9 |
+
# Gender Prediction Model for Targeted Advertising
|
| 10 |
+
|
| 11 |
+
## Model Description
|
| 12 |
+
|
| 13 |
+
LightGBM classifier trained on user behavior data to predict gender (Male/Female) for ad targeting. Achieves **82.3% accuracy** and **0.817 F1-score**.
|
| 14 |
+
|
| 15 |
+
## Features
|
| 16 |
+
|
| 17 |
+
- **User Agent parsing** (browser, OS, mobile/tablet)
|
| 18 |
+
- **Geographic data** (country, region, timezone)
|
| 19 |
+
- **Referer vector components** (10-dimensional embedding)
|
| 20 |
+
- **Time features** (hour, weekday, weekend)
|
| 21 |
+
|
| 22 |
+
## Performance
|
| 23 |
+
|
| 24 |
+
| Metric | Score |
|
| 25 |
+
| --------- | ----- |
|
| 26 |
+
| Accuracy | 0.823 |
|
| 27 |
+
| Precision | 0.805 |
|
| 28 |
+
| Recall | 0.828 |
|
| 29 |
+
| F1-Score | 0.817 |
|
| 30 |
+
|
| 31 |
+
## Usage
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
import joblib
|
| 35 |
+
model = joblib.load('gender_classifier.pkl')
|
| 36 |
+
imputer = joblib.load('imputer.pkl')
|
| 37 |
+
# Preprocess data using same steps as training
|
| 38 |
+
# Then predict
|
| 39 |
+
```
|
gender_classifier.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:834581ceabf8e62c88b1daa8583e164c3d516965d8668968a13881e339e745bf
|
| 3 |
+
size 3483364
|
imputer.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a33d01b5f7d4fbc7c959de5eb02cabda1da1f3c5c3557124654bdb2492299f06
|
| 3 |
+
size 1215
|