Upload folder using huggingface_hub
Browse files- .ipynb_checkpoints/README-checkpoint.md +57 -67
- README.md +64 -54
.ipynb_checkpoints/README-checkpoint.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
|
| 2 |
# Model description
|
| 3 |
|
| 4 |
-
This is a regression model trained on a 2D white wine quality dataset.
|
| 5 |
|
| 6 |
## Intended uses & limitations
|
| 7 |
|
|
@@ -9,75 +9,62 @@ This model is made for assignment purposes and is not ready to be used in produc
|
|
| 9 |
|
| 10 |
## Training Procedure
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
### Hyperparameters
|
| 15 |
-
|
| 16 |
-
<details>
|
| 17 |
-
<summary> Click to expand </summary>
|
| 18 |
|
| 19 |
-
| Hyperparameter | Value |
|
| 20 |
-
| :------------: | :---: |
|
| 21 |
-
| copy_X | True |
|
| 22 |
-
| fit_intercept | True |
|
| 23 |
-
| n_jobs | None |
|
| 24 |
-
| positive | False |
|
| 25 |
-
|
| 26 |
-
</details>
|
| 27 |
|
| 28 |
### Model Plot
|
| 29 |
|
| 30 |
-
<style>#sk-container-id-
|
| 31 |
-
}#sk-container-id-
|
| 32 |
-
}#sk-container-id-
|
| 33 |
-
}#sk-container-id-
|
| 34 |
-
}#sk-container-id-
|
| 35 |
-
}#sk-container-id-
|
| 36 |
-
}#sk-container-id-
|
| 37 |
}div.sk-parallel-item,
|
| 38 |
div.sk-serial,
|
| 39 |
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;
|
| 40 |
-
}/* Parallel-specific style estimator block */#sk-container-id-
|
| 41 |
-
}#sk-container-id-
|
| 42 |
-
}#sk-container-id-
|
| 43 |
-
}#sk-container-id-
|
| 44 |
-
}#sk-container-id-
|
| 45 |
-
}#sk-container-id-
|
| 46 |
-
}/* Serial-specific style estimator block */#sk-container-id-
|
| 47 |
}/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
|
| 48 |
clickable and can be expanded/collapsed.
|
| 49 |
- Pipeline and ColumnTransformer use this feature and define the default style
|
| 50 |
- Estimators will overwrite some part of the style using the `sk-estimator` class
|
| 51 |
-
*//* Pipeline and ColumnTransformer style (default) */#sk-container-id-
|
| 52 |
}/* Toggleable label */
|
| 53 |
-
#sk-container-id-
|
| 54 |
-
}#sk-container-id-
|
| 55 |
-
}#sk-container-id-
|
| 56 |
-
}/* Toggleable content - dropdown */#sk-container-id-
|
| 57 |
-
}#sk-container-id-
|
| 58 |
-
}#sk-container-id-
|
| 59 |
-
}#sk-container-id-
|
| 60 |
-
}#sk-container-id-
|
| 61 |
-
}#sk-container-id-
|
| 62 |
-
}/* Pipeline/ColumnTransformer-specific style */#sk-container-id-
|
| 63 |
-
}#sk-container-id-
|
| 64 |
}/* Estimator-specific style *//* Colorize estimator box */
|
| 65 |
-
#sk-container-id-
|
| 66 |
-
}#sk-container-id-
|
| 67 |
-
}#sk-container-id-
|
| 68 |
-
#sk-container-id-
|
| 69 |
}/* On hover, darken the color of the background */
|
| 70 |
-
#sk-container-id-
|
| 71 |
}/* Label box, darken color on hover, fitted */
|
| 72 |
-
#sk-container-id-
|
| 73 |
-
}/* Estimator label */#sk-container-id-
|
| 74 |
-
}#sk-container-id-
|
| 75 |
}/* Estimator-specific */
|
| 76 |
-
#sk-container-id-
|
| 77 |
-
}#sk-container-id-
|
| 78 |
}/* on hover */
|
| 79 |
-
#sk-container-id-
|
| 80 |
-
}#sk-container-id-
|
| 81 |
}/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
|
| 82 |
a:link.sk-estimator-doc-link,
|
| 83 |
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: 1ex;/* unfitted */border: var(--sklearn-color-unfitted-level-1) 1pt solid;color: var(--sklearn-color-unfitted-level-1);
|
|
@@ -97,13 +84,13 @@ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
|
|
| 97 |
.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);
|
| 98 |
}.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
|
| 99 |
}.sk-estimator-doc-link:hover span {display: block;
|
| 100 |
-
}/* "?"-specific style due to the `<a>` HTML tag */#sk-container-id-
|
| 101 |
-
}#sk-container-id-
|
| 102 |
}/* On hover */
|
| 103 |
-
#sk-container-id-
|
| 104 |
-
}#sk-container-id-
|
| 105 |
}
|
| 106 |
-
</style><div id="sk-container-id-
|
| 107 |
|
| 108 |
## Evaluation Results
|
| 109 |
|
|
@@ -111,7 +98,13 @@ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
|
|
| 111 |
|
| 112 |
# How to Get Started with the Model
|
| 113 |
|
| 114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
|
| 116 |
# Model Card Authors
|
| 117 |
|
|
@@ -119,17 +112,14 @@ Molly Croes
|
|
| 119 |
|
| 120 |
# Model Card Contact
|
| 121 |
|
| 122 |
-
You can contact the model card authors through
|
| 123 |
-
|
| 124 |
-
|
| 125 |
# Citation
|
| 126 |
|
| 127 |
-
|
| 128 |
|
| 129 |
-
|
| 130 |
-
```
|
| 131 |
-
[More Information Needed]
|
| 132 |
-
```
|
| 133 |
|
| 134 |
# Intended uses & limitations
|
| 135 |
|
|
|
|
| 1 |
|
| 2 |
# Model description
|
| 3 |
|
| 4 |
+
This is a linear regression model trained on a 2D white wine quality dataset from UCI Machine Learning Repo. The goal of this model is to predict white wine quality scores (0-10) based on 11 continuous features.
|
| 5 |
|
| 6 |
## Intended uses & limitations
|
| 7 |
|
|
|
|
| 9 |
|
| 10 |
## Training Procedure
|
| 11 |
|
| 12 |
+
I used the scikit-learn linear regression model for this data by first splitting it into 80% training and 20% testing data, and then 75%/25% split again. The target value is quality and there are 11 numeric features. Evaluation metrics used are MSE and r2 score.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
### Model Plot
|
| 16 |
|
| 17 |
+
<style>#sk-container-id-15 {/* Definition of color scheme common for light and dark mode */--sklearn-color-text: black;--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;}
|
| 18 |
+
}#sk-container-id-15 {color: var(--sklearn-color-text);
|
| 19 |
+
}#sk-container-id-15 pre {padding: 0;
|
| 20 |
+
}#sk-container-id-15 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;
|
| 21 |
+
}#sk-container-id-15 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);
|
| 22 |
+
}#sk-container-id-15 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;
|
| 23 |
+
}#sk-container-id-15 div.sk-text-repr-fallback {display: none;
|
| 24 |
}div.sk-parallel-item,
|
| 25 |
div.sk-serial,
|
| 26 |
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;
|
| 27 |
+
}/* Parallel-specific style estimator block */#sk-container-id-15 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 2px solid var(--sklearn-color-text-on-default-background);flex-grow: 1;
|
| 28 |
+
}#sk-container-id-15 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
|
| 29 |
+
}#sk-container-id-15 div.sk-parallel-item {display: flex;flex-direction: column;
|
| 30 |
+
}#sk-container-id-15 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
|
| 31 |
+
}#sk-container-id-15 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
|
| 32 |
+
}#sk-container-id-15 div.sk-parallel-item:only-child::after {width: 0;
|
| 33 |
+
}/* Serial-specific style estimator block */#sk-container-id-15 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: var(--sklearn-color-background);padding-right: 1em;padding-left: 1em;
|
| 34 |
}/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
|
| 35 |
clickable and can be expanded/collapsed.
|
| 36 |
- Pipeline and ColumnTransformer use this feature and define the default style
|
| 37 |
- Estimators will overwrite some part of the style using the `sk-estimator` class
|
| 38 |
+
*//* Pipeline and ColumnTransformer style (default) */#sk-container-id-15 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);
|
| 39 |
}/* Toggleable label */
|
| 40 |
+
#sk-container-id-15 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.5em;box-sizing: border-box;text-align: center;
|
| 41 |
+
}#sk-container-id-15 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);
|
| 42 |
+
}#sk-container-id-15 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
|
| 43 |
+
}/* Toggleable content - dropdown */#sk-container-id-15 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
|
| 44 |
+
}#sk-container-id-15 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 45 |
+
}#sk-container-id-15 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);
|
| 46 |
+
}#sk-container-id-15 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 47 |
+
}#sk-container-id-15 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
|
| 48 |
+
}#sk-container-id-15 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
|
| 49 |
+
}/* Pipeline/ColumnTransformer-specific style */#sk-container-id-15 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);
|
| 50 |
+
}#sk-container-id-15 div.sk-label.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: var(--sklearn-color-fitted-level-2);
|
| 51 |
}/* Estimator-specific style *//* Colorize estimator box */
|
| 52 |
+
#sk-container-id-15 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
|
| 53 |
+
}#sk-container-id-15 div.sk-estimator.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
|
| 54 |
+
}#sk-container-id-15 div.sk-label label.sk-toggleable__label,
|
| 55 |
+
#sk-container-id-15 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
|
| 56 |
}/* On hover, darken the color of the background */
|
| 57 |
+
#sk-container-id-15 div.sk-label:hover label.sk-toggleable__label {color: var(--sklearn-color-text);background-color: var(--sklearn-color-unfitted-level-2);
|
| 58 |
}/* Label box, darken color on hover, fitted */
|
| 59 |
+
#sk-container-id-15 div.sk-label.fitted:hover label.sk-toggleable__label.fitted {color: var(--sklearn-color-text);background-color: var(--sklearn-color-fitted-level-2);
|
| 60 |
+
}/* Estimator label */#sk-container-id-15 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
|
| 61 |
+
}#sk-container-id-15 div.sk-label-container {text-align: center;
|
| 62 |
}/* Estimator-specific */
|
| 63 |
+
#sk-container-id-15 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);
|
| 64 |
+
}#sk-container-id-15 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 65 |
}/* on hover */
|
| 66 |
+
#sk-container-id-15 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
|
| 67 |
+
}#sk-container-id-15 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
|
| 68 |
}/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
|
| 69 |
a:link.sk-estimator-doc-link,
|
| 70 |
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: 1ex;/* unfitted */border: var(--sklearn-color-unfitted-level-1) 1pt solid;color: var(--sklearn-color-unfitted-level-1);
|
|
|
|
| 84 |
.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);
|
| 85 |
}.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
|
| 86 |
}.sk-estimator-doc-link:hover span {display: block;
|
| 87 |
+
}/* "?"-specific style due to the `<a>` HTML tag */#sk-container-id-15 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;
|
| 88 |
+
}#sk-container-id-15 a.estimator_doc_link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
|
| 89 |
}/* On hover */
|
| 90 |
+
#sk-container-id-15 a.estimator_doc_link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
|
| 91 |
+
}#sk-container-id-15 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
|
| 92 |
}
|
| 93 |
+
</style><div id="sk-container-id-15" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>LinearRegression()</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-15" type="checkbox" checked><label for="sk-estimator-id-15" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted"> LinearRegression<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.5/modules/generated/sklearn.linear_model.LinearRegression.html">?<span>Documentation for LinearRegression</span></a><span class="sk-estimator-doc-link fitted">i<span>Fitted</span></span></label><div class="sk-toggleable__content fitted"><pre>LinearRegression()</pre></div> </div></div></div></div>
|
| 94 |
|
| 95 |
## Evaluation Results
|
| 96 |
|
|
|
|
| 98 |
|
| 99 |
# How to Get Started with the Model
|
| 100 |
|
| 101 |
+
Start by making a notebook for your eval, then use this starter code Dr. Brown provided:
|
| 102 |
+
|
| 103 |
+
from huggingface_hub import hf_hub_download
|
| 104 |
+
hf_hub_download(repo_id="CSC310-fall25/example_decision_tree", filename="model.pkl",local_dir='.')
|
| 105 |
+
dt_loaded = sio.load('model.pkl')
|
| 106 |
+
|
| 107 |
+
from here you can use an scikit-learn estimator to do the rest of your evaluation.
|
| 108 |
|
| 109 |
# Model Card Authors
|
| 110 |
|
|
|
|
| 112 |
|
| 113 |
# Model Card Contact
|
| 114 |
|
| 115 |
+
You can contact the model card authors through:
|
| 116 |
+
molly.croes@uri.edu
|
| 117 |
+
802-498-3717
|
| 118 |
# Citation
|
| 119 |
|
| 120 |
+
This dataset is from UCI Machin Learning Repo, to learn more you can visit this link:
|
| 121 |
|
| 122 |
+
https://archive.ics.uci.edu/dataset/186/wine+quality
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
# Intended uses & limitations
|
| 125 |
|
README.md
CHANGED
|
@@ -11,60 +11,73 @@ This model is made for assignment purposes and is not ready to be used in produc
|
|
| 11 |
|
| 12 |
[More Information Needed]
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
### Model Plot
|
| 16 |
|
| 17 |
-
<style>#sk-container-id-
|
| 18 |
-
}#sk-container-id-
|
| 19 |
-
}#sk-container-id-
|
| 20 |
-
}#sk-container-id-
|
| 21 |
-
}#sk-container-id-
|
| 22 |
-
}#sk-container-id-
|
| 23 |
-
}#sk-container-id-
|
| 24 |
}div.sk-parallel-item,
|
| 25 |
div.sk-serial,
|
| 26 |
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;
|
| 27 |
-
}/* Parallel-specific style estimator block */#sk-container-id-
|
| 28 |
-
}#sk-container-id-
|
| 29 |
-
}#sk-container-id-
|
| 30 |
-
}#sk-container-id-
|
| 31 |
-
}#sk-container-id-
|
| 32 |
-
}#sk-container-id-
|
| 33 |
-
}/* Serial-specific style estimator block */#sk-container-id-
|
| 34 |
}/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
|
| 35 |
clickable and can be expanded/collapsed.
|
| 36 |
- Pipeline and ColumnTransformer use this feature and define the default style
|
| 37 |
- Estimators will overwrite some part of the style using the `sk-estimator` class
|
| 38 |
-
*//* Pipeline and ColumnTransformer style (default) */#sk-container-id-
|
| 39 |
}/* Toggleable label */
|
| 40 |
-
#sk-container-id-
|
| 41 |
-
}#sk-container-id-
|
| 42 |
-
}#sk-container-id-
|
| 43 |
-
}/* Toggleable content - dropdown */#sk-container-id-
|
| 44 |
-
}#sk-container-id-
|
| 45 |
-
}#sk-container-id-
|
| 46 |
-
}#sk-container-id-
|
| 47 |
-
}#sk-container-id-
|
| 48 |
-
}#sk-container-id-
|
| 49 |
-
}/* Pipeline/ColumnTransformer-specific style */#sk-container-id-
|
| 50 |
-
}#sk-container-id-
|
| 51 |
}/* Estimator-specific style *//* Colorize estimator box */
|
| 52 |
-
#sk-container-id-
|
| 53 |
-
}#sk-container-id-
|
| 54 |
-
}#sk-container-id-
|
| 55 |
-
#sk-container-id-
|
| 56 |
}/* On hover, darken the color of the background */
|
| 57 |
-
#sk-container-id-
|
| 58 |
}/* Label box, darken color on hover, fitted */
|
| 59 |
-
#sk-container-id-
|
| 60 |
-
}/* Estimator label */#sk-container-id-
|
| 61 |
-
}#sk-container-id-
|
| 62 |
}/* Estimator-specific */
|
| 63 |
-
#sk-container-id-
|
| 64 |
-
}#sk-container-id-
|
| 65 |
}/* on hover */
|
| 66 |
-
#sk-container-id-
|
| 67 |
-
}#sk-container-id-
|
| 68 |
}/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
|
| 69 |
a:link.sk-estimator-doc-link,
|
| 70 |
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: 1ex;/* unfitted */border: var(--sklearn-color-unfitted-level-1) 1pt solid;color: var(--sklearn-color-unfitted-level-1);
|
|
@@ -84,13 +97,13 @@ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
|
|
| 84 |
.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);
|
| 85 |
}.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
|
| 86 |
}.sk-estimator-doc-link:hover span {display: block;
|
| 87 |
-
}/* "?"-specific style due to the `<a>` HTML tag */#sk-container-id-
|
| 88 |
-
}#sk-container-id-
|
| 89 |
}/* On hover */
|
| 90 |
-
#sk-container-id-
|
| 91 |
-
}#sk-container-id-
|
| 92 |
}
|
| 93 |
-
</style><div id="sk-container-id-
|
| 94 |
|
| 95 |
## Evaluation Results
|
| 96 |
|
|
@@ -98,13 +111,7 @@ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
|
|
| 98 |
|
| 99 |
# How to Get Started with the Model
|
| 100 |
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
from huggingface_hub import hf_hub_download
|
| 104 |
-
hf_hub_download(repo_id="CSC310-fall25/example_decision_tree", filename="model.pkl",local_dir='.')
|
| 105 |
-
dt_loaded = sio.load('model.pkl')
|
| 106 |
-
|
| 107 |
-
from here you can use an scikit-learn estimator to do the rest of your evaluation.
|
| 108 |
|
| 109 |
# Model Card Authors
|
| 110 |
|
|
@@ -112,14 +119,17 @@ Molly Croes
|
|
| 112 |
|
| 113 |
# Model Card Contact
|
| 114 |
|
| 115 |
-
You can contact the model card authors through:
|
| 116 |
-
|
| 117 |
|
| 118 |
# Citation
|
| 119 |
|
| 120 |
-
|
| 121 |
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
# Intended uses & limitations
|
| 125 |
|
|
|
|
| 11 |
|
| 12 |
[More Information Needed]
|
| 13 |
|
| 14 |
+
### Hyperparameters
|
| 15 |
+
|
| 16 |
+
<details>
|
| 17 |
+
<summary> Click to expand </summary>
|
| 18 |
+
|
| 19 |
+
| Hyperparameter | Value |
|
| 20 |
+
| :------------: | :---: |
|
| 21 |
+
| copy_X | True |
|
| 22 |
+
| fit_intercept | True |
|
| 23 |
+
| n_jobs | None |
|
| 24 |
+
| positive | False |
|
| 25 |
+
|
| 26 |
+
</details>
|
| 27 |
|
| 28 |
### Model Plot
|
| 29 |
|
| 30 |
+
<style>#sk-container-id-18 {/* Definition of color scheme common for light and dark mode */--sklearn-color-text: black;--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;}
|
| 31 |
+
}#sk-container-id-18 {color: var(--sklearn-color-text);
|
| 32 |
+
}#sk-container-id-18 pre {padding: 0;
|
| 33 |
+
}#sk-container-id-18 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;
|
| 34 |
+
}#sk-container-id-18 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);
|
| 35 |
+
}#sk-container-id-18 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;
|
| 36 |
+
}#sk-container-id-18 div.sk-text-repr-fallback {display: none;
|
| 37 |
}div.sk-parallel-item,
|
| 38 |
div.sk-serial,
|
| 39 |
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;
|
| 40 |
+
}/* Parallel-specific style estimator block */#sk-container-id-18 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 2px solid var(--sklearn-color-text-on-default-background);flex-grow: 1;
|
| 41 |
+
}#sk-container-id-18 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
|
| 42 |
+
}#sk-container-id-18 div.sk-parallel-item {display: flex;flex-direction: column;
|
| 43 |
+
}#sk-container-id-18 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
|
| 44 |
+
}#sk-container-id-18 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
|
| 45 |
+
}#sk-container-id-18 div.sk-parallel-item:only-child::after {width: 0;
|
| 46 |
+
}/* Serial-specific style estimator block */#sk-container-id-18 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: var(--sklearn-color-background);padding-right: 1em;padding-left: 1em;
|
| 47 |
}/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
|
| 48 |
clickable and can be expanded/collapsed.
|
| 49 |
- Pipeline and ColumnTransformer use this feature and define the default style
|
| 50 |
- Estimators will overwrite some part of the style using the `sk-estimator` class
|
| 51 |
+
*//* Pipeline and ColumnTransformer style (default) */#sk-container-id-18 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);
|
| 52 |
}/* Toggleable label */
|
| 53 |
+
#sk-container-id-18 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.5em;box-sizing: border-box;text-align: center;
|
| 54 |
+
}#sk-container-id-18 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);
|
| 55 |
+
}#sk-container-id-18 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
|
| 56 |
+
}/* Toggleable content - dropdown */#sk-container-id-18 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
|
| 57 |
+
}#sk-container-id-18 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 58 |
+
}#sk-container-id-18 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);
|
| 59 |
+
}#sk-container-id-18 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 60 |
+
}#sk-container-id-18 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
|
| 61 |
+
}#sk-container-id-18 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
|
| 62 |
+
}/* Pipeline/ColumnTransformer-specific style */#sk-container-id-18 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);
|
| 63 |
+
}#sk-container-id-18 div.sk-label.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: var(--sklearn-color-fitted-level-2);
|
| 64 |
}/* Estimator-specific style *//* Colorize estimator box */
|
| 65 |
+
#sk-container-id-18 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
|
| 66 |
+
}#sk-container-id-18 div.sk-estimator.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
|
| 67 |
+
}#sk-container-id-18 div.sk-label label.sk-toggleable__label,
|
| 68 |
+
#sk-container-id-18 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
|
| 69 |
}/* On hover, darken the color of the background */
|
| 70 |
+
#sk-container-id-18 div.sk-label:hover label.sk-toggleable__label {color: var(--sklearn-color-text);background-color: var(--sklearn-color-unfitted-level-2);
|
| 71 |
}/* Label box, darken color on hover, fitted */
|
| 72 |
+
#sk-container-id-18 div.sk-label.fitted:hover label.sk-toggleable__label.fitted {color: var(--sklearn-color-text);background-color: var(--sklearn-color-fitted-level-2);
|
| 73 |
+
}/* Estimator label */#sk-container-id-18 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
|
| 74 |
+
}#sk-container-id-18 div.sk-label-container {text-align: center;
|
| 75 |
}/* Estimator-specific */
|
| 76 |
+
#sk-container-id-18 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);
|
| 77 |
+
}#sk-container-id-18 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 78 |
}/* on hover */
|
| 79 |
+
#sk-container-id-18 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
|
| 80 |
+
}#sk-container-id-18 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
|
| 81 |
}/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
|
| 82 |
a:link.sk-estimator-doc-link,
|
| 83 |
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: 1ex;/* unfitted */border: var(--sklearn-color-unfitted-level-1) 1pt solid;color: var(--sklearn-color-unfitted-level-1);
|
|
|
|
| 97 |
.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);
|
| 98 |
}.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
|
| 99 |
}.sk-estimator-doc-link:hover span {display: block;
|
| 100 |
+
}/* "?"-specific style due to the `<a>` HTML tag */#sk-container-id-18 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;
|
| 101 |
+
}#sk-container-id-18 a.estimator_doc_link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
|
| 102 |
}/* On hover */
|
| 103 |
+
#sk-container-id-18 a.estimator_doc_link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
|
| 104 |
+
}#sk-container-id-18 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
|
| 105 |
}
|
| 106 |
+
</style><div id="sk-container-id-18" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>LinearRegression()</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-18" type="checkbox" checked><label for="sk-estimator-id-18" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted"> LinearRegression<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.5/modules/generated/sklearn.linear_model.LinearRegression.html">?<span>Documentation for LinearRegression</span></a><span class="sk-estimator-doc-link fitted">i<span>Fitted</span></span></label><div class="sk-toggleable__content fitted"><pre>LinearRegression()</pre></div> </div></div></div></div>
|
| 107 |
|
| 108 |
## Evaluation Results
|
| 109 |
|
|
|
|
| 111 |
|
| 112 |
# How to Get Started with the Model
|
| 113 |
|
| 114 |
+
[More Information Needed]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
|
| 116 |
# Model Card Authors
|
| 117 |
|
|
|
|
| 119 |
|
| 120 |
# Model Card Contact
|
| 121 |
|
| 122 |
+
You can contact the model card authors through following channels:
|
| 123 |
+
[More Information Needed]
|
| 124 |
|
| 125 |
# Citation
|
| 126 |
|
| 127 |
+
Below you can find information related to citation.
|
| 128 |
|
| 129 |
+
**BibTeX:**
|
| 130 |
+
```
|
| 131 |
+
[More Information Needed]
|
| 132 |
+
```
|
| 133 |
|
| 134 |
# Intended uses & limitations
|
| 135 |
|