deephyper.analysis.hpo.plot_search_trajectory_single_objective_hpo

deephyper.analysis.hpo.plot_search_trajectory_single_objective_hpo#

deephyper.analysis.hpo.plot_search_trajectory_single_objective_hpo(results, show_failures: bool = True, column='objective', mode='max', x_units='evaluations', label=None, ax=None, plot_kwargs=None, scatter_success_kwargs=None, scatter_failure_kwargs=None)[source]#

Plot the search trajectory of a Single-Objective Hyperparameter Optimization.

Parameters:
  • results (pd.DataFrame) – the results of Hyperparameter Optimization.

  • show_failures (bool, optional) – whether to show the failed objectives. Defaults to True.

  • column (str, optional) – the column to use for the y-axis of the plot. Defaults to "objective".

  • mode (str, optional) – if the plot should be made for minimization "min" or maximization "max". Defaults to "max".

  • x_units (str, optional) – if the plot should be made with respect to evaluations "evaluations" or time "seconds". Defaults to "evaluations".

  • label (str, optional) – the label of the plot. Defaults to None.

  • ax (matplotlib.pyplot.axes) – the axes to use for the plot.

  • plot_kwargs (dict, optional) – keywords arguments passed to ax.plot(...).

  • scatter_success_kwargs (dict, optional) – keywords arguments passed to ax.scatter(...) for the successful evaluations.

  • scatter_failure_kwargs (dict, optional) – keywords arguments passed to ax.scatter(...) for the failed evaluations.

Returns:

the figure and axes of the plot.

Return type:

(matplotlib.pyplot.figure, matplotlib.pyplot.axes)