Downloads · 30 days
0
Oriminkowski/booking_value_winner
booking_value_winner is a tabular classification model from Oriminkowski. Use it for the tabular classification task on the model card, and read the license before you ship it in a product.
This project analyzes a large ride-booking dataset to understand the drivers behind Booking Value and creates predictive models. The project follows a complete Data Science lifecycle, initially attempting to predict e…
Downloads · 30 days
0
Access
Public
Updated Dec 10, 2025
Repo size
240 MB
Likes
0
Public
Click a slice to open those files.
.pkl239 MB · 100%
From the Hugging Face model README
This project analyzes a large ride-booking dataset to understand the drivers behind Booking Value and creates predictive models. The project follows a complete Data Science lifecycle, initially attempting to predict exact prices via regression, creating engineered features to capture behavioral patterns, clustering rides, and finally reframing the task into a successful classification problem.
Key Objectives:
Workflow:
EDA → Cleaning → Feature Engineering → Regression → Clustering → Classification → Model Export
Each row in the dataset represents one completed ride.
Key Variables:
Ride_Distance: Distance of the trip.Time & Hour: Temporal features.Driver_Rating & Customer_Rating.Payment_Method.Booking_Value (Price).Cleaning Process:
Through statistical analysis and visualization, we uncovered critical insights about the data distribution.
(Distribution of Booking Value)
(Scatter plot: Booking Value vs. Ride Distance)
Core Insight: >
Booking_Valuedoes NOT correlate strongly with standard ride metrics like distance, hour, or rating in this dataset. This lack of linear correlation explains why standard regression models struggled to predict exact prices.
To improve model performance, we engineered new features to capture non-linear patterns and interactions:
Rush_Hour: Binary flag for peak times.Distance_Category: Binning distances into Short / Medium / Long.Distance_x_Hour: Interaction feature.Ride_Distance² to capture non-linear effects.Cluster_Label: Derived from Unsupervised Learning (K-Means).Distance_to_Centroid: Numerical anomaly measure.We trained three regression models to predict the exact price:
Result: All models achieved an R² score near 0.
Winner: Baseline Linear Regression (simplest model with similar performance to complex ones).
winner_model.pklWe applied K-Means Clustering (k=4) to group rides based on Distance and Ride Time.
Identified Clusters:
(PCA Visualization of Ride Clusters)
These clusters were added as features (Cluster_Label) to the supervised learning models.
Since exact price prediction was not feasible, we reframed the business problem: Can we classify rides as High Value vs. Low Value?
0: Low Value1: High ValueStrategy: Since classes are balanced, Accuracy is a valid metric. However, for business purposes, Recall is prioritized to avoid missing out on High-Value customers (False Negatives).
We trained and evaluated three classifiers:
Metrics Evaluated: Accuracy, Recall, Precision, F1-Score, ROC-AUC.
Reasons for selection:
Confusion Matrix Analysis:

The final models have been serialized and uploaded to this repository.
winner_model.pkl: Best Regression Model (Baseline).best_classifier.pkl: Best Classification Model (Random Forest).You can load the model using Python's pickle module:
import pickle
import pandas as pd
# Load the model
with open("best_classifier.pkl", "rb") as f:
model = pickle.load(f)
# Example: Predict on new data
# Ensure X_sample has the same engineered features as training data
# prediction = model.predict(X_sample)
Conclusion
This project demonstrates a full machine learning workflow: Data cleaning & feature engineering Regression modeling and HuggingFace deployment Task reframing into classification Three classifier evaluations with confusion matrices Main Insights Booking Value cannot be predicted accurately with available features. Classification also performs at chance level. Distance and ratings impact price slightly but do not capture true pricing logic. Random Forest was the most stable model across tasks.
To watch the full 4-minute walkthrough explaining the project, models, insights, and results:
▶ YouTube Video: https://youtu.be/L5VrUY1rL5s
The full code used for data cleaning, EDA, feature engineering, regression, classification, and model export is available here:
🔗 Colab Notebook: https://colab.research.google.com/drive/1EJgBJnDBvAhnixCsTulG9HmPVDMPkIF3#scrollTo=Kw06OJESuWGp