File size: 2,289 Bytes
f2f3a38 445d142 f2f3a38 445d142 f2f3a38 445d142 f2f3a38 445d142 f2f3a38 445d142 f2f3a38 445d142 f2f3a38 445d142 f2f3a38 445d142 f2f3a38 445d142 f2f3a38 | 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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | ---
library_name: sklearn
tags:
- fairrelay
- logistics
- xgboost
- sklearn
- tabular-classification
- fairness
datasets:
- Cainiao-AI/LaDe-D
license: mit
---
# FairRelay — Fairness Classification Model (ACCEPT vs REOPTIMIZE) (v2)
Part of the **[FairRelay](https://github.com/MUTHUKUMARAN-K-1/FairRelay)** AI logistics platform.
## Model Description
Fairness Classification Model (ACCEPT vs REOPTIMIZE)
**Version**: v2 — Retrained with realistic, harder data to prevent overfitting and improve real-world robustness.
**Type**: XGBoost Pipeline (StandardScaler + XGBoost)
**Task**: Classification
### v2 Improvements Over v1
- **Hidden confounders**: Weather, traffic, building access affect ground truth but aren't in features
- **Heteroscedastic noise**: Harder cases have more unpredictable outcomes
- **Non-linear interactions**: Weight × stairs, packages × rain compound effects
- **Measurement error**: Features have ±5-15% sensor/estimation noise
- **Boundary ambiguity**: Near-threshold cases have noisy labels (simulating dispatcher disagreement)
- **Diverse distributions**: Normal, skewed, bimodal, heavy-tail effort patterns
## Performance
- **Accuracy**: 0.9000
- **F1 Score**: 0.9369
- **Precision**: 0.9266
- **Recall**: 0.9474
- **Train-Test Gap**: 0.0211
- **CV F1 (5-fold)**: 0.9401 ± 0.0012
## Input Features
| Feature | Importance |
|---------|-----------|
| `num_drivers` | 0.0255 |
| `avg_effort` | 0.0151 |
| `std_dev` | 0.1706 |
| `max_gap` | 0.5543 |
| `gini_index` | 0.0585 |
| `min_effort` | 0.0152 |
| `max_effort` | 0.0209 |
| `outlier_count` | 0.0605 |
| `pct_above_avg` | 0.0138 |
| `effort_cv` | 0.0334 |
| `skewness` | 0.0145 |
| `kurtosis` | 0.0176 |
## Usage
```python
from skops import io as sio
from huggingface_hub import hf_hub_download
import numpy as np
model_path = hf_hub_download(repo_id="muthuk1/fairrelay-fairness-classifier", filename="model.skops")
untrusted = sio.get_untrusted_types(file=model_path)
model = sio.load(model_path, trusted=untrusted)
prediction = model.predict(features)
```
## Part of FairRelay
FairRelay is an AI-powered logistics platform for fair load consolidation and dispatch.
Built for **LogisticsNow Hackathon 2026** — Challenge #5: AI Load Consolidation.
## License
MIT
|