optuna.visualization.matplotlib.plot_contour

optuna.visualization.matplotlib.plot_contour(study: optuna.study.Study, params: Optional[List[str]] = None) → matplotlib.axes._axes.Axes[source]

Plot the parameter relationship as contour plot in a study with Matplotlib.

Note that, if a parameter contains missing values, a trial with missing values is not plotted.

See also

Please refer to optuna.visualization.plot_contour() for an example.

Warning

Output figures of this Matplotlib-based plot_contour() function would be different from those of the Plotly-based plot_contour().

Parameters
  • study – A Study object whose trials are plotted for their objective values.

  • params – Parameter list to visualize. The default is all parameters.

Returns

A matplotlib.axes.Axes object.

Note

Added in v2.2.0 as an experimental feature. The interface may change in newer versions without prior notice. See https://github.com/optuna/optuna/releases/tag/v2.2.0.