muthuk1 commited on
Commit
445d142
·
verified ·
1 Parent(s): 67ef5cf

v2: updated model card

Browse files
Files changed (1) hide show
  1. README.md +36 -36
README.md CHANGED
@@ -1,20 +1,18 @@
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
 
@@ -22,30 +20,46 @@ Part of the **[FairRelay](https://github.com/MUTHUKUMARAN-K-1/FairRelay)** AI lo
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
@@ -53,33 +67,19 @@ Fairness Classification Model (ACCEPT vs REOPTIMIZE)
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
 
 
1
  ---
2
  library_name: sklearn
3
  tags:
4
+ - fairrelay
5
  - logistics
6
  - xgboost
7
  - sklearn
8
+ - tabular-classification
9
  - fairness
 
 
10
  datasets:
11
  - Cainiao-AI/LaDe-D
 
12
  license: mit
13
  ---
14
 
15
+ # FairRelay — Fairness Classification Model (ACCEPT vs REOPTIMIZE) (v2)
16
 
17
  Part of the **[FairRelay](https://github.com/MUTHUKUMARAN-K-1/FairRelay)** AI logistics platform.
18
 
 
20
 
21
  Fairness Classification Model (ACCEPT vs REOPTIMIZE)
22
 
23
+ **Version**: v2 — Retrained with realistic, harder data to prevent overfitting and improve real-world robustness.
24
+
25
+ **Type**: XGBoost Pipeline (StandardScaler + XGBoost)
26
  **Task**: Classification
27
 
28
+ ### v2 Improvements Over v1
29
+
30
+ - **Hidden confounders**: Weather, traffic, building access affect ground truth but aren't in features
31
+ - **Heteroscedastic noise**: Harder cases have more unpredictable outcomes
32
+ - **Non-linear interactions**: Weight × stairs, packages × rain compound effects
33
+ - **Measurement error**: Features have ±5-15% sensor/estimation noise
34
+ - **Boundary ambiguity**: Near-threshold cases have noisy labels (simulating dispatcher disagreement)
35
+ - **Diverse distributions**: Normal, skewed, bimodal, heavy-tail effort patterns
36
+
37
  ## Performance
38
 
39
+ - **Accuracy**: 0.9000
40
+ - **F1 Score**: 0.9369
41
+ - **Precision**: 0.9266
42
+ - **Recall**: 0.9474
43
+ - **Train-Test Gap**: 0.0211
44
+ - **CV F1 (5-fold)**: 0.9401 ± 0.0012
45
 
46
 
47
  ## Input Features
48
 
49
  | Feature | Importance |
50
  |---------|-----------|
51
+ | `num_drivers` | 0.0255 |
52
+ | `avg_effort` | 0.0151 |
53
+ | `std_dev` | 0.1706 |
54
+ | `max_gap` | 0.5543 |
55
+ | `gini_index` | 0.0585 |
56
+ | `min_effort` | 0.0152 |
57
+ | `max_effort` | 0.0209 |
58
+ | `outlier_count` | 0.0605 |
59
+ | `pct_above_avg` | 0.0138 |
60
+ | `effort_cv` | 0.0334 |
61
+ | `skewness` | 0.0145 |
62
+ | `kurtosis` | 0.0176 |
63
 
64
 
65
  ## Usage
 
67
  ```python
68
  from skops import io as sio
69
  from huggingface_hub import hf_hub_download
70
+ import numpy as np
71
 
 
72
  model_path = hf_hub_download(repo_id="muthuk1/fairrelay-fairness-classifier", filename="model.skops")
73
  untrusted = sio.get_untrusted_types(file=model_path)
74
  model = sio.load(model_path, trusted=untrusted)
75
 
 
 
 
76
  prediction = model.predict(features)
77
  ```
78
 
 
 
 
 
 
 
79
  ## Part of FairRelay
80
 
81
+ FairRelay is an AI-powered logistics platform for fair load consolidation and dispatch.
82
+ Built for **LogisticsNow Hackathon 2026** Challenge #5: AI Load Consolidation.
 
 
 
 
 
83
 
84
  ## License
85