Skip to content

Instantly share code, notes, and snippets.

View mathurinm's full-sized avatar

mathurinm

View GitHub Profile
@mathurinm
mathurinm / lbfgs_l1logistic.py
Created March 12, 2019 02:44 — forked from vene/lbfgs_l1logistic.py
Solving L1-regularized problems with l-bfgs-b
"""l-bfgs-b L1-Logistic Regression solver"""
# Author: Vlad Niculae <vlad@vene.ro>
# Suggested by Mathieu Blondel
from __future__ import division, print_function
import numpy as np
from scipy.optimize import fmin_l_bfgs_b