el0ps.estimator.L0Regressor¶
- class el0ps.estimator.L0Regressor(lmbd, M, fit_intercept=False, solver=<el0ps.solver.bnb.BnbSolver object>)¶
Substitute for
L0L1L2Regressor
with parametersalpha=0
andbeta=0
.- __init__(lmbd, M, fit_intercept=False, solver=<el0ps.solver.bnb.BnbSolver object>)¶
Methods
__init__
(lmbd, M[, fit_intercept, solver])fit
(X, y)Fit model.
get_metadata_routing
()Get metadata routing of this object.
get_params
([deep])Get parameters for this estimator.
predict
(X)Predict using the linear model.
score
(X, y[, sample_weight])Return the coefficient of determination of the prediction.
set_params
(**params)Set the parameters of this estimator.
set_score_request
(*[, sample_weight])Request metadata passed to the
score
method.