Pushing model and README files to the repo!
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ pretty_name: Dynamic Pricing Model
|
|
| 19 |
|
| 20 |
# Model description
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
## Intended uses & limitations
|
| 25 |
|
|
@@ -170,11 +170,7 @@ If you use this model, please cite it as follows:
|
|
| 170 |
}
|
| 171 |
```
|
| 172 |
|
| 173 |
-
#
|
| 174 |
-
|
| 175 |
-
This is a regression model trained on the Dynamic Pricing Dataset. It was optimized using grid search with multiple hyperparameters.
|
| 176 |
-
|
| 177 |
-
# ## Intended uses & limitations
|
| 178 |
|
| 179 |
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.
|
| 180 |
|
|
@@ -187,15 +183,32 @@ This regression model is designed to predict the cost of rides based on various
|
|
| 187 |
- **Dataset Specificity**: Performance may degrade if applied to datasets with significantly different distributions.
|
| 188 |
- **Outlier Sensitivity**: Predictions can be affected by extreme values in the dataset.
|
| 189 |
|
| 190 |
-
#
|
| 191 |
|
| 192 |
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.
|
| 193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
# Evaluation
|
| 195 |
|
| 196 |
## Model Coefficients
|
| 197 |
|
| 198 |
-
|
|
|
|
|
|
|
| 199 |
|---------|-------------|
|
| 200 |
| Number_of_Riders | -0.1398 |
|
| 201 |
| Number_of_Drivers | 0.4665 |
|
|
@@ -217,13 +230,15 @@ The model was trained using grid search to optimize hyperparameters. Cross-valid
|
|
| 217 |
|
| 218 |
## Actual vs Predicted
|
| 219 |
|
| 220 |
-
|
|
|
|
|
|
|
| 221 |
|
| 222 |

|
| 223 |
|
| 224 |
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.
|
| 225 |
|
| 226 |
-
# Evaluation
|
| 227 |
|
| 228 |
The model achieved the following results on the test set:
|
| 229 |
- **Mean Absolute Error (MAE)**: 50.32
|
|
|
|
| 19 |
|
| 20 |
# Model description
|
| 21 |
|
| 22 |
+
This is a regression model trained on the Dynamic Pricing Dataset. It was optimized using grid search with multiple hyperparameters.
|
| 23 |
|
| 24 |
## Intended uses & limitations
|
| 25 |
|
|
|
|
| 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 |
|
|
|
|
| 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 |
+
|
| 192 |
+
### Hyperparameters:
|
| 193 |
+
|
| 194 |
+
- alpha: 1
|
| 195 |
+
- copy_X: True
|
| 196 |
+
- fit_intercept: False
|
| 197 |
+
- max_iter: 1000
|
| 198 |
+
- positive: False
|
| 199 |
+
- precompute: False
|
| 200 |
+
- random_state: None
|
| 201 |
+
- selection: cyclic
|
| 202 |
+
- tol: 0.0001
|
| 203 |
+
- warm_start: False
|
| 204 |
+
|
| 205 |
# Evaluation
|
| 206 |
|
| 207 |
## Model Coefficients
|
| 208 |
|
| 209 |
+
### Model Coefficients:
|
| 210 |
+
|
| 211 |
+
| Feature | Coefficient |
|
| 212 |
|---------|-------------|
|
| 213 |
| Number_of_Riders | -0.1398 |
|
| 214 |
| Number_of_Drivers | 0.4665 |
|
|
|
|
| 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
|