Skip to main content

Picasso Python Package

Project description

PICASSO: Penalized Generalized Linear Model Solver - Unleash the Power of Non-convex Penalty

Unleash the power of nonconvex penalty

L1 penalized regression (LASSO) is great for feature selection. However when you use LASSO in very noisy setting, especially when some columns in your data have strong colinearity, LASSO tends to give biased estimator due to the penalty term. As demonstrated in the example below, the lowest estimation error among all the lambdas computed is as high as 16.41%.

Requirements

  • Python3

  • Linux or MacOS

Installation

Install from source file (Github):

  • Clone picasso.git via git clone https://github.com/jasonge27/picasso.git

  • Make sure you have setuptools

    Using Makefile

  • Run sudo make Pyinstall command.

    Using CMAKE

  • Build the source file first via the cmake with CMakeLists.txt in the root directory. (You will see a .so or .lib file under (root)/lib/ )

  • Run cd python-package; sudo python setup.py install command.

Install from PyPI:

  • pip install pycasso

  • Note: Owing to the setting on different OS, our binary distribution might not be working in your environment. Thus please build from source.

You can test if the package has been successfully installed by:

import pycasso
picasso.test()

Usage

from pycasso import *
x = [[1,2,3,4,5,0],[3,4,1,7,0,1],[5,6,2,1,4,0]]
y = [3.1,6.9,11.3]
s = core.Solver(x,y)
s.train()
s.predict()

For Developer

Please follow the sphinx syntax style

To update the document: cd doc; make html

Copy Right

Author:

Jason(Jian) Ge, Haoming Jiang

Maintainer:

Haoming Jiang <jianghm@gatech.edu>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycasso-0.0.6.dev2.tar.gz (1.2 MB view details)

Uploaded Source

File details

Details for the file pycasso-0.0.6.dev2.tar.gz.

File metadata

  • Download URL: pycasso-0.0.6.dev2.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycasso-0.0.6.dev2.tar.gz
Algorithm Hash digest
SHA256 333ac6bc29226c0c3a8f7f347745e03ae34205ca58afbe24545023449dbd6f52
MD5 f0407e779925d5af24c3d7c3da33ac22
BLAKE2b-256 255f18a7ad2988c0851d215c8c5ff2bf762742c463f9a16465ad60b60f6fa1b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page