ArturG9 commited on
Commit
c78a11a
1 Parent(s): 70b38f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -10
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 the input parameters like gender, age, various diseases, and smoking status. Each row in the data provides relavant information about the patient.")
98
- st.markdown("### Disclaimer: This project is made out of one American hospital data. For this model to be more relevant to predict your health, it has to bee trained on your population data")
99
- st.subheader(" Stroke dataset has 5110 records and 12 features.")
 
100
  st.image(r'Stroke_between_respondents.png')
101
- st.markdown(" ### 4.9& of all respondets had a stroke :.")
102
- st.subheader(" Fun fact:")
103
- st.markdown(" ## People who have formerly smoked, have the highest stroke risk :.")
 
 
104
  st.image(r'smoking_status.png')
105
- st.subheader(" ## Age importance in risk of Stroke:.")
 
106
  st.image(r'Stroke_age.png')
107
- st.markdown(" ## Stroke risk increases from 40 years:.")
108
- st.subheader(" ## Correlation between features:.")
 
 
109
  st.image(r'Correlation.png')
110
- st.subheader("Features Shap values and how it effects Target variable: Stroke")
 
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