Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +180 -0
- cluster_comparison.png +0 -0
- config.json +63 -0
- correlation_heatmap.png +3 -0
- model.pkl +3 -0
- test_data.csv +43 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
correlation_heatmap.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Model description
|
| 3 |
+
|
| 4 |
+
K-Means clustering model trained on wheat seeds dataset to identify 3 types of wheat seeds based on 7 morphological features. The model groups seeds into clusters that correspond to different wheat varieties.
|
| 5 |
+
|
| 6 |
+
## Intended uses & limitations
|
| 7 |
+
|
| 8 |
+
[More Information Needed]
|
| 9 |
+
|
| 10 |
+
## Training Procedure
|
| 11 |
+
|
| 12 |
+
[More Information Needed]
|
| 13 |
+
|
| 14 |
+
### Hyperparameters
|
| 15 |
+
|
| 16 |
+
<details>
|
| 17 |
+
<summary> Click to expand </summary>
|
| 18 |
+
|
| 19 |
+
| Hyperparameter | Value |
|
| 20 |
+
| :------------: | :-------: |
|
| 21 |
+
| algorithm | lloyd |
|
| 22 |
+
| copy_x | True |
|
| 23 |
+
| init | k-means++ |
|
| 24 |
+
| max_iter | 300 |
|
| 25 |
+
| n_clusters | 3 |
|
| 26 |
+
| n_init | auto |
|
| 27 |
+
| random_state | 80 |
|
| 28 |
+
| tol | 0.0001 |
|
| 29 |
+
| verbose | 0 |
|
| 30 |
+
|
| 31 |
+
</details>
|
| 32 |
+
|
| 33 |
+
### Model Plot
|
| 34 |
+
|
| 35 |
+
<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;}
|
| 36 |
+
}#sk-container-id-1 {color: var(--sklearn-color-text);
|
| 37 |
+
}#sk-container-id-1 pre {padding: 0;
|
| 38 |
+
}#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;
|
| 39 |
+
}#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);
|
| 40 |
+
}#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;
|
| 41 |
+
}#sk-container-id-1 div.sk-text-repr-fallback {display: none;
|
| 42 |
+
}div.sk-parallel-item,
|
| 43 |
+
div.sk-serial,
|
| 44 |
+
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;
|
| 45 |
+
}/* 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;
|
| 46 |
+
}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
|
| 47 |
+
}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;
|
| 48 |
+
}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
|
| 49 |
+
}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
|
| 50 |
+
}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;
|
| 51 |
+
}/* 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;
|
| 52 |
+
}/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
|
| 53 |
+
clickable and can be expanded/collapsed.
|
| 54 |
+
- Pipeline and ColumnTransformer use this feature and define the default style
|
| 55 |
+
- Estimators will overwrite some part of the style using the `sk-estimator` class
|
| 56 |
+
*//* 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);
|
| 57 |
+
}/* Toggleable label */
|
| 58 |
+
#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;
|
| 59 |
+
}#sk-container-id-1 label.sk-toggleable__label .caption {font-size: 0.6rem;font-weight: lighter;color: var(--sklearn-color-text-muted);
|
| 60 |
+
}#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);
|
| 61 |
+
}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
|
| 62 |
+
}/* Toggleable content - dropdown */#sk-container-id-1 div.sk-toggleable__content {display: none;text-align: left;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
|
| 63 |
+
}#sk-container-id-1 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 64 |
+
}#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);
|
| 65 |
+
}#sk-container-id-1 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 66 |
+
}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */display: block;width: 100%;overflow: visible;
|
| 67 |
+
}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
|
| 68 |
+
}/* 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);
|
| 69 |
+
}#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);
|
| 70 |
+
}/* Estimator-specific style *//* Colorize estimator box */
|
| 71 |
+
#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);
|
| 72 |
+
}#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);
|
| 73 |
+
}#sk-container-id-1 div.sk-label label.sk-toggleable__label,
|
| 74 |
+
#sk-container-id-1 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
|
| 75 |
+
}/* On hover, darken the color of the background */
|
| 76 |
+
#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);
|
| 77 |
+
}/* Label box, darken color on hover, fitted */
|
| 78 |
+
#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);
|
| 79 |
+
}/* Estimator label */#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
|
| 80 |
+
}#sk-container-id-1 div.sk-label-container {text-align: center;
|
| 81 |
+
}/* Estimator-specific */
|
| 82 |
+
#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);
|
| 83 |
+
}#sk-container-id-1 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 84 |
+
}/* on hover */
|
| 85 |
+
#sk-container-id-1 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
|
| 86 |
+
}#sk-container-id-1 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
|
| 87 |
+
}/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
|
| 88 |
+
a:link.sk-estimator-doc-link,
|
| 89 |
+
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);
|
| 90 |
+
}.sk-estimator-doc-link.fitted,
|
| 91 |
+
a:link.sk-estimator-doc-link.fitted,
|
| 92 |
+
a:visited.sk-estimator-doc-link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
|
| 93 |
+
}/* On hover */
|
| 94 |
+
div.sk-estimator:hover .sk-estimator-doc-link:hover,
|
| 95 |
+
.sk-estimator-doc-link:hover,
|
| 96 |
+
div.sk-label-container:hover .sk-estimator-doc-link:hover,
|
| 97 |
+
.sk-estimator-doc-link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
|
| 98 |
+
}div.sk-estimator.fitted:hover .sk-estimator-doc-link.fitted:hover,
|
| 99 |
+
.sk-estimator-doc-link.fitted:hover,
|
| 100 |
+
div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
|
| 101 |
+
.sk-estimator-doc-link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
|
| 102 |
+
}/* Span, style for the box shown on hovering the info icon */
|
| 103 |
+
.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);
|
| 104 |
+
}.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
|
| 105 |
+
}.sk-estimator-doc-link:hover span {display: block;
|
| 106 |
+
}/* "?"-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;
|
| 107 |
+
}#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);
|
| 108 |
+
}/* On hover */
|
| 109 |
+
#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;
|
| 110 |
+
}#sk-container-id-1 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
|
| 111 |
+
}.estimator-table summary {padding: .5rem;font-family: monospace;cursor: pointer;
|
| 112 |
+
}.estimator-table details[open] {padding-left: 0.1rem;padding-right: 0.1rem;padding-bottom: 0.3rem;
|
| 113 |
+
}.estimator-table .parameters-table {margin-left: auto !important;margin-right: auto !important;
|
| 114 |
+
}.estimator-table .parameters-table tr:nth-child(odd) {background-color: #fff;
|
| 115 |
+
}.estimator-table .parameters-table tr:nth-child(even) {background-color: #f6f6f6;
|
| 116 |
+
}.estimator-table .parameters-table tr:hover {background-color: #e0e0e0;
|
| 117 |
+
}.estimator-table table td {border: 1px solid rgba(106, 105, 104, 0.232);
|
| 118 |
+
}.user-set td {color:rgb(255, 94, 0);text-align: left;
|
| 119 |
+
}.user-set td.value pre {color:rgb(255, 94, 0) !important;background-color: transparent !important;
|
| 120 |
+
}.default td {color: black;text-align: left;
|
| 121 |
+
}.user-set td i,
|
| 122 |
+
.default td i {color: black;
|
| 123 |
+
}.copy-paste-icon {background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZD0iTTIwOCAwTDMzMi4xIDBjMTIuNyAwIDI0LjkgNS4xIDMzLjkgMTQuMWw2Ny45IDY3LjljOSA5IDE0LjEgMjEuMiAxNC4xIDMzLjlMNDQ4IDMzNmMwIDI2LjUtMjEuNSA0OC00OCA0OGwtMTkyIDBjLTI2LjUgMC00OC0yMS41LTQ4LTQ4bDAtMjg4YzAtMjYuNSAyMS41LTQ4IDQ4LTQ4ek00OCAxMjhsODAgMCAwIDY0LTY0IDAgMCAyNTYgMTkyIDAgMC0zMiA2NCAwIDAgNDhjMCAyNi41LTIxLjUgNDgtNDggNDhMNDggNTEyYy0yNi41IDAtNDgtMjEuNS00OC00OEwwIDE3NmMwLTI2LjUgMjEuNS00OCA0OC00OHoiLz48L3N2Zz4=);background-repeat: no-repeat;background-size: 14px 14px;background-position: 0;display: inline-block;width: 14px;height: 14px;cursor: pointer;
|
| 124 |
+
}
|
| 125 |
+
</style><body><div id="sk-container-id-1" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>KMeans(n_clusters=3, random_state=80)</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>KMeans</div></div><div><a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.7/modules/generated/sklearn.cluster.KMeans.html">?<span>Documentation for KMeans</span></a><span class="sk-estimator-doc-link fitted">i<span>Fitted</span></span></div></label><div class="sk-toggleable__content fitted" data-param-prefix=""><div class="estimator-table"><details><summary>Parameters</summary><table class="parameters-table"><tbody><tr class="user-set"><td><i class="copy-paste-icon"onclick="copyToClipboard('n_clusters',this.parentElement.nextElementSibling)"></i></td><td class="param">n_clusters </td><td class="value">3</td></tr><tr class="default"><td><i class="copy-paste-icon"onclick="copyToClipboard('init',this.parentElement.nextElementSibling)"></i></td><td class="param">init </td><td class="value">'k-means++'</td></tr><tr class="default"><td><i class="copy-paste-icon"onclick="copyToClipboard('n_init',this.parentElement.nextElementSibling)"></i></td><td class="param">n_init </td><td class="value">'auto'</td></tr><tr class="default"><td><i class="copy-paste-icon"onclick="copyToClipboard('max_iter',this.parentElement.nextElementSibling)"></i></td><td class="param">max_iter </td><td class="value">300</td></tr><tr class="default"><td><i class="copy-paste-icon"onclick="copyToClipboard('tol',this.parentElement.nextElementSibling)"></i></td><td class="param">tol </td><td class="value">0.0001</td></tr><tr class="default"><td><i class="copy-paste-icon"onclick="copyToClipboard('verbose',this.parentElement.nextElementSibling)"></i></td><td class="param">verbose </td><td class="value">0</td></tr><tr class="user-set"><td><i class="copy-paste-icon"onclick="copyToClipboard('random_state',this.parentElement.nextElementSibling)"></i></td><td class="param">random_state </td><td class="value">80</td></tr><tr class="default"><td><i class="copy-paste-icon"onclick="copyToClipboard('copy_x',this.parentElement.nextElementSibling)"></i></td><td class="param">copy_x </td><td class="value">True</td></tr><tr class="default"><td><i class="copy-paste-icon"onclick="copyToClipboard('algorithm',this.parentElement.nextElementSibling)"></i></td><td class="param">algorithm </td><td class="value">'lloyd'</td></tr></tbody></table></details></div></div></div></div></div></div><script>function copyToClipboard(text, element) {// Get the parameter prefix from the closest toggleable contentconst toggleableContent = element.closest('.sk-toggleable__content');const paramPrefix = toggleableContent ? toggleableContent.dataset.paramPrefix : '';const fullParamName = paramPrefix ? `${paramPrefix}${text}` : text;const originalStyle = element.style;const computedStyle = window.getComputedStyle(element);const originalWidth = computedStyle.width;const originalHTML = element.innerHTML.replace('Copied!', '');navigator.clipboard.writeText(fullParamName).then(() => {element.style.width = originalWidth;element.style.color = 'green';element.innerHTML = "Copied!";setTimeout(() => {element.innerHTML = originalHTML;element.style = originalStyle;}, 2000);}).catch(err => {console.error('Failed to copy:', err);element.style.color = 'red';element.innerHTML = "Failed!";setTimeout(() => {element.innerHTML = originalHTML;element.style = originalStyle;}, 2000);});return false;
|
| 126 |
+
}document.querySelectorAll('.fa-regular.fa-copy').forEach(function(element) {const toggleableContent = element.closest('.sk-toggleable__content');const paramPrefix = toggleableContent ? toggleableContent.dataset.paramPrefix : '';const paramName = element.parentElement.nextElementSibling.textContent.trim();const fullParamName = paramPrefix ? `${paramPrefix}${paramName}` : paramName;element.setAttribute('title', fullParamName);
|
| 127 |
+
});
|
| 128 |
+
</script></body>
|
| 129 |
+
|
| 130 |
+
## Evaluation Results
|
| 131 |
+
|
| 132 |
+
[More Information Needed]
|
| 133 |
+
|
| 134 |
+
# How to Get Started with the Model
|
| 135 |
+
|
| 136 |
+
```python
|
| 137 |
+
from huggingface_hub import hf_hub_download
|
| 138 |
+
import skops.io as sio
|
| 139 |
+
import pandas as pd
|
| 140 |
+
|
| 141 |
+
# Download model and test data
|
| 142 |
+
hf_hub_download(repo_id='CSC310-fall25/seeds-clustering', filename='model.pkl', local_dir='.')
|
| 143 |
+
hf_hub_download(repo_id='CSC310-fall25/seeds-clustering', filename='test_data.csv', local_dir='.')
|
| 144 |
+
|
| 145 |
+
# Load model and data
|
| 146 |
+
model = sio.load('model.pkl')
|
| 147 |
+
test_data = pd.read_csv('test_data.csv')
|
| 148 |
+
|
| 149 |
+
# Prepare features (exclude wheat_type for clustering)
|
| 150 |
+
X_test = test_data.drop('wheat_type', axis=1)
|
| 151 |
+
|
| 152 |
+
# Make cluster predictions
|
| 153 |
+
cluster_labels = model.predict(X_test)
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
# Model Card Authors
|
| 157 |
+
|
| 158 |
+
Christian Romualdo
|
| 159 |
+
|
| 160 |
+
# Model Card Contact
|
| 161 |
+
|
| 162 |
+
cromualdo@uri.edu
|
| 163 |
+
|
| 164 |
+
# Citation
|
| 165 |
+
|
| 166 |
+
Wheat Seeds Dataset from UCI Machine Learning Repository
|
| 167 |
+
|
| 168 |
+
# Intended uses & limitations
|
| 169 |
+
|
| 170 |
+
This clustering model is made for educational purposes and identifies 3 wheat seed types. Performance depends on feature scaling and random initialization.
|
| 171 |
+
|
| 172 |
+
# Training Procedure
|
| 173 |
+
|
| 174 |
+
Trained K-Means with 3 clusters on wheat seeds morphological data. Used 80% of data for training, 20% for testing. Evaluation metrics: Silhouette Score and Adjusted Mutual Information (AMI).
|
| 175 |
+
|
| 176 |
+
# Evaluation Results
|
| 177 |
+
|
| 178 |
+
Training Silhouette Score: 0.480
|
| 179 |
+
Adjusted Mutual Information: 0.722
|
| 180 |
+
The model shows good separation between wheat types, with clusters aligning well with true labels as shown in the confusion matrix and scatter plots.
|
cluster_comparison.png
ADDED
|
config.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"sklearn": {
|
| 3 |
+
"columns": [
|
| 4 |
+
"area",
|
| 5 |
+
"perimeter",
|
| 6 |
+
"compactness",
|
| 7 |
+
"length_kernel",
|
| 8 |
+
"width_kernel",
|
| 9 |
+
"asymmetry_coeff",
|
| 10 |
+
"groove_length",
|
| 11 |
+
"wheat_type"
|
| 12 |
+
],
|
| 13 |
+
"environment": [
|
| 14 |
+
"scikit-learn=1.3.2"
|
| 15 |
+
],
|
| 16 |
+
"example_input": {
|
| 17 |
+
"area": [
|
| 18 |
+
15.26,
|
| 19 |
+
14.88,
|
| 20 |
+
18.6
|
| 21 |
+
],
|
| 22 |
+
"perimeter": [
|
| 23 |
+
14.84,
|
| 24 |
+
14.57,
|
| 25 |
+
16.33
|
| 26 |
+
],
|
| 27 |
+
"compactness": [
|
| 28 |
+
0.871,
|
| 29 |
+
0.8811,
|
| 30 |
+
0.8777
|
| 31 |
+
],
|
| 32 |
+
"length_kernel": [
|
| 33 |
+
5.763,
|
| 34 |
+
5.554,
|
| 35 |
+
6.144
|
| 36 |
+
],
|
| 37 |
+
"width_kernel": [
|
| 38 |
+
3.312,
|
| 39 |
+
3.333,
|
| 40 |
+
3.415
|
| 41 |
+
],
|
| 42 |
+
"asymmetry_coeff": [
|
| 43 |
+
2.221,
|
| 44 |
+
1.018,
|
| 45 |
+
0.966
|
| 46 |
+
],
|
| 47 |
+
"groove_length": [
|
| 48 |
+
5.22,
|
| 49 |
+
4.956,
|
| 50 |
+
5.582
|
| 51 |
+
],
|
| 52 |
+
"wheat_type": [
|
| 53 |
+
1,
|
| 54 |
+
2,
|
| 55 |
+
3
|
| 56 |
+
]
|
| 57 |
+
},
|
| 58 |
+
"model": {
|
| 59 |
+
"file": "model.pkl"
|
| 60 |
+
},
|
| 61 |
+
"task": "tabular-clustering"
|
| 62 |
+
}
|
| 63 |
+
}
|
correlation_heatmap.png
ADDED
|
Git LFS Details
|
model.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:449ef710b6314960c624cf3563de37fe9d6ebc1f404597946fc1cf1830595e00
|
| 3 |
+
size 12157
|
test_data.csv
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
area,perimeter,compactness,length_kernel,width_kernel,asymmetry_coeff,groove_length,wheat_type
|
| 2 |
+
18.98,16.57,0.8687,6.449,3.552,2.144,6.453,2
|
| 3 |
+
15.6,15.11,0.858,5.832,3.286,2.725,5.752,2
|
| 4 |
+
17.08,15.38,0.9079,5.832,3.683,2.956,5.484,1
|
| 5 |
+
11.21,13.13,0.8167,5.279,2.687,6.169,5.275,3
|
| 6 |
+
12.49,13.46,0.8658,5.267,2.967,4.421,5.002,3
|
| 7 |
+
19.18,16.63,0.8717,6.369,3.681,3.357,6.229,2
|
| 8 |
+
16.19,15.16,0.8849,5.833,3.421,0.903,5.307,1
|
| 9 |
+
13.16,13.82,0.8662,5.454,2.975,0.8551,5.056,1
|
| 10 |
+
13.54,13.85,0.8871,5.348,3.156,2.587,5.178,1
|
| 11 |
+
16.23,15.18,0.885,5.872,3.472,3.769,5.922,2
|
| 12 |
+
12.1,13.15,0.8793,5.105,2.941,2.201,5.056,3
|
| 13 |
+
11.24,13.0,0.8359,5.09,2.715,3.521,5.088,3
|
| 14 |
+
18.95,16.42,0.8829,6.248,3.755,3.368,6.148,2
|
| 15 |
+
11.14,12.79,0.8558,5.011,2.794,6.388,5.049,3
|
| 16 |
+
17.12,15.55,0.8892,5.85,3.566,2.858,5.746,2
|
| 17 |
+
15.88,14.9,0.8988,5.618,3.507,0.7651,5.091,1
|
| 18 |
+
16.84,15.67,0.8623,5.998,3.484,4.675,5.877,2
|
| 19 |
+
19.38,16.72,0.8716,6.303,3.791,3.678,5.965,2
|
| 20 |
+
15.49,14.94,0.8724,5.757,3.371,3.412,5.228,1
|
| 21 |
+
11.43,13.13,0.8335,5.176,2.719,2.221,5.132,3
|
| 22 |
+
14.38,14.21,0.8951,5.386,3.312,2.462,4.956,1
|
| 23 |
+
14.11,14.18,0.882,5.541,3.221,2.754,5.038,1
|
| 24 |
+
12.08,13.23,0.8664,5.099,2.936,1.415,4.961,1
|
| 25 |
+
16.17,15.38,0.8588,5.762,3.387,4.286,5.703,2
|
| 26 |
+
11.42,12.86,0.8683,5.008,2.85,2.7,4.607,1
|
| 27 |
+
11.18,13.04,0.8266,5.22,2.693,3.332,5.001,3
|
| 28 |
+
11.75,13.52,0.8082,5.444,2.678,4.378,5.31,3
|
| 29 |
+
13.45,14.02,0.8604,5.516,3.065,3.531,5.097,1
|
| 30 |
+
14.86,14.67,0.8676,5.678,3.258,2.129,5.351,1
|
| 31 |
+
15.38,14.77,0.8857,5.662,3.419,1.999,5.222,1
|
| 32 |
+
14.92,14.43,0.9006,5.384,3.412,1.142,5.088,1
|
| 33 |
+
14.34,14.37,0.8726,5.63,3.19,1.313,5.15,1
|
| 34 |
+
13.8,14.04,0.8794,5.376,3.155,1.56,4.961,1
|
| 35 |
+
14.11,14.26,0.8722,5.52,3.168,2.688,5.219,1
|
| 36 |
+
17.63,15.86,0.88,6.033,3.573,3.747,5.929,2
|
| 37 |
+
13.32,13.94,0.8613,5.541,3.073,7.035,5.44,3
|
| 38 |
+
14.33,14.28,0.8831,5.504,3.199,3.328,5.224,1
|
| 39 |
+
18.85,16.17,0.9056,6.152,3.806,2.843,6.2,2
|
| 40 |
+
14.79,14.52,0.8819,5.545,3.291,2.704,5.111,1
|
| 41 |
+
11.23,12.63,0.884,4.902,2.879,2.269,4.703,1
|
| 42 |
+
14.69,14.49,0.8799,5.563,3.259,3.586,5.219,1
|
| 43 |
+
11.23,12.88,0.8511,5.14,2.795,4.325,5.003,3
|