Kcarley17 commited on
Commit
095495a
·
verified ·
1 Parent(s): bf15e5e

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +86 -47
  2. config.json +51 -0
  3. model.pkl +3 -0
README.md CHANGED
@@ -5,9 +5,11 @@ This model is a decision tree classifier trained to predict obesity levels based
5
 
6
  ## Intended uses & limitations
7
 
8
- Intended use: Educational use, possible tool for exploring health data, research, and classification and interpretability techniques. The model performs very well for higher risk categories.
9
- Not intended for: Actual medical diagnosis or treatment decisions.
10
- Limitations: Normal-weight and neighboring overweight classes overlap, making them harder to classify. The data is also self-reported, which may lead to bias or inaccuracies.
 
 
11
 
12
  ### Hyperparameters
13
 
@@ -34,57 +36,57 @@ Limitations: Normal-weight and neighboring overweight classes overlap, making th
34
 
35
  ### Model Plot
36
 
37
- <style>#sk-container-id-3 {/* 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;}
38
- }#sk-container-id-3 {color: var(--sklearn-color-text);
39
- }#sk-container-id-3 pre {padding: 0;
40
- }#sk-container-id-3 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;
41
- }#sk-container-id-3 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);
42
- }#sk-container-id-3 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;
43
- }#sk-container-id-3 div.sk-text-repr-fallback {display: none;
44
  }div.sk-parallel-item,
45
  div.sk-serial,
46
  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;
47
- }/* Parallel-specific style estimator block */#sk-container-id-3 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 2px solid var(--sklearn-color-text-on-default-background);flex-grow: 1;
48
- }#sk-container-id-3 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
49
- }#sk-container-id-3 div.sk-parallel-item {display: flex;flex-direction: column;
50
- }#sk-container-id-3 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
51
- }#sk-container-id-3 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
52
- }#sk-container-id-3 div.sk-parallel-item:only-child::after {width: 0;
53
- }/* Serial-specific style estimator block */#sk-container-id-3 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: var(--sklearn-color-background);padding-right: 1em;padding-left: 1em;
54
  }/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
55
  clickable and can be expanded/collapsed.
56
  - Pipeline and ColumnTransformer use this feature and define the default style
57
  - Estimators will overwrite some part of the style using the `sk-estimator` class
58
- *//* Pipeline and ColumnTransformer style (default) */#sk-container-id-3 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);
59
  }/* Toggleable label */
60
- #sk-container-id-3 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.5em;box-sizing: border-box;text-align: center;
61
- }#sk-container-id-3 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);
62
- }#sk-container-id-3 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
63
- }/* Toggleable content - dropdown */#sk-container-id-3 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
64
- }#sk-container-id-3 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
65
- }#sk-container-id-3 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);
66
- }#sk-container-id-3 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
67
- }#sk-container-id-3 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
68
- }#sk-container-id-3 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
69
- }/* Pipeline/ColumnTransformer-specific style */#sk-container-id-3 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);
70
- }#sk-container-id-3 div.sk-label.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: var(--sklearn-color-fitted-level-2);
71
  }/* Estimator-specific style *//* Colorize estimator box */
72
- #sk-container-id-3 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
73
- }#sk-container-id-3 div.sk-estimator.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
74
- }#sk-container-id-3 div.sk-label label.sk-toggleable__label,
75
- #sk-container-id-3 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
76
  }/* On hover, darken the color of the background */
77
- #sk-container-id-3 div.sk-label:hover label.sk-toggleable__label {color: var(--sklearn-color-text);background-color: var(--sklearn-color-unfitted-level-2);
78
  }/* Label box, darken color on hover, fitted */
79
- #sk-container-id-3 div.sk-label.fitted:hover label.sk-toggleable__label.fitted {color: var(--sklearn-color-text);background-color: var(--sklearn-color-fitted-level-2);
80
- }/* Estimator label */#sk-container-id-3 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
81
- }#sk-container-id-3 div.sk-label-container {text-align: center;
82
  }/* Estimator-specific */
83
- #sk-container-id-3 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);
84
- }#sk-container-id-3 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
85
  }/* on hover */
86
- #sk-container-id-3 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
87
- }#sk-container-id-3 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
88
  }/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
89
  a:link.sk-estimator-doc-link,
90
  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);
@@ -104,16 +106,27 @@ div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,
104
  .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);
105
  }.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
106
  }.sk-estimator-doc-link:hover span {display: block;
107
- }/* "?"-specific style due to the `<a>` HTML tag */#sk-container-id-3 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;
108
- }#sk-container-id-3 a.estimator_doc_link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
109
  }/* On hover */
110
- #sk-container-id-3 a.estimator_doc_link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
111
- }#sk-container-id-3 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
112
  }
113
- </style><div id="sk-container-id-3" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>DecisionTreeClassifier(max_depth=6)</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-3" type="checkbox" checked><label for="sk-estimator-id-3" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted">&nbsp;&nbsp;DecisionTreeClassifier<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.4/modules/generated/sklearn.tree.DecisionTreeClassifier.html">?<span>Documentation for DecisionTreeClassifier</span></a><span class="sk-estimator-doc-link fitted">i<span>Fitted</span></span></label><div class="sk-toggleable__content fitted"><pre>DecisionTreeClassifier(max_depth=6)</pre></div> </div></div></div></div>
114
 
115
  ## Evaluation Results
116
- The model achieves approximately 87% accuracy. Its performance is strongest on more distinct obesity categories and weaker on categories that are closer together. A more complex model could lead to higher accuracy, but it would be less interpretable and harder to present to medical professionals.
 
 
 
 
 
 
 
 
 
 
 
117
 
118
  # How to Get Started with the Model
119
 
@@ -127,3 +140,29 @@ predictions = model.predict(X)
127
  # Model Card Authors
128
 
129
  Kayleigh Carley
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  ## Intended uses & limitations
7
 
8
+ [More Information Needed]
9
+
10
+ ## Training Procedure
11
+
12
+ [More Information Needed]
13
 
14
  ### Hyperparameters
15
 
 
36
 
37
  ### Model Plot
38
 
39
+ <style>#sk-container-id-2 {/* 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;}
40
+ }#sk-container-id-2 {color: var(--sklearn-color-text);
41
+ }#sk-container-id-2 pre {padding: 0;
42
+ }#sk-container-id-2 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;
43
+ }#sk-container-id-2 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);
44
+ }#sk-container-id-2 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;
45
+ }#sk-container-id-2 div.sk-text-repr-fallback {display: none;
46
  }div.sk-parallel-item,
47
  div.sk-serial,
48
  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;
49
+ }/* Parallel-specific style estimator block */#sk-container-id-2 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 2px solid var(--sklearn-color-text-on-default-background);flex-grow: 1;
50
+ }#sk-container-id-2 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: var(--sklearn-color-background);position: relative;
51
+ }#sk-container-id-2 div.sk-parallel-item {display: flex;flex-direction: column;
52
+ }#sk-container-id-2 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;
53
+ }#sk-container-id-2 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;
54
+ }#sk-container-id-2 div.sk-parallel-item:only-child::after {width: 0;
55
+ }/* Serial-specific style estimator block */#sk-container-id-2 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: var(--sklearn-color-background);padding-right: 1em;padding-left: 1em;
56
  }/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is
57
  clickable and can be expanded/collapsed.
58
  - Pipeline and ColumnTransformer use this feature and define the default style
59
  - Estimators will overwrite some part of the style using the `sk-estimator` class
60
+ *//* Pipeline and ColumnTransformer style (default) */#sk-container-id-2 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);
61
  }/* Toggleable label */
62
+ #sk-container-id-2 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.5em;box-sizing: border-box;text-align: center;
63
+ }#sk-container-id-2 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);
64
+ }#sk-container-id-2 label.sk-toggleable__label-arrow:hover:before {color: var(--sklearn-color-text);
65
+ }/* Toggleable content - dropdown */#sk-container-id-2 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;/* unfitted */background-color: var(--sklearn-color-unfitted-level-0);
66
+ }#sk-container-id-2 div.sk-toggleable__content.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
67
+ }#sk-container-id-2 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);
68
+ }#sk-container-id-2 div.sk-toggleable__content.fitted pre {/* unfitted */background-color: var(--sklearn-color-fitted-level-0);
69
+ }#sk-container-id-2 input.sk-toggleable__control:checked~div.sk-toggleable__content {/* Expand drop-down */max-height: 200px;max-width: 100%;overflow: auto;
70
+ }#sk-container-id-2 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";
71
+ }/* Pipeline/ColumnTransformer-specific style */#sk-container-id-2 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);
72
+ }#sk-container-id-2 div.sk-label.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: var(--sklearn-color-fitted-level-2);
73
  }/* Estimator-specific style *//* Colorize estimator box */
74
+ #sk-container-id-2 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
75
+ }#sk-container-id-2 div.sk-estimator.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
76
+ }#sk-container-id-2 div.sk-label label.sk-toggleable__label,
77
+ #sk-container-id-2 div.sk-label label {/* The background is the default theme color */color: var(--sklearn-color-text-on-default-background);
78
  }/* On hover, darken the color of the background */
79
+ #sk-container-id-2 div.sk-label:hover label.sk-toggleable__label {color: var(--sklearn-color-text);background-color: var(--sklearn-color-unfitted-level-2);
80
  }/* Label box, darken color on hover, fitted */
81
+ #sk-container-id-2 div.sk-label.fitted:hover label.sk-toggleable__label.fitted {color: var(--sklearn-color-text);background-color: var(--sklearn-color-fitted-level-2);
82
+ }/* Estimator label */#sk-container-id-2 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;
83
+ }#sk-container-id-2 div.sk-label-container {text-align: center;
84
  }/* Estimator-specific */
85
+ #sk-container-id-2 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);
86
+ }#sk-container-id-2 div.sk-estimator.fitted {/* fitted */background-color: var(--sklearn-color-fitted-level-0);
87
  }/* on hover */
88
+ #sk-container-id-2 div.sk-estimator:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-2);
89
+ }#sk-container-id-2 div.sk-estimator.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-2);
90
  }/* Specification for estimator info (e.g. "i" and "?") *//* Common style for "i" and "?" */.sk-estimator-doc-link,
91
  a:link.sk-estimator-doc-link,
92
  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);
 
106
  .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);
107
  }.sk-estimator-doc-link.fitted span {/* fitted */background: var(--sklearn-color-fitted-level-0);border: var(--sklearn-color-fitted-level-3);
108
  }.sk-estimator-doc-link:hover span {display: block;
109
+ }/* "?"-specific style due to the `<a>` HTML tag */#sk-container-id-2 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;
110
+ }#sk-container-id-2 a.estimator_doc_link.fitted {/* fitted */border: var(--sklearn-color-fitted-level-1) 1pt solid;color: var(--sklearn-color-fitted-level-1);
111
  }/* On hover */
112
+ #sk-container-id-2 a.estimator_doc_link:hover {/* unfitted */background-color: var(--sklearn-color-unfitted-level-3);color: var(--sklearn-color-background);text-decoration: none;
113
+ }#sk-container-id-2 a.estimator_doc_link.fitted:hover {/* fitted */background-color: var(--sklearn-color-fitted-level-3);
114
  }
115
+ </style><div id="sk-container-id-2" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>DecisionTreeClassifier(max_depth=6)</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-2" type="checkbox" checked><label for="sk-estimator-id-2" class="sk-toggleable__label fitted sk-toggleable__label-arrow fitted">&nbsp;&nbsp;DecisionTreeClassifier<a class="sk-estimator-doc-link fitted" rel="noreferrer" target="_blank" href="https://scikit-learn.org/1.4/modules/generated/sklearn.tree.DecisionTreeClassifier.html">?<span>Documentation for DecisionTreeClassifier</span></a><span class="sk-estimator-doc-link fitted">i<span>Fitted</span></span></label><div class="sk-toggleable__content fitted"><pre>DecisionTreeClassifier(max_depth=6)</pre></div> </div></div></div></div>
116
 
117
  ## Evaluation Results
118
+
119
+ [More Information Needed]
120
+
121
+ ## Figures
122
+
123
+ ### Confusion Matrix
124
+
125
+ ![Confusion Matrix](confusion_matrix.png)
126
+
127
+ ### Decision Tree
128
+
129
+ ![Confusion Matrix](decision_tree6.png)
130
 
131
  # How to Get Started with the Model
132
 
 
140
  # Model Card Authors
141
 
142
  Kayleigh Carley
143
+
144
+ # Model Card Contact
145
+
146
+ You can contact the model card authors through following channels:
147
+ [More Information Needed]
148
+
149
+ # Citation
150
+
151
+ Below you can find information related to citation.
152
+
153
+ **BibTeX:**
154
+ ```
155
+ [More Information Needed]
156
+ ```
157
+
158
+ # Intended uses & limitations
159
+
160
+ **Intended use:** Educational use, possible tool for exploring health data, research, and classification and interpretability techniques. The model performs very well for higher risk categories.
161
+
162
+ **Not intended for:** Actual medical diagnosis or treatment decisions.
163
+
164
+ **Limitations:** Normal-weight and neighboring overweight classes overlap, making them harder to classify. The data is also self-reported, whichmay lead to bias or inaccuracies.
165
+
166
+ # Evaluation Results
167
+
168
+ The model achieves approximately 87% accuracy. Its performance is strongest on more distinct obesity categories and weaker on categories that are closer together. A more complex model could lead to higher accuracy, but it would be less interpretable and harder to present to medical professionals.
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sklearn": {
3
+ "columns": [
4
+ "Age",
5
+ "Height",
6
+ "Weight",
7
+ "FCVC",
8
+ "NCP",
9
+ "CH2O",
10
+ "FAF",
11
+ "TUE",
12
+ "cluster2"
13
+ ],
14
+ "environment": [
15
+ "scikit-learn=1.3.0"
16
+ ],
17
+ "example_input": {
18
+ "Age": [
19
+ 25
20
+ ],
21
+ "Height": [
22
+ 1.7
23
+ ],
24
+ "Weight": [
25
+ 68
26
+ ],
27
+ "FCVC": [
28
+ 2
29
+ ],
30
+ "NCP": [
31
+ 3
32
+ ],
33
+ "CH2O": [
34
+ 2
35
+ ],
36
+ "FAF": [
37
+ 1
38
+ ],
39
+ "TUE": [
40
+ 1
41
+ ],
42
+ "cluster2": [
43
+ 0
44
+ ]
45
+ },
46
+ "model": {
47
+ "file": "model.pkl"
48
+ },
49
+ "task": "tabular-classification"
50
+ }
51
+ }
model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aad775f6655c0f7b34436d274f7d4bb8943b7165cf527b7ce99b67e80c1f2c5e
3
+ size 33014