el0ps.estimator.L0L1Classifier¶
- class el0ps.estimator.L0L1Classifier(lmbd, alpha, M=inf, fit_intercept=False, solver=<el0ps.solver.bnb.BnbSolver object>)¶
Substitute for
L0L1L2Classifierwith parameterbeta=0.- __init__(lmbd, alpha, M=inf, fit_intercept=False, solver=<el0ps.solver.bnb.BnbSolver object>)¶
Methods
__init__(lmbd, alpha[, 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
scoremethod.