Update pages/4_Model_Creation_and_Evaluation.py
Browse files
pages/4_Model_Creation_and_Evaluation.py
CHANGED
|
@@ -206,14 +206,6 @@ if df is not None:
|
|
| 206 |
unsafe_allow_html=True
|
| 207 |
)
|
| 208 |
|
| 209 |
-
# Create and optimize the study
|
| 210 |
-
st.code("""
|
| 211 |
-
study = optuna.create_study(direction="maximize")
|
| 212 |
-
study.optimize(objective, n_trials=100)
|
| 213 |
-
# Display the best parameters
|
| 214 |
-
st.write("Best Parameters:", study.best_params)
|
| 215 |
-
""", language="python")
|
| 216 |
-
|
| 217 |
# Create the best model
|
| 218 |
st.markdown("## Create the Best Model")
|
| 219 |
model = SVC(kernel='poly', gamma = 'scale', C = 974.1963187644974, degree = 2)
|
|
|
|
| 206 |
unsafe_allow_html=True
|
| 207 |
)
|
| 208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
# Create the best model
|
| 210 |
st.markdown("## Create the Best Model")
|
| 211 |
model = SVC(kernel='poly', gamma = 'scale', C = 974.1963187644974, degree = 2)
|