Coder Social home page Coder Social logo

constrainedlasso.jl's Introduction

ConstrainedLasso

Documentation Build Status Code Coverage
Latest Travis Appveyor Coverage Status codecov.io

ConstrainedLasso.jl implements algorithms for fitting the constrained lasso problem

where is the response vector, is the design matrix of predictor or covariates, is the vector of unknown regression coefficients, and is a tuning parameter that controls the amount of regularization.

Installation

Within Julia, use the package manager to install ConstrainedLasso:

Pkg.clone("git://github.com/Hua-Zhou/ConstrainedLasso.jl.git")

This package supports Julia v0.6.

Documentation

Latest

Citation

The original method paper on the constrained lasso is

James, G. M., Paulson, C. and Rusmevichientong, P. (2013). "Penalized and constrained regression," mimeo, Marshall School of Business, University of Southern California. http://www-bcf.usc.edu/~gareth/research/PAC.pdf

If you use ConstrainedLasso package in your research, please cite the following paper on the algorithms:

Gaines, B., Kim, J. and Zhou, H. (2018). “Algorithms for Fitting the Constrained Lasso,” under revision.

constrainedlasso.jl's People

Contributors

hua-zhou avatar juhkim111 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

constrainedlasso.jl's Issues

Updating to Julia 1.6 ?

Hey,

How hard would it be to update this package to work with Julia 1.6 ? There are no other packages on the current julia plateform that handle constraint lasso so it would definitely find it's usecases (i would use it ^^).

Edit: See this thread https://discourse.julialang.org/t/what-would-it-take-to-bring-this-julia-0-6-package-to-julia-1-6/59652/21
And also my fork https://github.com/lrnv/ConstrainedLasso.jl where we are starting to do updates to your codebase to make it work on 0.7, before moving it directly to 1.6

We still have a few bugs however.

Edit: It seems like the test Test lsq_classopath: sum-to-zero constraint does not work on my version, for a reason i cannot understand the beta vector has a full line of NANs, maiking hte test fail.

Problem Status Error; Problem Status Suboptimal

I am using this package to estimate a lasso that is a polynomial of x1 and x2 but is constrained to be monotone in both x1 and x2. Even for a simple second-order polynomial (y=b_0 + b_1 x_1 + b_2 x_2 + b_3 x_1 x_2 + b_4 x_1^2 + b_5 x_2^2), I consistently get "Problem status Error; solution may be inaccurate" and "Problem status Suboptimal; solution may be inaccurate." Is this intended? I would have expected the algorithms to perform well on such a simple problem. The output shapes of the given solution do appear monotone and appear to have reasonable shape, but I want to know if there is more I can do to ensure that I am finding the best solution. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.