learnergy.visual.convergence

Convergence-related visualization.

learnergy.visual.convergence.plot(*args, labels: Optional[List[str]] = None, title: Optional[str] = '', subtitle: Optional[str] = '', xlabel: Optional[str] = 'epoch', ylabel: Optional[str] = 'value', grid: Optional[bool] = True, legend: Optional[bool] = True)

Plots the convergence graph of desired variables.

Essentially, each variable is a list or numpy array with size equals to (epochs x 1).

Parameters
  • labels – Labels to be applied for each plot in legend.

  • title – The title of the plot.

  • subtitle – The subtitle of the plot.

  • xlabel – The x axis label.

  • ylabel – The y axis label.

  • grid – If grid should be used or not.

  • legend – If legend should be displayed or not.