muthuk1 commited on
Commit
f2f3a38
·
verified ·
1 Parent(s): e476342

Add model card for Fairness Classification Model (ACCEPT vs REOPTIMIZE)

Browse files
Files changed (1) hide show
  1. README.md +86 -0
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: sklearn
3
+ tags:
4
+ - tabular-classification
5
+ - logistics
6
+ - xgboost
7
+ - sklearn
8
+ - fairness
9
+ - gini-index
10
+ - fairrelay
11
+ datasets:
12
+ - Cainiao-AI/LaDe-D
13
+ - electricsheepafrica/africa-synth-retail-and-ecommerce-last-mile-delivery-data-nigeria
14
+ license: mit
15
+ ---
16
+
17
+ # FairRelay — Fairness Classification Model (ACCEPT vs REOPTIMIZE)
18
+
19
+ Part of the **[FairRelay](https://github.com/MUTHUKUMARAN-K-1/FairRelay)** AI logistics platform.
20
+
21
+ ## Model Description
22
+
23
+ Fairness Classification Model (ACCEPT vs REOPTIMIZE)
24
+
25
+ **Type**: XGBClassifier Pipeline
26
+ **Framework**: scikit-learn Pipeline + XGBoost
27
+ **Task**: Classification
28
+
29
+ ## Performance
30
+
31
+ - **Accuracy**: 0.9992
32
+ - **F1 Score**: 0.9994
33
+
34
+
35
+ ## Input Features
36
+
37
+ | Feature | Importance |
38
+ |---------|-----------|
39
+ | `num_drivers` | 0.0280 |
40
+ | `avg_effort` | 0.0012 |
41
+ | `std_dev` | 0.2209 |
42
+ | `max_gap` | 0.7071 |
43
+ | `gini_index` | 0.0096 |
44
+ | `min_effort` | 0.0022 |
45
+ | `max_effort` | 0.0012 |
46
+ | `outlier_count` | 0.0179 |
47
+ | `pct_above_avg` | 0.0013 |
48
+ | `effort_cv` | 0.0106 |
49
+
50
+
51
+ ## Usage
52
+
53
+ ```python
54
+ from skops import io as sio
55
+ from huggingface_hub import hf_hub_download
56
+
57
+ # Download and load
58
+ model_path = hf_hub_download(repo_id="muthuk1/fairrelay-fairness-classifier", filename="model.skops")
59
+ untrusted = sio.get_untrusted_types(file=model_path)
60
+ model = sio.load(model_path, trusted=untrusted)
61
+
62
+ # Predict
63
+ import numpy as np
64
+ features = np.array([[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]])
65
+ prediction = model.predict(features)
66
+ ```
67
+
68
+ ## Training Data
69
+
70
+ - **Cainiao-AI/LaDe-D**: Real last-mile delivery data from Shanghai (KDD 2023)
71
+ - **Africa Synth Last-Mile**: Synthetic Nigerian delivery data
72
+ - **FairRelay Synthetic**: Physics-informed synthetic data calibrated to FairRelay's deterministic formulas
73
+
74
+ ## Part of FairRelay
75
+
76
+ FairRelay is an AI-powered logistics platform for fair load consolidation and dispatch:
77
+ - 🚚 5-agent load consolidation pipeline (KMeans + OR-Tools CP-SAT)
78
+ - ⚖️ 8-agent fair dispatch pipeline (Gini optimization)
79
+ - 📊 XGBoost effort prediction + Thompson Sampling bandit
80
+ - 🌱 EV-aware routing with battery constraints
81
+
82
+ Built for **LogisticsNow Hackathon 2026** — Challenge #5: AI Load Consolidation
83
+
84
+ ## License
85
+
86
+ MIT