numeraire_graphics.plot_complexity_curve#

numeraire_graphics.plot_complexity_curve(results: DataFrame, *, x: str, metric: str, ribbon: tuple[str, str] | None = None) plotnine.ggplot[source]#

A summary metric plotted against a numeric complexity axis x.

x names a numeric column the caller has joined onto results (a shrinkage intensity, a parameter count, a regularization level — the result schema does not carry one, so it is an explicit argument). Rows are sorted along x and drawn as a geom_line + geom_point coloured by method. ribbon optionally names (low, high) columns for a geom_ribbon band around the curve. A zero reference line is included.