Update app.py
Browse files
app.py
CHANGED
@@ -94,20 +94,27 @@ def get_pred():
|
|
94 |
|
95 |
if option == "Information about training data":
|
96 |
st.header("Stroke Prediction Dataset")
|
97 |
-
st.subheader("According to the World Health Organization (WHO) stroke is the 2nd leading cause of death globally, responsible for approximately 11% of total deaths. This dataset is used to predict whether a patient is likely to get stroke based on
|
98 |
-
st.markdown("### Disclaimer: This project is made
|
99 |
-
|
|
|
100 |
st.image(r'Stroke_between_respondents.png')
|
101 |
-
|
102 |
-
st.
|
103 |
-
|
|
|
|
|
104 |
st.image(r'smoking_status.png')
|
105 |
-
|
|
|
106 |
st.image(r'Stroke_age.png')
|
107 |
-
|
108 |
-
st.
|
|
|
|
|
109 |
st.image(r'Correlation.png')
|
110 |
-
|
|
|
111 |
st.image(r'Shap_Values.png')
|
112 |
|
113 |
|
|
|
94 |
|
95 |
if option == "Information about training data":
|
96 |
st.header("Stroke Prediction Dataset")
|
97 |
+
st.subheader("According to the World Health Organization (WHO), stroke is the 2nd leading cause of death globally, responsible for approximately 11% of total deaths. This dataset is used to predict whether a patient is likely to get a stroke based on input parameters like gender, age, various diseases, and smoking status. Each row in the data provides relevant information about the patient.")
|
98 |
+
st.markdown("### Disclaimer: This project is made from data collected from one American hospital. For this model to be more relevant in predicting health risks, it should ideally be trained on data specific to your population.")
|
99 |
+
|
100 |
+
st.subheader("Stroke dataset has 5110 records and 12 features.")
|
101 |
st.image(r'Stroke_between_respondents.png')
|
102 |
+
|
103 |
+
st.markdown("### 4.9% of all respondents had a stroke.")
|
104 |
+
|
105 |
+
st.subheader("Fun fact:")
|
106 |
+
st.markdown("People who have formerly smoked have the highest stroke risk.")
|
107 |
st.image(r'smoking_status.png')
|
108 |
+
|
109 |
+
st.subheader("Age importance in risk of Stroke:")
|
110 |
st.image(r'Stroke_age.png')
|
111 |
+
|
112 |
+
st.markdown("Stroke risk increases significantly after 40 years of age.")
|
113 |
+
|
114 |
+
st.subheader("Correlation between features:")
|
115 |
st.image(r'Correlation.png')
|
116 |
+
|
117 |
+
st.subheader("Feature Importance (SHAP values) affecting Stroke prediction:")
|
118 |
st.image(r'Shap_Values.png')
|
119 |
|
120 |
|