PranavSharma commited on
Commit
f6c8af9
·
verified ·
1 Parent(s): 12b2e3b

Pushing model and README files to the repo!

Browse files
Files changed (1) hide show
  1. README.md +39 -58
README.md CHANGED
@@ -141,68 +141,13 @@ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
141
 
142
  ## Evaluation Results
143
 
144
- [More Information Needed]
145
-
146
- # How to Get Started with the Model
147
-
148
- To use this model:
149
- 1. **Install Dependencies**: Ensure `scikit-learn` and `pandas` are installed in your environment.
150
- 2. **Load the Model**: Download the saved model file and load it using `joblib`:
151
- ```python
152
- from joblib import load
153
- model = load('best_model.joblib')
154
- ```
155
- 3. **Prepare Input Features**: Create a DataFrame with the required input features in the same format as the training dataset.
156
- 4. **Make Predictions**: Use the `predict` method to generate predictions:
157
- ```python
158
- predictions = model.predict(input_features)
159
- ```
160
-
161
- # Model Card Authors
162
-
163
- This model card was written by **Pranav Sharma**.
164
-
165
- # Model Card Contact
166
-
167
- For inquiries or feedback, you can contact the author via **[GitHub](https://github.com/PranavSharma)**.
168
-
169
- # Citation
170
-
171
- If you use this model, please cite it as follows:
172
- ```
173
- @model{pranav_sharma_dynamic_pricing_model_2025,
174
- author = {Pranav Sharma},
175
- title = {Dynamic Pricing Model},
176
- year = {2025},
177
- version = {1.0.0},
178
- url = {https://huggingface.co/PranavSharma/dynamic-pricing-model}
179
- }
180
- ```
181
-
182
- # Hyperparameters
183
-
184
- ### Hyperparameters:
185
-
186
- - alpha: 1
187
- - copy_X: True
188
- - fit_intercept: False
189
- - max_iter: 1000
190
- - positive: False
191
- - precompute: False
192
- - random_state: None
193
- - selection: cyclic
194
- - tol: 0.0001
195
- - warm_start: False
196
-
197
- # Evaluation Results
198
-
199
  The model achieved the following results on the test set:
200
  - **Mean Absolute Error (MAE)**: 50.32
201
  - **R² Score**: 0.89
202
 
203
  Refer to the plots and tables for detailed performance insights.
204
 
205
- ## Model Coefficients
206
 
207
  ### Model Coefficients:
208
 
@@ -222,11 +167,11 @@ Refer to the plots and tables for detailed performance insights.
222
  | Time_of_Booking_Night | 0.0000 |
223
  | Vehicle_Type_Premium | 39.5754 |
224
 
225
- ## Regression Equation
226
 
227
  -0.1398 * Number_of_Riders + 0.4665 * Number_of_Drivers + -0.0033 * Number_of_Past_Rides + 3.4973 * Expected_Ride_Duration + -2.4212 * Time_of_Booking_Evening + 39.5754 * Vehicle_Type_Premium
228
 
229
- ## Actual vs Predicted
230
 
231
  ### Actual vs Predicted Plot
232
 
@@ -235,3 +180,39 @@ The following plot shows the relationship between the actual and predicted value
235
  ![Actual vs Predicted Plot](actual_vs_predicted.png)
236
 
237
  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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
 
142
  ## Evaluation Results
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  The model achieved the following results on the test set:
145
  - **Mean Absolute Error (MAE)**: 50.32
146
  - **R² Score**: 0.89
147
 
148
  Refer to the plots and tables for detailed performance insights.
149
 
150
+ ### Model Coefficients
151
 
152
  ### Model Coefficients:
153
 
 
167
  | Time_of_Booking_Night | 0.0000 |
168
  | Vehicle_Type_Premium | 39.5754 |
169
 
170
+ ### Regression Equation
171
 
172
  -0.1398 * Number_of_Riders + 0.4665 * Number_of_Drivers + -0.0033 * Number_of_Past_Rides + 3.4973 * Expected_Ride_Duration + -2.4212 * Time_of_Booking_Evening + 39.5754 * Vehicle_Type_Premium
173
 
174
+ ### Actual vs Predicted
175
 
176
  ### Actual vs Predicted Plot
177
 
 
180
  ![Actual vs Predicted Plot](actual_vs_predicted.png)
181
 
182
  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.
183
+
184
+ # How to Get Started with the Model
185
+
186
+ To use this model:
187
+ 1. **Install Dependencies**: Ensure `scikit-learn` and `pandas` are installed in your environment.
188
+ 2. **Load the Model**: Download the saved model file and load it using `joblib`:
189
+ ```python
190
+ from joblib import load
191
+ model = load('best_model.joblib')
192
+ ```
193
+ 3. **Prepare Input Features**: Create a DataFrame with the required input features in the same format as the training dataset.
194
+ 4. **Make Predictions**: Use the `predict` method to generate predictions:
195
+ ```python
196
+ predictions = model.predict(input_features)
197
+ ```
198
+
199
+ # Model Card Authors
200
+
201
+ This model card was written by **Pranav Sharma**.
202
+
203
+ # Model Card Contact
204
+
205
+ For inquiries or feedback, you can contact the author via **[GitHub](https://github.com/PranavSharma)**.
206
+
207
+ # Citation
208
+
209
+ If you use this model, please cite it as follows:
210
+ ```
211
+ @model{pranav_sharma_dynamic_pricing_model_2025,
212
+ author = {Pranav Sharma},
213
+ title = {Dynamic Pricing Model},
214
+ year = {2025},
215
+ version = {1.0.0},
216
+ url = {https://huggingface.co/PranavSharma/dynamic-pricing-model}
217
+ }
218
+ ```