muthuk1 commited on
Commit
f45970c
·
verified ·
1 Parent(s): d8f5f2e

v2: updated model card

Browse files
Files changed (1) hide show
  1. README.md +32 -34
README.md CHANGED
@@ -1,20 +1,18 @@
1
  ---
2
  library_name: sklearn
3
  tags:
 
4
  - logistics
5
  - xgboost
6
- - route-optimization
7
  - sklearn
8
  - tabular-regression
9
  - workload
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 — Workload Scoring Model
18
 
19
  Part of the **[FairRelay](https://github.com/MUTHUKUMARAN-K-1/FairRelay)** AI logistics platform.
20
 
@@ -22,29 +20,43 @@ Part of the **[FairRelay](https://github.com/MUTHUKUMARAN-K-1/FairRelay)** AI lo
22
 
23
  Workload Scoring Model
24
 
25
- **Type**: XGBRegressor Pipeline
26
- **Framework**: scikit-learn Pipeline + XGBoost
 
27
  **Task**: Regression
28
 
 
 
 
 
 
 
 
 
 
29
  ## Performance
30
 
31
- - **R²**: 0.9969
32
- - **MAE**: 4.2338
33
- - **RMSE**: 5.3418
34
- - **CV R² (5-fold)**: 0.9969 ± 0.0001
 
35
 
36
 
37
  ## Input Features
38
 
39
  | Feature | Importance |
40
  |---------|-----------|
41
- | `num_packages` | 0.0205 |
42
- | `total_weight_kg` | 0.0118 |
43
- | `num_stops` | 0.3539 |
44
- | `avg_fragility` | 0.0035 |
45
- | `total_distance_km` | 0.0008 |
46
- | `route_difficulty_score` | 0.5454 |
47
- | `estimated_time_minutes` | 0.0640 |
 
 
 
48
 
49
 
50
  ## Usage
@@ -52,33 +64,19 @@ Workload Scoring Model
52
  ```python
53
  from skops import io as sio
54
  from huggingface_hub import hf_hub_download
 
55
 
56
- # Download and load
57
  model_path = hf_hub_download(repo_id="muthuk1/fairrelay-workload-scoring", filename="model.skops")
58
  untrusted = sio.get_untrusted_types(file=model_path)
59
  model = sio.load(model_path, trusted=untrusted)
60
 
61
- # Predict
62
- import numpy as np
63
- features = np.array([[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]])
64
  prediction = model.predict(features)
65
  ```
66
 
67
- ## Training Data
68
-
69
- - **Cainiao-AI/LaDe-D**: Real last-mile delivery data from Shanghai (KDD 2023)
70
- - **Africa Synth Last-Mile**: Synthetic Nigerian delivery data
71
- - **FairRelay Synthetic**: Physics-informed synthetic data calibrated to FairRelay's deterministic formulas
72
-
73
  ## Part of FairRelay
74
 
75
- FairRelay is an AI-powered logistics platform for fair load consolidation and dispatch:
76
- - 🚚 5-agent load consolidation pipeline (KMeans + OR-Tools CP-SAT)
77
- - ⚖️ 8-agent fair dispatch pipeline (Gini optimization)
78
- - 📊 XGBoost effort prediction + Thompson Sampling bandit
79
- - 🌱 EV-aware routing with battery constraints
80
-
81
- Built for **LogisticsNow Hackathon 2026** — Challenge #5: AI Load Consolidation
82
 
83
  ## License
84
 
 
1
  ---
2
  library_name: sklearn
3
  tags:
4
+ - fairrelay
5
  - logistics
6
  - xgboost
 
7
  - sklearn
8
  - tabular-regression
9
  - workload
 
10
  datasets:
11
  - Cainiao-AI/LaDe-D
 
12
  license: mit
13
  ---
14
 
15
+ # FairRelay — Workload Scoring Model (v2)
16
 
17
  Part of the **[FairRelay](https://github.com/MUTHUKUMARAN-K-1/FairRelay)** AI logistics platform.
18
 
 
20
 
21
  Workload Scoring Model
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**: Regression
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
+ - **R²**: 0.7536
40
+ - **MAE**: 66.52
41
+ - **RMSE**: 87.59
42
+ - **Train-Test Gap**: 0.0746
43
+ - **CV R² (5-fold)**: 0.7582 ± 0.0031
44
 
45
 
46
  ## Input Features
47
 
48
  | Feature | Importance |
49
  |---------|-----------|
50
+ | `num_packages` | 0.0373 |
51
+ | `total_weight_kg` | 0.0161 |
52
+ | `num_stops` | 0.7064 |
53
+ | `avg_fragility` | 0.0145 |
54
+ | `total_distance_km` | 0.0103 |
55
+ | `route_difficulty_score` | 0.1742 |
56
+ | `estimated_time_minutes` | 0.0101 |
57
+ | `packages_per_stop` | 0.0101 |
58
+ | `weight_per_package` | 0.0116 |
59
+ | `distance_per_stop` | 0.0094 |
60
 
61
 
62
  ## Usage
 
64
  ```python
65
  from skops import io as sio
66
  from huggingface_hub import hf_hub_download
67
+ import numpy as np
68
 
 
69
  model_path = hf_hub_download(repo_id="muthuk1/fairrelay-workload-scoring", filename="model.skops")
70
  untrusted = sio.get_untrusted_types(file=model_path)
71
  model = sio.load(model_path, trusted=untrusted)
72
 
 
 
 
73
  prediction = model.predict(features)
74
  ```
75
 
 
 
 
 
 
 
76
  ## Part of FairRelay
77
 
78
+ FairRelay is an AI-powered logistics platform for fair load consolidation and dispatch.
79
+ Built for **LogisticsNow Hackathon 2026** Challenge #5: AI Load Consolidation.
 
 
 
 
 
80
 
81
  ## License
82