Modelkit.Elastic_net_pathA descending elastic-net regularization path with deterministic warm starts.
Path ordering and access follow Lasso_path. Automatic alpha generation requires positive l1_ratio, because a pure L2 penalty has no finite alpha at which every coefficient is forced to zero; explicit alphas remain valid when l1_ratio is zero. A path of a alpha values stores O(a * p) fitted coefficients.
val fit :
t ->
?alphas:Vector.t ->
?sample_weight:Sample_weight.t ->
rng:Rng.t ->
feature_schema:Feature_schema.t ->
x:Matrix.t ->
y:Target.regression Target.t ->
unit ->
(fitted, Error.t) resultval reports : fitted -> Solver_report.t arrayval model :
fitted ->
index:int ->
(Elastic_net_regression.fitted, Error.t) result