plot_L_curve()#

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

Plotting the L-curve in log-log scale.

The points \((\sqrt{\rho}, \sqrt{\eta})\) are plotted in log-log scale.

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

Nnumber of regularization parameters, by default 500.

scatter_plotint, optional

Whether or not to plot some L-curve points as a 10 x format, by default None. If you want to manually define the number of points, enter the numbers like scatter_plot=10 then around 10 points corresponding to 10 x format are plotted.

scatter_annotatebool, optional

Whether or not to annotate the scatter_points, by default True. This key argument is valid if only scatter_plot is not None.

plot_lambda_optbool, optional

Whether or not to plot the L-curve corner point, by default True.

Returns:
figFigure

A matplotlib figure object.

axesAxes

A matplotlib Axes object.