pybop.plot.convergence#
Functions#
|
Plot the convergence of the optimisation algorithm. |
Module Contents#
- pybop.plot.convergence.convergence(optim, show=True, **layout_kwargs)[source]#
Plot the convergence of the optimisation algorithm.
- Parameters:
optim (object) – Optimisation object containing the cost function and optimiser.
show (bool, optional) – If True, the figure is shown upon creation (default: True).
**layout_kwargs (optional) – Valid Plotly layout keys and their values, e.g. xaxis_title=”Time [s]” or xaxis={“title”: “Time [s]”, font={“size”:14}}
- Returns:
fig – The Plotly figure object for the convergence plot.
- Return type:
plotly.graph_objs.Figure