PranavSharma commited on
Commit
5eb62ae
·
verified ·
1 Parent(s): 5ef7056

Pushing model and README files to the repo!

Browse files
Files changed (3) hide show
  1. README.md +169 -0
  2. best_model.pkl +3 -0
  3. config.json +76 -0
README.md ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - machine-generated
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - en
8
+ license: apache-2.0
9
+ multilinguality: monolingual
10
+ size_categories: 10K<n<100K
11
+ source_datasets:
12
+ - original
13
+ task_categories:
14
+ - regression
15
+ task_ids:
16
+ - dynamic-pricing
17
+ pretty_name: Dynamic Pricing Model
18
+ ---
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
+
26
+ This model is designed for dynamic pricing optimization. It is not production-ready and has known limitations in real-world applications.
27
+
28
+ ## Training Procedure
29
+
30
+ [More Information Needed]
31
+
32
+ ### Hyperparameters
33
+
34
+ <details>
35
+ <summary> Click to expand </summary>
36
+
37
+ | Hyperparameter | Value |
38
+ |------------------|---------|
39
+ | alpha | 1 |
40
+ | copy_X | True |
41
+ | fit_intercept | False |
42
+ | max_iter | 1000 |
43
+ | positive | False |
44
+ | precompute | False |
45
+ | random_state | |
46
+ | selection | cyclic |
47
+ | tol | 0.0001 |
48
+ | warm_start | False |
49
+
50
+ </details>
51
+
52
+ ### Model Plot
53
+
54
+ <style>#sk-container-id-1 {/* Definition of color scheme common for light and dark mode */--sklearn-color-text: #000;--sklearn-color-text-muted: #666;--sklearn-color-line: gray;/* Definition of color scheme for unfitted estimators */--sklearn-color-unfitted-level-0: #fff5e6;--sklearn-color-unfitted-level-1: #f6e4d2;--sklearn-color-unfitted-level-2: #ffe0b3;--sklearn-color-unfitted-level-3: chocolate;/* Definition of color scheme for fitted estimators */--sklearn-color-fitted-level-0: #f0f8ff;--sklearn-color-fitted-level-1: #d4ebff;--sklearn-color-fitted-level-2: #b3dbfd;--sklearn-color-fitted-level-3: cornflowerblue;/* Specific color for light theme */--sklearn-color-text-on-default-background: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, black)));--sklearn-color-background: var(--sg-background-color, var(--theme-background, var(--jp-layout-color0, white)));--sklearn-color-border-box: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, black)));--sklearn-color-icon: #696969;@media (prefers-color-scheme: dark) {/* Redefinition of color scheme for dark theme */--sklearn-color-text-on-default-background: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, white)));--sklearn-color-background: var(--sg-background-color, var(--theme-background, var(--jp-layout-color0, #111)));--sklearn-color-border-box: var(--sg-text-color, var(--theme-code-foreground, var(--jp-content-font-color1, white)));--sklearn-color-icon: #878787;}
55
+ }#sk-container-id-1 {color: var(--sklearn-color-text);
56
+ }#sk-container-id-1 pre {padding: 0;
57
+ }#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;
58
+ }#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed var(--sklearn-color-line);margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: var(--sklearn-color-background);
59
+ }#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }`but bootstrap.min.css set `[hidden] { display: none !important; }`so we also need the `!important` here to be able to override thedefault hidden behavior on the sphinx rendered scikit-learn.org.See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;
60
+ }#sk-container-id-1 div.sk-text-repr-fallback {display: none;
61
+ }div.sk-parallel-item,
62
+ div.sk-serial,
63
+ div.sk-item {/* draw centered vertical line to link estimators */background-image: linear-gradient(var(--sklearn-color-text-on-default-background), var(--sklearn-color-text-on-default-background));background-size: 2px 100%;background-repeat: no-repeat;background-position: center center;
64
+ }/* Parallel-specific style estimator block */#sk-container-id-1 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 2px solid var(--sklearn-color-text-on-default-background);flex-grow: 1;
65
+ }#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
66
+ }#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;
67
+ }#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
68
+ }#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
69
+ }#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;
70
+ }/* Serial-specific style estimator block */#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: var(--sklearn-color-background);padding-right: 1em;padding-left: 1em;
71
+ }/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
72
+ clickable and can be expanded/collapsed.
73
+ - Pipeline and ColumnTransformer use this feature and define the default style
74
+ - Estimators will overwrite some part of the style using the `sk-estimator` class
75
+ *//* Pipeline and ColumnTransformer style (default) */#sk-container-id-1 div.sk-toggleable {/* Default theme specific background. It is overwritten whether we have aspecific estimator or a Pipeline/ColumnTransformer */background-color: var(--sklearn-color-background);
76
+ }/* Toggleable label */
77
+ #sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: flex;width: 100%;margin-bottom: 0;padding: 0.5em;box-sizing: border-box;text-align: center;align-items: start;justify-content: space-between;gap: 0.5em;
78
+ }#sk-container-id-1 label.sk-toggleable__label .caption {font-size: 0.6rem;font-weight: lighter;color: var(--sklearn-color-text-muted);
79
+ }#sk-container-id-1 label.sk-toggleable__label-arrow:before {/* Arrow on the left of the label */content: "▸";float: left;margin-right: 0.25em;color: var(--sklearn-color-icon);
80
+ }#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
81
+ }/* Toggleable content - dropdown */#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
82
+ }#sk-container-id-1 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
83
+ }#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;border-radius: 0.25em;color: var(--sklearn-color-text);/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
84
+ }#sk-container-id-1 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
85
+ }#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
86
+ }#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
87
+ }/* Pipeline/ColumnTransformer-specific style */#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {color: var(--sklearn-color-text);background-color: var(--sklearn-color-unfitted-level-2);
88
+ }#sk-container-id-1 div.sk-label.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: var(--sklearn-color-fitted-level-2);
89
+ }/* Estimator-specific style *//* Colorize estimator box */
90
+ #sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
91
+ }#sk-container-id-1 div.sk-estimator.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
92
+ }#sk-container-id-1 div.sk-label label.sk-toggleable__label,
93
+ #sk-container-id-1 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
94
+ }/* On hover, darken the color of the background */
95
+ #sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {color: var(--sklearn-color-text);background-color: var(--sklearn-color-unfitted-level-2);
96
+ }/* Label box, darken color on hover, fitted */
97
+ #sk-container-id-1 div.sk-label.fitted:hover label.sk-toggleable__label.fitted {color: var(--sklearn-color-text);background-color: var(--sklearn-color-fitted-level-2);
98
+ }/* Estimator label */#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
99
+ }#sk-container-id-1 div.sk-label-container {text-align: center;
100
+ }/* Estimator-specific */
101
+ #sk-container-id-1 div.sk-estimator {font-family: monospace;border: 1px dotted var(--sklearn-color-border-box);border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
102
+ }#sk-container-id-1 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
103
+ }/* on hover */
104
+ #sk-container-id-1 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
105
+ }#sk-container-id-1 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
106
+ }/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
107
+ a:link.sk-estimator-doc-link,
108
+ a:visited.sk-estimator-doc-link {float: right;font-size: smaller;line-height: 1em;font-family: monospace;background-color: var(--sklearn-color-background);border-radius: 1em;height: 1em;width: 1em;text-decoration: none !important;margin-left: 0.5em;text-align: center;/* unfitted */border: var(--sklearn-color-unfitted-level-1) 1pt solid;color: var(--sklearn-color-unfitted-level-1);
109
+ }.sk-estimator-doc-link.fitted,
110
+ a:link.sk-estimator-doc-link.fitted,
111
+ a:visited.sk-estimator-doc-link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
112
+ }/* On hover */
113
+ div.sk-estimator:hover .sk-estimator-doc-link:hover,
114
+ .sk-estimator-doc-link:hover,
115
+ div.sk-label-container:hover .sk-estimator-doc-link:hover,
116
+ .sk-estimator-doc-link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
117
+ }div.sk-estimator.fitted:hover .sk-estimator-doc-link.fitted:hover,
118
+ .sk-estimator-doc-link.fitted:hover,
119
+ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
120
+ .sk-estimator-doc-link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
121
+ }/* Span, style for the box shown on hovering the info icon */
122
+ .sk-estimator-doc-link span {display: none;z-index: 9999;position: relative;font-weight: normal;right: .2ex;padding: .5ex;margin: .5ex;width: min-content;min-width: 20ex;max-width: 50ex;color: var(--sklearn-color-text);box-shadow: 2pt 2pt 4pt #999;/* unfitted */background: var(--sklearn-color-unfitted-level-0);border: .5pt solid var(--sklearn-color-unfitted-level-3);
123
+ }.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
124
+ }.sk-estimator-doc-link:hover span {display: block;
125
+ }/* "?"-specific style due to the `<a>` HTML tag */#sk-container-id-1 a.estimator_doc_link {float: right;font-size: 1rem;line-height: 1em;font-family: monospace;background-color: var(--sklearn-color-background);border-radius: 1rem;height: 1rem;width: 1rem;text-decoration: none;/* unfitted */color: var(--sklearn-color-unfitted-level-1);border: var(--sklearn-color-unfitted-level-1) 1pt solid;
126
+ }#sk-container-id-1 a.estimator_doc_link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
127
+ }/* On hover */
128
+ #sk-container-id-1 a.estimator_doc_link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
129
+ }#sk-container-id-1 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
130
+ }
131
+ </style><div id="sk-container-id-1" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>Lasso(alpha=1, fit_intercept=False)</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class="sk-container" hidden><div class="sk-item"><div class="sk-estimator fitted sk-toggleable"><input class="sk-toggleable__control sk-hidden--visually" id="sk-estimator-id-1" type="checkbox" checked><label for="sk-estimator-id-1" class="sk-toggleable__label fitted sk-toggleable__label-arrow"><div><div>Lasso</div></div><div><a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.6/modules/generated/sklearn.linear_model.Lasso.html">?<span>Documentation for Lasso</span></a><span class="sk-estimator-doc-link fitted">i<span>Fitted</span></span></div></label><div class="sk-toggleable__content fitted"><pre>Lasso(alpha=1, fit_intercept=False)</pre></div> </div></div></div></div>
132
+
133
+ ## Evaluation Results
134
+
135
+ [More Information Needed]
136
+
137
+ # How to Get Started with the Model
138
+
139
+ [More Information Needed]
140
+
141
+ # Model Card Authors
142
+
143
+ This model card is written by following authors:
144
+
145
+ [More Information Needed]
146
+
147
+ # Model Card Contact
148
+
149
+ You can contact the model card authors through following channels:
150
+ [More Information Needed]
151
+
152
+ # Citation
153
+
154
+ Below you can find information related to citation.
155
+
156
+ **BibTeX:**
157
+ ```
158
+ [More Information Needed]
159
+ ```
160
+
161
+ # Evaluation
162
+
163
+ ## Mean Absolute Error (MAE)
164
+
165
+ 50.3193
166
+
167
+ ## R^2 Score
168
+
169
+ 0.8854
best_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:420c05d5d51d778c6da1813ff3c72175de4bcf9bacc32870ad904dddf21e6ee3
3
+ size 1019
config.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sklearn": {
3
+ "columns": [
4
+ "Number_of_Riders",
5
+ "Number_of_Drivers",
6
+ "Location_Category",
7
+ "Customer_Loyalty_Status",
8
+ "Number_of_Past_Rides",
9
+ "Average_Ratings",
10
+ "Time_of_Booking",
11
+ "Vehicle_Type",
12
+ "Expected_Ride_Duration",
13
+ "Historical_Cost_of_Ride"
14
+ ],
15
+ "environment": [
16
+ "scikit-learn"
17
+ ],
18
+ "example_input": {
19
+ "Average_Ratings": [
20
+ 4.47,
21
+ 4.06,
22
+ 3.99
23
+ ],
24
+ "Customer_Loyalty_Status": [
25
+ "Silver",
26
+ "Silver",
27
+ "Silver"
28
+ ],
29
+ "Expected_Ride_Duration": [
30
+ 90,
31
+ 43,
32
+ 76
33
+ ],
34
+ "Historical_Cost_of_Ride": [
35
+ 284.25727302188227,
36
+ 173.87475274940766,
37
+ 329.7954689622466
38
+ ],
39
+ "Location_Category": [
40
+ "Urban",
41
+ "Suburban",
42
+ "Rural"
43
+ ],
44
+ "Number_of_Drivers": [
45
+ 45,
46
+ 39,
47
+ 31
48
+ ],
49
+ "Number_of_Past_Rides": [
50
+ 13,
51
+ 72,
52
+ 0
53
+ ],
54
+ "Number_of_Riders": [
55
+ 90,
56
+ 58,
57
+ 42
58
+ ],
59
+ "Time_of_Booking": [
60
+ "Night",
61
+ "Evening",
62
+ "Afternoon"
63
+ ],
64
+ "Vehicle_Type": [
65
+ "Premium",
66
+ "Economy",
67
+ "Premium"
68
+ ]
69
+ },
70
+ "model": {
71
+ "file": "best_model.pkl"
72
+ },
73
+ "model_format": "pickle",
74
+ "task": "tabular-regression"
75
+ }
76
+ }