Skip to content

Instantly share code, notes, and snippets.

@dirkschumacher
Created May 16, 2020 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirkschumacher/a2711773c7ea8b5c0277fffa943d36f1 to your computer and use it in GitHub Desktop.
Save dirkschumacher/a2711773c7ea8b5c0277fffa943d36f1 to your computer and use it in GitHub Desktop.
from l0bnb import fit_path
from l0bnb import gen_synthetic
X, y, b = gen_synthetic(n=10, p=10, supp_size=10)
sols = fit_path(X, y, lambda_2 = 0.01, max_nonzeros = 1)
print(sols)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment