/Lasso-1

This is implementation of Coordinate Descent for Lasso.

Primary LanguagePythonMIT LicenseMIT

Lasso

Overview

This is implementation of a coordinate descent for Lasso.

See this Japanese blog post for details of algorithm.

Tested environment

  • python==3.7.2
  • numpy==1.15.4
  • pandas==0.23.4 (To run a sample file)

Usage

git clone https://github.com/satopirka/Lasso
cd Lasso
from lasso import Lasso
model = Lasso(alpha=1.0, max_iter=1000).fit(X, y)

To run a sample program for Boston dataset,

python sample.py