Update pages/4_Model_Creation_and_Evaluation.py
Browse files
pages/4_Model_Creation_and_Evaluation.py
CHANGED
|
@@ -143,15 +143,13 @@ if df is not None:
|
|
| 143 |
return score
|
| 144 |
""", language="python")
|
| 145 |
|
| 146 |
-
# Create and optimize the study
|
| 147 |
-
st.code("""
|
| 148 |
-
study = optuna.create_study(direction="maximize")
|
| 149 |
-
study.optimize(objective, n_trials=100)
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
""", language="python")
|
| 154 |
-
|
| 155 |
|
| 156 |
# Create the best model
|
| 157 |
st.markdown("## Create the Best Model")
|
|
@@ -172,6 +170,7 @@ st.write("Best Parameters:", study.best_params)
|
|
| 172 |
else:
|
| 173 |
st.warning("No Dataset Found")
|
| 174 |
|
|
|
|
| 175 |
# Custom background styling
|
| 176 |
st.markdown(
|
| 177 |
"""
|
|
|
|
| 143 |
return score
|
| 144 |
""", language="python")
|
| 145 |
|
| 146 |
+
# Create and optimize the study
|
| 147 |
+
st.code("""
|
| 148 |
+
study = optuna.create_study(direction="maximize")
|
| 149 |
+
study.optimize(objective, n_trials=100)
|
| 150 |
+
# Display the best parameters
|
| 151 |
+
st.write("Best Parameters:", study.best_params)
|
| 152 |
+
""", language="python")
|
|
|
|
|
|
|
| 153 |
|
| 154 |
# Create the best model
|
| 155 |
st.markdown("## Create the Best Model")
|
|
|
|
| 170 |
else:
|
| 171 |
st.warning("No Dataset Found")
|
| 172 |
|
| 173 |
+
|
| 174 |
# Custom background styling
|
| 175 |
st.markdown(
|
| 176 |
"""
|