Update app.py
Browse files
app.py
CHANGED
|
@@ -630,22 +630,21 @@ elif st.session_state.current_page == "Final Model":
|
|
| 630 |
|
| 631 |
# Title
|
| 632 |
st.markdown("<h1 class='title'>Final Model</h1>", unsafe_allow_html=True)
|
| 633 |
-
|
| 634 |
-
# Subtitle
|
| 635 |
-
st.markdown("<p class='subtitle'>Selecting the Best-Fit Model from Optuna Trials</p>", unsafe_allow_html=True)
|
| 636 |
|
| 637 |
-
#
|
|
|
|
| 638 |
st.markdown(
|
| 639 |
"<div class='box'>"
|
| 640 |
-
"<p>After experimenting with multiple trials using Optuna, we selected the best-fit model "
|
| 641 |
"by analyzing the training and test scores of different trials. "
|
| 642 |
-
"The following scatter plots provide insights into this selection process.</p>"
|
| 643 |
"</div>",
|
| 644 |
unsafe_allow_html=True,
|
| 645 |
)
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
|
|
|
|
| 649 |
st.markdown(
|
| 650 |
"<p class='subtitle'>This scatter plot visualizes the training and test scores of all trials. "
|
| 651 |
"The goal was to identify a model where both scores are closely aligned, ensuring minimal overfitting or underfitting.</p>",
|
|
@@ -655,23 +654,24 @@ elif st.session_state.current_page == "Final Model":
|
|
| 655 |
st.image("images/bagging_trails.png",
|
| 656 |
caption="All Trails",
|
| 657 |
use_container_width=True)
|
|
|
|
|
|
|
| 658 |
|
| 659 |
-
st.markdown("<h3>Training vs Test Score (First 50 Trials)</h3>", unsafe_allow_html=True)
|
| 660 |
st.markdown(
|
| 661 |
"<p class='subtitle'>By filtering the first 50 trials, we focused on models that demonstrated balanced performance. "
|
| 662 |
"The best-fit model was selected by ensuring that the training and test scores are close to each other.</p>",
|
| 663 |
unsafe_allow_html=True,
|
| 664 |
)
|
| 665 |
-
|
| 666 |
-
scatter_50 = Image.open("images/bagging_50trails.png")
|
| 667 |
-
st.image(scatter_50, caption="Scatter Plot of First 50 Trials", use_column_width=True)
|
| 668 |
|
| 669 |
st.image("images/bagging_50trails.png",
|
| 670 |
caption="50 Trails",
|
| 671 |
use_container_width=True)
|
|
|
|
|
|
|
| 672 |
|
| 673 |
-
|
| 674 |
-
|
| 675 |
st.markdown(
|
| 676 |
"<div class='box'>"
|
| 677 |
"<ul>"
|
|
|
|
| 630 |
|
| 631 |
# Title
|
| 632 |
st.markdown("<h1 class='title'>Final Model</h1>", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
| 633 |
|
| 634 |
+
st.markdown("<hr style='border:1px solid #ddd;'>", unsafe_allow_html=True)
|
| 635 |
+
|
| 636 |
st.markdown(
|
| 637 |
"<div class='box'>"
|
| 638 |
+
"<p><strong>After experimenting with multiple trials using Optuna, we selected the best-fit model "
|
| 639 |
"by analyzing the training and test scores of different trials. "
|
| 640 |
+
"The following scatter plots provide insights into this selection process.</strong></p>"
|
| 641 |
"</div>",
|
| 642 |
unsafe_allow_html=True,
|
| 643 |
)
|
| 644 |
+
|
| 645 |
+
st.markdown("<hr style='border:1px solid #ddd;'>", unsafe_allow_html=True)
|
| 646 |
+
|
| 647 |
+
st.markdown("<h3 style='text-align: center;'>Training vs Test Score (All Trials)</h3>", unsafe_allow_html=True)
|
| 648 |
st.markdown(
|
| 649 |
"<p class='subtitle'>This scatter plot visualizes the training and test scores of all trials. "
|
| 650 |
"The goal was to identify a model where both scores are closely aligned, ensuring minimal overfitting or underfitting.</p>",
|
|
|
|
| 654 |
st.image("images/bagging_trails.png",
|
| 655 |
caption="All Trails",
|
| 656 |
use_container_width=True)
|
| 657 |
+
|
| 658 |
+
st.markdown("<hr style='border:1px solid #ddd;'>", unsafe_allow_html=True)
|
| 659 |
|
| 660 |
+
st.markdown("<h3 style='text-align: center;'>Training vs Test Score (First 50 Trials)</h3>", unsafe_allow_html=True)
|
| 661 |
st.markdown(
|
| 662 |
"<p class='subtitle'>By filtering the first 50 trials, we focused on models that demonstrated balanced performance. "
|
| 663 |
"The best-fit model was selected by ensuring that the training and test scores are close to each other.</p>",
|
| 664 |
unsafe_allow_html=True,
|
| 665 |
)
|
|
|
|
|
|
|
|
|
|
| 666 |
|
| 667 |
st.image("images/bagging_50trails.png",
|
| 668 |
caption="50 Trails",
|
| 669 |
use_container_width=True)
|
| 670 |
+
|
| 671 |
+
st.markdown("<hr style='border:1px solid #ddd;'>", unsafe_allow_html=True)
|
| 672 |
|
| 673 |
+
st.markdown("<h3 style='text-align: center;'>Selected Best-Fit Model</h3>", unsafe_allow_html=True)
|
| 674 |
+
|
| 675 |
st.markdown(
|
| 676 |
"<div class='box'>"
|
| 677 |
"<ul>"
|