opytimizer.visualization.convergence

Convergence plots.

opytimizer.visualization.convergence.plot(*args, labels: Optional[List[str]] = None, title: Optional[str] = '', subtitle: Optional[str] = '', xlabel: Optional[str] = 'iteration', ylabel: Optional[str] = 'value', grid: Optional[bool] = True, legend: Optional[bool] = True) → None

Plots the convergence graph of desired variables.

Essentially, each variable is a list or numpy array with size equals to n_iterations.

Parameters:
  • labels – Labels to be applied for each plot in legend.
  • title – Title of the plot.
  • subtitle – Subtitle of the plot.
  • xlabel – Axis x label.
  • ylabel – Axis y label.
  • grid – If grid should be used or not.
  • legend – If legend should be displayed or not.