Upload folder using huggingface_hub
Browse files- heart_failure_README.md +146 -0
- heart_failure_config.json +51 -0
- heart_failure_model.pkl +3 -0
heart_failure_README.md
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Model description
|
| 3 |
+
|
| 4 |
+
[More Information Needed]
|
| 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 |
+
| 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-5 {/* 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-5 {color: var(--sklearn-color-text);
|
| 32 |
+
}#sk-container-id-5 pre {padding: 0;
|
| 33 |
+
}#sk-container-id-5 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-5 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-5 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-5 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-5 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-5 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
|
| 42 |
+
}#sk-container-id-5 div.sk-parallel-item {display: flex;flex-direction: column;
|
| 43 |
+
}#sk-container-id-5 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
|
| 44 |
+
}#sk-container-id-5 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
|
| 45 |
+
}#sk-container-id-5 div.sk-parallel-item:only-child::after {width: 0;
|
| 46 |
+
}/* Serial-specific style estimator block */#sk-container-id-5 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-5 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-5 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-5 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-5 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
|
| 56 |
+
}/* Toggleable content - dropdown */#sk-container-id-5 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-5 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 58 |
+
}#sk-container-id-5 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-5 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 60 |
+
}#sk-container-id-5 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
|
| 61 |
+
}#sk-container-id-5 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
|
| 62 |
+
}/* Pipeline/ColumnTransformer-specific style */#sk-container-id-5 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-5 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-5 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-5 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-5 div.sk-label label.sk-toggleable__label,
|
| 68 |
+
#sk-container-id-5 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-5 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-5 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-5 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
|
| 74 |
+
}#sk-container-id-5 div.sk-label-container {text-align: center;
|
| 75 |
+
}/* Estimator-specific */
|
| 76 |
+
#sk-container-id-5 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-5 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
|
| 78 |
+
}/* on hover */
|
| 79 |
+
#sk-container-id-5 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
|
| 80 |
+
}#sk-container-id-5 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);
|
| 84 |
+
}.sk-estimator-doc-link.fitted,
|
| 85 |
+
a:link.sk-estimator-doc-link.fitted,
|
| 86 |
+
a:visited.sk-estimator-doc-link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
|
| 87 |
+
}/* On hover */
|
| 88 |
+
div.sk-estimator:hover .sk-estimator-doc-link:hover,
|
| 89 |
+
.sk-estimator-doc-link:hover,
|
| 90 |
+
div.sk-label-container:hover .sk-estimator-doc-link:hover,
|
| 91 |
+
.sk-estimator-doc-link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
|
| 92 |
+
}div.sk-estimator.fitted:hover .sk-estimator-doc-link.fitted:hover,
|
| 93 |
+
.sk-estimator-doc-link.fitted:hover,
|
| 94 |
+
div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
|
| 95 |
+
.sk-estimator-doc-link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
|
| 96 |
+
}/* Span, style for the box shown on hovering the info icon */
|
| 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-5 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-5 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-5 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-5 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
|
| 105 |
+
}
|
| 106 |
+
</style><div id="sk-container-id-5" 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-5" type="checkbox" checked><label for="sk-estimator-id-5" 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 |
+
|
| 110 |
+
[More Information Needed]
|
| 111 |
+
|
| 112 |
+
# How to Get Started with the Model
|
| 113 |
+
|
| 114 |
+
[More Information Needed]
|
| 115 |
+
|
| 116 |
+
# Model Card Authors
|
| 117 |
+
|
| 118 |
+
This model card is written by following authors:
|
| 119 |
+
|
| 120 |
+
[More Information Needed]
|
| 121 |
+
|
| 122 |
+
# Model Card Contact
|
| 123 |
+
|
| 124 |
+
You can contact the model card authors through following channels:
|
| 125 |
+
[More Information Needed]
|
| 126 |
+
|
| 127 |
+
# Citation
|
| 128 |
+
|
| 129 |
+
Below you can find information related to citation.
|
| 130 |
+
|
| 131 |
+
**BibTeX:**
|
| 132 |
+
```
|
| 133 |
+
[More Information Needed]
|
| 134 |
+
```
|
| 135 |
+
|
| 136 |
+
# Model Card Author
|
| 137 |
+
|
| 138 |
+
Ella Carlotto
|
| 139 |
+
|
| 140 |
+
# Intended Uses & Limitations
|
| 141 |
+
|
| 142 |
+
This model is for educational and demonstration purposes only. It has not been validated for medical, diagnostic, or clinical decision-making use.
|
| 143 |
+
|
| 144 |
+
# Model Description
|
| 145 |
+
|
| 146 |
+
This Linear Regression model predicts the likelihood of death (DEATH_EVENT) based on clinical features from the UCI Heart Failure Clinical Records dataset. All features are numeric, and the model was trained without normalization to serve as a baseline regression example.
|
heart_failure_config.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"sklearn": {
|
| 3 |
+
"columns": [
|
| 4 |
+
"age",
|
| 5 |
+
"anaemia",
|
| 6 |
+
"creatinine_phosphokinase",
|
| 7 |
+
"diabetes",
|
| 8 |
+
"ejection_fraction",
|
| 9 |
+
"high_blood_pressure",
|
| 10 |
+
"platelets",
|
| 11 |
+
"serum_creatinine",
|
| 12 |
+
"serum_sodium",
|
| 13 |
+
"sex",
|
| 14 |
+
"smoking",
|
| 15 |
+
"time"
|
| 16 |
+
],
|
| 17 |
+
"environment": [
|
| 18 |
+
"scikit-learn=1.5.1"
|
| 19 |
+
],
|
| 20 |
+
"example_input": {
|
| 21 |
+
"age": [
|
| 22 |
+
NaN
|
| 23 |
+
],
|
| 24 |
+
"anaemia": [
|
| 25 |
+
NaN
|
| 26 |
+
],
|
| 27 |
+
"creatinine_phosphokinase": [
|
| 28 |
+
NaN
|
| 29 |
+
],
|
| 30 |
+
"diabetes": [
|
| 31 |
+
NaN
|
| 32 |
+
],
|
| 33 |
+
"ejection_fraction": [
|
| 34 |
+
38.0
|
| 35 |
+
]
|
| 36 |
+
},
|
| 37 |
+
"model": {
|
| 38 |
+
"file": "heart_failure_model.pkl"
|
| 39 |
+
},
|
| 40 |
+
"task": "tabular-regression",
|
| 41 |
+
"target": "DEATH_EVENT"
|
| 42 |
+
},
|
| 43 |
+
"metadata": {
|
| 44 |
+
"model_name": "Heart Failure Linear Regression Model",
|
| 45 |
+
"dataset": "Heart Failure Clinical Records (UCI)",
|
| 46 |
+
"created": "2025-11-06",
|
| 47 |
+
"author": "Ella Carlotto",
|
| 48 |
+
"license": "CC-BY 4.0",
|
| 49 |
+
"description": "A baseline Linear Regression model trained to predict DEATH_EVENT (0 = survived, 1 = death) from the UCI Heart Failure Clinical Records dataset. This model is intended for educational and demonstration purposes only."
|
| 50 |
+
}
|
| 51 |
+
}
|
heart_failure_model.pkl
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52514f6bfdf301e1159b74e37131e88017a72ecc00235510b52048ebc706d7d9
|
| 3 |
+
size 525
|