Skip to main content

Module regularization_path

Module regularization_path 

Source
Expand description

Regularization-path series: one line per model coefficient across a sweep of regularization strengths, with automatic color cycling and optional zero-crossing markers (the visual payoff of L1/ElasticNet sparsification).

Axis convention: this crate plots coefficient value (y) against regularization strength (x) in the order given. Regularization sweeps are conventionally shown on a log x-axis; that is the chart’s job — build the context with build_cartesian_2d((lo..hi).log_scale(), y_range) and the (f64, f64) points here map straight onto it.

Structs§

RegLine
One coefficient’s trajectory across the strength axis.
RegularizationPath
A full regularization path — one RegLine per coefficient.