Update app.py
Browse files
app.py
CHANGED
|
@@ -559,6 +559,34 @@ elif st.session_state.current_page == "Model Building":
|
|
| 559 |
if st.button("π Go Back to Model Report"):
|
| 560 |
switch_page("Model Report")
|
| 561 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 562 |
|
| 563 |
# Hands-on Model Page
|
| 564 |
elif st.session_state.current_page == "Hands-on Model":
|
|
|
|
| 559 |
if st.button("π Go Back to Model Report"):
|
| 560 |
switch_page("Model Report")
|
| 561 |
|
| 562 |
+
# Fianl Model
|
| 563 |
+
elif st.session_state.current_page == "Final Model":
|
| 564 |
+
st.markdown("<h4 style='color: #FF6D28;'>Final Model</h4>", unsafe_allow_html=True)
|
| 565 |
+
|
| 566 |
+
st.markdown("""
|
| 567 |
+
<h5>β
Best Model: Bagging Regressor (with Decision Tree)</h5>
|
| 568 |
+
<ul>
|
| 569 |
+
<li><b>Training Score:</b> 98.68%</li>
|
| 570 |
+
<li><b>Test Score:</b> 95.04%</li>
|
| 571 |
+
<li><b>Generalized Score:</b> 95.45%</li>
|
| 572 |
+
</ul>
|
| 573 |
+
""", unsafe_allow_html=True)
|
| 574 |
+
|
| 575 |
+
st.markdown("<hr style='border:1px solid #ddd;'>", unsafe_allow_html=True)
|
| 576 |
+
|
| 577 |
+
st.markdown("""
|
| 578 |
+
<h5>βοΈ Final Hyperparameters</h5>
|
| 579 |
+
<ul>
|
| 580 |
+
<li><b>Base Model:</b> Decision Tree Regressor</li>
|
| 581 |
+
<li><b>min_samples_leaf:</b> 2</li>
|
| 582 |
+
<li><b>min_samples_split:</b> 3</li>
|
| 583 |
+
<li><b>n_estimators:</b> 40</li>
|
| 584 |
+
<li><b>max_samples:</b> 0.838404</li>
|
| 585 |
+
</ul>
|
| 586 |
+
""", unsafe_allow_html=True)
|
| 587 |
+
|
| 588 |
+
if st.button("π Go Back to Model Report"):
|
| 589 |
+
switch_page("Model Report")
|
| 590 |
|
| 591 |
# Hands-on Model Page
|
| 592 |
elif st.session_state.current_page == "Hands-on Model":
|