Update app.py
Browse files
app.py
CHANGED
|
@@ -65,8 +65,8 @@ with st.form("input_form"):
|
|
| 65 |
# Second row of inputs
|
| 66 |
exerciseangia = st.radio("Exercise-Induced Angina", ['Yes', 'No','No Data Available'], horizontal=True, help = "Indicate if exercise induced angina is present or not. 'No Data Available' corresponds to an unknown value. If selected, the 'most frequent' value of the category will be used for prediction.")
|
| 67 |
exerciseangia = np.nan if exerciseangia == 'No Data Available' else exerciseangia
|
| 68 |
-
oldpeak = st.number_input("ST Depression Induced by Exercise",min_value =
|
| 69 |
-
oldpeak = np.nan if oldpeak ==
|
| 70 |
slope = st.selectbox("Slope of Peak Exercise ST Segment", ['No Data Available','Downsloping', 'Upsloping', 'Flat'], help = "A normal ST segment during exercise slopes sharply upwards. The slope of the ST segment is the shift of the ST segment relative to the increase in heart rate caused by exercise. 'No Data Available' corresponds to an unknown slope value. If selected, the 'most frequent' value of the category will be used for prediction.")
|
| 71 |
slope = np.nan if slope == 'No Data Available' else slope
|
| 72 |
noofmajorvessels = st.selectbox(
|
|
|
|
| 65 |
# Second row of inputs
|
| 66 |
exerciseangia = st.radio("Exercise-Induced Angina", ['Yes', 'No','No Data Available'], horizontal=True, help = "Indicate if exercise induced angina is present or not. 'No Data Available' corresponds to an unknown value. If selected, the 'most frequent' value of the category will be used for prediction.")
|
| 67 |
exerciseangia = np.nan if exerciseangia == 'No Data Available' else exerciseangia
|
| 68 |
+
oldpeak = st.number_input("ST Depression Induced by Exercise",min_value = -0.1, max_value = 10.0 ,step = 0.1, help = "Enter ST depression value induced by exercise relative to rest. '-0.1' corresponds to an unknown value. If selected, then mean value of the category will be used for prediction.")
|
| 69 |
+
oldpeak = np.nan if oldpeak == -0.1 else oldpeak
|
| 70 |
slope = st.selectbox("Slope of Peak Exercise ST Segment", ['No Data Available','Downsloping', 'Upsloping', 'Flat'], help = "A normal ST segment during exercise slopes sharply upwards. The slope of the ST segment is the shift of the ST segment relative to the increase in heart rate caused by exercise. 'No Data Available' corresponds to an unknown slope value. If selected, the 'most frequent' value of the category will be used for prediction.")
|
| 71 |
slope = np.nan if slope == 'No Data Available' else slope
|
| 72 |
noofmajorvessels = st.selectbox(
|