Instructions to use adarshcod30/margadrishti-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use adarshcod30/margadrishti-models with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("adarshcod30/margadrishti-models", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Publish MargaDrishti models, cards and reports
Browse files
README.md
CHANGED
|
@@ -21,7 +21,8 @@ Live dashboard: **[adarshcod30/margadrishti](https://huggingface.co/spaces/adars
|
|
| 21 |
## Read this before using the numbers
|
| 22 |
|
| 23 |
**These models rank predicted _enforcement demand_, not where illegal parking
|
| 24 |
-
occurs.** `corr(log patrol_hours, log total_captures) = 0.
|
|
|
|
| 25 |
variance in per-cell violation counts is explained by how much patrolling
|
| 26 |
happened there. The project's own
|
| 27 |
[enforcement-bias audit](https://github.com/adarshcod30/MargaDrishti/blob/main/reports/fairness_audit.md)
|
|
@@ -65,11 +66,11 @@ accuracy.
|
|
| 65 |
|
| 66 |
| Target | Best family | Metric | vs strongest baseline |
|
| 67 |
|---|---|---|---|
|
| 68 |
-
| A1 · parking intensity | xgboost | 0.
|
| 69 |
-
| A2 · hotspot |
|
| 70 |
| A3 · capture rejection | xgboost | 0.3088 PR-AUC | *not answerable* |
|
| 71 |
| B1 · clearance duration | xgboost | 0.4990 ± 0.128 | +27.7% |
|
| 72 |
-
| B2 · road closure | catboost | 0.3615 ± 0.071 PR-AUC |
|
| 73 |
| B4 · cause from text | char n-gram + logreg | 0.478 macro-F1 | 10.8× |
|
| 74 |
|
| 75 |
B4's notable result is equity rather than accuracy: **English 0.483 vs Kannada
|
|
|
|
| 21 |
## Read this before using the numbers
|
| 22 |
|
| 23 |
**These models rank predicted _enforcement demand_, not where illegal parking
|
| 24 |
+
occurs.** `corr(log patrol_hours, log total_captures) = 0.96` across all 2,534
|
| 25 |
+
res-9 cells — about 93% of the
|
| 26 |
variance in per-cell violation counts is explained by how much patrolling
|
| 27 |
happened there. The project's own
|
| 28 |
[enforcement-bias audit](https://github.com/adarshcod30/MargaDrishti/blob/main/reports/fairness_audit.md)
|
|
|
|
| 66 |
|
| 67 |
| Target | Best family | Metric | vs strongest baseline |
|
| 68 |
|---|---|---|---|
|
| 69 |
+
| A1 · parking intensity | xgboost | 0.4999 Poisson deviance | **+43.0%** |
|
| 70 |
+
| A2 · hotspot | random forest | 0.1365 PR-AUC | 46.9× base rate (0.291%) |
|
| 71 |
| A3 · capture rejection | xgboost | 0.3088 PR-AUC | *not answerable* |
|
| 72 |
| B1 · clearance duration | xgboost | 0.4990 ± 0.128 | +27.7% |
|
| 73 |
+
| B2 · road closure | catboost | 0.3615 ± 0.071 PR-AUC | 4.1× (8.7% prevalence) |
|
| 74 |
| B4 · cause from text | char n-gram + logreg | 0.478 macro-F1 | 10.8× |
|
| 75 |
|
| 76 |
B4's notable result is equity rather than accuracy: **English 0.483 vs Kannada
|