plot_curvature()#

Lcurve.plot_curvature(fig: Figure | None = None, axes: Axes | None = None, bounds: Collection[float | None] | None = None, n_beta: int = 500, show_max_curvature_line: bool = True) tuple[Figure, Axes]Source#

Plotting the curvature of L-curve as function of regularization parameter.

The curvature of L-curve is calculated by curvature() method.

Parameters:
figFigure, optional

A matplotlib figure object, by default None.

axesAxes, optional

A matplotlib Axes object, by default None.

boundsCollection[float | None], optional

Boundary pair of log10 of regularization parameters, by default bounds. If you set the bounds like (-10, None), the higher bound is set to \(\log_{10}\sigma_1^2\). Raise an error if a >= b in (a, b).

n_betaint, optional

Number of regularization parameters, by default 500.

show_max_curvature_linebool, optional

Whether or not to plot the vertical red dashed line at the maximum curvature point, by default True.

Returns:
figFigure

A matplotlib figure object.

axesAxes

A matplotlib Axes object.