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

  • Linux or MacOS

Windows User: It may take lots of effort to build on Windows. One way to do it is using mingw/mingw64. Be careful of issues like the system bits and environment variables. Once the correct make tools and g++ are setted up, you can install the package from suorce with the following instruction.

Installation

In the following process, you may need to be root (sudo).

Install from source file (Github) with Makefile:

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

  • Make sure you have setuptools

  • Run sudo make Pyinstall command.

Install from source file (Github) with CMAKE:

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

  • Make sure you have setuptools

  • 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 distribution might not be working in your environment (especially in Windows). Thus please build from source.

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

import pycasso
pycasso.test()

Usage

import pycasso
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 = pycasso.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 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.1.2.2.tar.gz (2.8 MB view details)

Uploaded Source

File details

Details for the file pycasso-0.1.2.2.tar.gz.

File metadata

  • Download URL: pycasso-0.1.2.2.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for pycasso-0.1.2.2.tar.gz
Algorithm Hash digest
SHA256 2ad144cf2db07bacaa9afb29b204d92c430e3ded5dd6611431ce2458d00a011c
MD5 858cf4e3df866bf4ec14c400ce784f17
BLAKE2b-256 2e1a07ff4c3b18b87a4e92005929a2d7ebc3f3ecee16e568b5ce3735c6b0c16c

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