Pushing model and README files to the repo!
Browse files
README.md
CHANGED
|
@@ -136,31 +136,56 @@ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
|
|
| 136 |
|
| 137 |
# How to Get Started with the Model
|
| 138 |
|
| 139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
|
| 141 |
# Model Card Authors
|
| 142 |
|
| 143 |
-
This model card
|
| 144 |
-
|
| 145 |
-
[More Information Needed]
|
| 146 |
|
| 147 |
# Model Card Contact
|
| 148 |
|
| 149 |
-
|
| 150 |
-
[More Information Needed]
|
| 151 |
|
| 152 |
# Citation
|
| 153 |
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
**BibTeX:**
|
| 157 |
```
|
| 158 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
```
|
| 160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
# Training Procedure
|
| 162 |
|
| 163 |
-
The model was trained using grid search to optimize hyperparameters.
|
| 164 |
|
| 165 |
# Hyperparameters
|
| 166 |
|
|
@@ -205,4 +230,18 @@ The model was trained using grid search to optimize hyperparameters.
|
|
| 205 |
|
| 206 |
## Actual vs Predicted
|
| 207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
|
| 137 |
# How to Get Started with the Model
|
| 138 |
|
| 139 |
+
To use this model:
|
| 140 |
+
1. **Install Dependencies**: Ensure `scikit-learn` and `pandas` are installed in your environment.
|
| 141 |
+
2. **Load the Model**: Download the saved model file and load it using `joblib`:
|
| 142 |
+
```python
|
| 143 |
+
from joblib import load
|
| 144 |
+
model = load('best_model.joblib')
|
| 145 |
+
```
|
| 146 |
+
3. **Prepare Input Features**: Create a DataFrame with the required input features in the same format as the training dataset.
|
| 147 |
+
4. **Make Predictions**: Use the `predict` method to generate predictions:
|
| 148 |
+
```python
|
| 149 |
+
predictions = model.predict(input_features)
|
| 150 |
+
```
|
| 151 |
|
| 152 |
# Model Card Authors
|
| 153 |
|
| 154 |
+
This model card was written by **Pranav Sharma**.
|
|
|
|
|
|
|
| 155 |
|
| 156 |
# Model Card Contact
|
| 157 |
|
| 158 |
+
For inquiries or feedback, you can contact the author via **[GitHub](https://github.com/PranavSharma)**.
|
|
|
|
| 159 |
|
| 160 |
# Citation
|
| 161 |
|
| 162 |
+
If you use this model, please cite it as follows:
|
|
|
|
|
|
|
| 163 |
```
|
| 164 |
+
@model{pranav_sharma_dynamic_pricing_model_2025,
|
| 165 |
+
author = {Pranav Sharma},
|
| 166 |
+
title = {Dynamic Pricing Model},
|
| 167 |
+
year = {2025},
|
| 168 |
+
version = {1.0.0},
|
| 169 |
+
url = {https://huggingface.co/PranavSharma/dynamic-pricing-model}
|
| 170 |
+
}
|
| 171 |
```
|
| 172 |
|
| 173 |
+
# Intended Uses & Limitations
|
| 174 |
+
|
| 175 |
+
This regression model is designed to predict the cost of rides based on various features such as expected ride duration, number of drivers, and time of booking.
|
| 176 |
+
|
| 177 |
+
**Intended Uses**:
|
| 178 |
+
- **Dynamic Pricing Analysis**: Helps optimize pricing strategies for ride-hailing platforms.
|
| 179 |
+
- **Demand Forecasting**: Supports business decisions by estimating cost trends based on ride-specific parameters.
|
| 180 |
+
|
| 181 |
+
**Limitations**:
|
| 182 |
+
- **Feature Dependence**: The model's accuracy is highly dependent on the input features provided.
|
| 183 |
+
- **Dataset Specificity**: Performance may degrade if applied to datasets with significantly different distributions.
|
| 184 |
+
- **Outlier Sensitivity**: Predictions can be affected by extreme values in the dataset.
|
| 185 |
+
|
| 186 |
# Training Procedure
|
| 187 |
|
| 188 |
+
The model was trained using grid search to optimize hyperparameters. Cross-validation (5-fold) was performed to ensure robust evaluation. The best model was selected based on the lowest Mean Absolute Error (MAE) on the validation set.
|
| 189 |
|
| 190 |
# Hyperparameters
|
| 191 |
|
|
|
|
| 230 |
|
| 231 |
## Actual vs Predicted
|
| 232 |
|
| 233 |
+
### Actual vs Predicted Plot
|
| 234 |
+
|
| 235 |
+
The following plot shows the relationship between the actual and predicted values. The closer the points are to the diagonal line, the better the predictions. The dashed line represents the ideal case where predictions perfectly match the actual values.
|
| 236 |
+
|
| 237 |

|
| 238 |
+
|
| 239 |
+
The scatter plot above shows the predicted values against the actual values. The dashed line represents the ideal predictions where the predicted values are equal to the actual values.
|
| 240 |
+
|
| 241 |
+
# Evaluation Results
|
| 242 |
+
|
| 243 |
+
The model achieved the following results on the test set:
|
| 244 |
+
- **Mean Absolute Error (MAE)**: 50.32
|
| 245 |
+
- **R² Score**: 0.89
|
| 246 |
+
|
| 247 |
+
Refer to the plots and tables for detailed performance insights.
|