skopt.plots.plot_regret#
- skopt.plots.plot_regret(*args, ax=None, true_minimum=None, yscale=None)[source]#
Plot one or several cumulative regret traces.
- Parameters:
- args[i]
OptimizeResult, list ofOptimizeResult, or tuple The result(s) for which to plot the cumulative regret trace.
if
OptimizeResult, then draw the corresponding single trace;- if list of
OptimizeResult, then draw the corresponding cumulative regret traces in transparency, along with the average cumulative regret trace;
- if list of
if tuple, then
args[i][0]should be a string label andargs[i][1]anOptimizeResultor a list ofOptimizeResult.
- axAxes`, optional
The matplotlib axes on which to draw the plot, or
Noneto create a new one.- true_minimumfloat, optional
The true minimum value of the function, if known.
- yscaleNone or string, optional
The scale for the y-axis.
- args[i]
- Returns:
- ax
Axes The matplotlib axes.
- ax