Upload folder using huggingface_hub
Browse files- README.md +46 -0
- features.json +18 -0
- metrics.json +50 -0
- random_forest_classifier.joblib +3 -0
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: scikit-learn
|
| 3 |
+
tags:
|
| 4 |
+
- random-forest
|
| 5 |
+
- classification
|
| 6 |
+
- uber
|
| 7 |
+
- machine-learning
|
| 8 |
+
pipeline_tag: text-classification
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# RandomForestClassifier — Uber Completion (Optimized)
|
| 12 |
+
|
| 13 |
+
Modelo supervisado para predecir el **EstadoUber** (0=Cancelado, 1=Completado)
|
| 14 |
+
derivado de `Booking Status`.
|
| 15 |
+
|
| 16 |
+
## Métricas (test)
|
| 17 |
+
- Accuracy: 0.9549
|
| 18 |
+
- AUC-ROC: 0.9893
|
| 19 |
+
- Matriz de confusión: ver `metrics.json`
|
| 20 |
+
|
| 21 |
+
## Hiperparámetros (GridSearch)
|
| 22 |
+
{
|
| 23 |
+
"max_depth": 15,
|
| 24 |
+
"max_features": "sqrt",
|
| 25 |
+
"min_samples_leaf": 4,
|
| 26 |
+
"min_samples_split": 2,
|
| 27 |
+
"n_estimators": 15
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
## Características usadas
|
| 31 |
+
[
|
| 32 |
+
"Vehicle_Bike",
|
| 33 |
+
"Vehicle_Go Mini",
|
| 34 |
+
"Vehicle_Go Sedan",
|
| 35 |
+
"Vehicle_Premier Sedan",
|
| 36 |
+
"Vehicle_Uber XL",
|
| 37 |
+
"Vehicle_eBike",
|
| 38 |
+
"Pay_Credit Card",
|
| 39 |
+
"Pay_Debit Card",
|
| 40 |
+
"Pay_NoPayment",
|
| 41 |
+
"Pay_UPI",
|
| 42 |
+
"Pay_Uber Wallet",
|
| 43 |
+
"Ride Distance",
|
| 44 |
+
"Booking Value",
|
| 45 |
+
"Avg CTAT"
|
| 46 |
+
]
|
features.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"features": [
|
| 3 |
+
"Vehicle_Bike",
|
| 4 |
+
"Vehicle_Go Mini",
|
| 5 |
+
"Vehicle_Go Sedan",
|
| 6 |
+
"Vehicle_Premier Sedan",
|
| 7 |
+
"Vehicle_Uber XL",
|
| 8 |
+
"Vehicle_eBike",
|
| 9 |
+
"Pay_Credit Card",
|
| 10 |
+
"Pay_Debit Card",
|
| 11 |
+
"Pay_NoPayment",
|
| 12 |
+
"Pay_UPI",
|
| 13 |
+
"Pay_Uber Wallet",
|
| 14 |
+
"Ride Distance",
|
| 15 |
+
"Booking Value",
|
| 16 |
+
"Avg CTAT"
|
| 17 |
+
]
|
| 18 |
+
}
|
metrics.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task": "binary-classification",
|
| 3 |
+
"target": "Uber status (0=Cancelado, 1=Completado)",
|
| 4 |
+
"accuracy": 0.9549,
|
| 5 |
+
"auc_roc": 0.9893298457838143,
|
| 6 |
+
"classification_report": {
|
| 7 |
+
"0.0": {
|
| 8 |
+
"precision": 0.9959522164083325,
|
| 9 |
+
"recall": 0.8849122807017544,
|
| 10 |
+
"f1-score": 0.9371545357424869,
|
| 11 |
+
"support": 11400.0
|
| 12 |
+
},
|
| 13 |
+
"1.0": {
|
| 14 |
+
"precision": 0.9339741331588748,
|
| 15 |
+
"recall": 0.9977956989247312,
|
| 16 |
+
"f1-score": 0.9648306516596917,
|
| 17 |
+
"support": 18600.0
|
| 18 |
+
},
|
| 19 |
+
"accuracy": 0.9549,
|
| 20 |
+
"macro avg": {
|
| 21 |
+
"precision": 0.9649631747836036,
|
| 22 |
+
"recall": 0.9413539898132428,
|
| 23 |
+
"f1-score": 0.9509925937010892,
|
| 24 |
+
"support": 30000.0
|
| 25 |
+
},
|
| 26 |
+
"weighted avg": {
|
| 27 |
+
"precision": 0.9575258047936687,
|
| 28 |
+
"recall": 0.9549,
|
| 29 |
+
"f1-score": 0.954313727611154,
|
| 30 |
+
"support": 30000.0
|
| 31 |
+
}
|
| 32 |
+
},
|
| 33 |
+
"confusion_matrix": [
|
| 34 |
+
[
|
| 35 |
+
10088,
|
| 36 |
+
1312
|
| 37 |
+
],
|
| 38 |
+
[
|
| 39 |
+
41,
|
| 40 |
+
18559
|
| 41 |
+
]
|
| 42 |
+
],
|
| 43 |
+
"best_params": {
|
| 44 |
+
"max_depth": 15,
|
| 45 |
+
"max_features": "sqrt",
|
| 46 |
+
"min_samples_leaf": 4,
|
| 47 |
+
"min_samples_split": 2,
|
| 48 |
+
"n_estimators": 15
|
| 49 |
+
}
|
| 50 |
+
}
|
random_forest_classifier.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01edccfff47dd15bc834e8d796df7ec5743c8a3b6a031add1f111481cb7a9c97
|
| 3 |
+
size 1155721
|