Update app.py
Browse files
app.py
CHANGED
@@ -95,9 +95,16 @@ def get_pred():
|
|
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.
|
99 |
st.subheader(" Stroke dataset has 5110 records and 12 features.")
|
100 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
st.image(r'Correlation.png')
|
102 |
st.subheader("Features Shap values and how it effects Target variable: Stroke")
|
103 |
st.image(r'Shap_Values.png')
|
@@ -129,5 +136,5 @@ if option == "Model information":
|
|
129 |
st.image(r'Roc_Curve.png')
|
130 |
|
131 |
|
132 |
-
st.
|
133 |
-
st.
|
|
|
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'Shap_Values.png')
|
101 |
+
st.subheader(" Fun fact:")
|
102 |
+
st.markdown(" ## People who have formerly smoked, have the highest stroke risk :.")
|
103 |
+
st.image(r'Correlation.png')
|
104 |
+
st.subheader(" ## Age importance in risk of Stroke:.")
|
105 |
+
st.image(r'Correlation.png')
|
106 |
+
st.markdown(" ## Stroke risk increases from 40 years:.")
|
107 |
+
st.subheader(" ## Correlation between features:.")
|
108 |
st.image(r'Correlation.png')
|
109 |
st.subheader("Features Shap values and how it effects Target variable: Stroke")
|
110 |
st.image(r'Shap_Values.png')
|
|
|
136 |
st.image(r'Roc_Curve.png')
|
137 |
|
138 |
|
139 |
+
st.markdown("###Model from 28 stroke cases in a test set, identified bad 1 case**")
|
140 |
+
st.markdown("### Model is trained for a recall, because it's better to send a person to visit other doctor, that's why model identified from 182 pacients with stroke , 154 bad, they didin't have a stroke**")
|