Update app.py
Browse files
app.py
CHANGED
|
@@ -91,14 +91,6 @@ if prediction[0] == 0:
|
|
| 91 |
else:
|
| 92 |
st.write('The model predicts: Diabetes')
|
| 93 |
|
| 94 |
-
st.subheader('Prediction Probability')
|
| 95 |
-
st.write(f'Probability of No Diabetes: {prediction_proba[0][0]:.2%}')
|
| 96 |
-
st.write(f'Probability of Diabetes: {prediction_proba[0][1]:.2%}')
|
| 97 |
-
|
| 98 |
-
# Model performance
|
| 99 |
-
st.subheader('Model Performance')
|
| 100 |
-
y_pred = model.predict(X_test_scaled)
|
| 101 |
-
st.write(f'Model Accuracy: {accuracy_score(y_test, y_pred):.2%}')
|
| 102 |
|
| 103 |
# Feature importance
|
| 104 |
st.subheader('Feature Importance')
|
|
|
|
| 91 |
else:
|
| 92 |
st.write('The model predicts: Diabetes')
|
| 93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
# Feature importance
|
| 96 |
st.subheader('Feature Importance')
|