Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 754 Bytes

File metadata and controls

35 lines (23 loc) · 754 Bytes

sbp-sr

Implementation of Smooth Bilevel Programming for Sparse Regularization with Scikit-Learn API.

Installation

pip install -U git+https://github.com/miclegr/sbp-sr

Requirements are Numpy, Scikit-Learn and Numba

Examples

import sbpsr
import sklearn.datasets

n, p = 1000, 20
X, y = sklearn.datasets.make_regression(n,p)

model = sbpsr.Lasso(alpha=1e-3).fit(X,y)
cv = sbpsr.LassoCV().fit(X,y)

Paper

Smooth Bilevel Programming for Sparse Regularization
Clarice Poon, Gabriel Peyré