el0ps.estimator.L0SVC¶
- class el0ps.estimator.L0SVC(lmbd, M, fit_intercept=False, solver=<el0ps.solver.bnb.BnbSolver object>)¶
Substitute for
L0L1L2SVC
with parametersalpha=0
andbeta=0
.- __init__(lmbd, M, fit_intercept=False, solver=<el0ps.solver.bnb.BnbSolver object>)¶
Methods
__init__
(lmbd, M[, fit_intercept, solver])decision_function
(X)Predict confidence scores for samples.
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 mean accuracy on the given test data and labels.
set_params
(**params)Set the parameters of this estimator.
set_score_request
(*[, sample_weight])Request metadata passed to the
score
method.