How to Visualize Optimization Results¶
Interactive notebook
See the companion notebook for a runnable example. View ยท Open in marimo
This guide shows you how to plot optimization history and parameter
relationships from a completed OptunaSearchCV search. Use this when you need
to inspect convergence behavior or identify important parameter regions.
Prerequisites¶
- Sklearn-Optuna installed (Getting Started)
- A completed
OptunaSearchCVsearch - Plotly installed (
uv add plotly)
Access the Study¶
After calling fit(), the Optuna study is available as search.study_:
Pass this study object to any of Optuna's built-in visualization functions.
Plot Optimization History¶
Show how the objective value changed over trials:
This helps identify whether the search converged or would benefit from more trials.
Plot Parameter Contours¶
Visualize the relationship between two parameters and the objective:
Contour plots highlight regions of the parameter space that produce the best scores.
Plot Parameter Importances¶
Rank parameters by their impact on the objective:
Use this to decide which parameters are worth tuning further and which can be fixed.
See Also¶
- API Reference: full parameter documentation
- Concepts and Architecture: how OptunaSearchCV integrates with Scikit-Learn