Evizero / SparseRegression.jl

Statistical Models with Regularization in Pure Julia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation Master Build Test Coverage
Build Status Build status codecov

SparseRegression

This package relies on primitives defined in the JuliaML ecosystem to implement high-performance algorithms for linear models which often produce sparsity in the coefficients.

  • Install with Pkg.clone("https://github.com/joshday/SparseRegression.jl")
using SparseRegression

x = randn(10_000, 50)
y = x * range(-1, stop=1, length=50) + randn(10_000)

s = SModel(x, y, L2DistLoss(), L2Penalty())
@time learn!(s)
s

About

Statistical Models with Regularization in Pure Julia

License:Other


Languages

Language:Julia 100.0%