Skip to main content

High-Demensional LASSO

Project description

Hi-LASSO

Hi-LASSO(High-Dimensional LASSO) can theoretically improves a LASSO model providing better performance of both prediction and feature selection on extremely high-dimensional data. Hi-LASSO alleviates bias introduced from bootstrapping, refines importance scores, improves the performance taking advantage of global oracle property, provides a statistical strategy to determine the number of bootstrapping, and allows tests of significance for feature selection with appropriate distribution. In Hi-LASSO will be applied to Use the pool of the python library to process parallel multiprocessing to reduce the time required for the model.

Installation

Hi-LASSO support Python 3.6+, Additionally, you will need numpy, scipy, tqdm and glmnet. However, these packages should be installed automatically when installing this codebase.

Hi-LASSO is available through PyPI and can easily be installed with a pip install::

pip install hi_lasso

Documentation

Read the documentation on readthedocs

Quick Start

#Data load
import pandas as pd
X = pd.read_csv('https://raw.githubusercontent.com/datax-lab/Hi-LASSO/master/simulation_data/X.csv')
y = pd.read_csv('https://raw.githubusercontent.com/datax-lab/Hi-LASSO/master/simulation_data/y.csv')

#General Usage
from hi_lasso.hi_lasso import HiLasso

# Create a HiLasso model
hilasso = HiLasso(q1='auto', q2='auto', L=30, alpha=0.05, logistic=False, random_state=None, parallel=False, n_jobs=None)

# Fit the model
hilasso.fit(X, y, sample_weight=None)

# Show the coefficients
hilasso.coef_

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

hi_lasso-1.0.6.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

hi_lasso-1.0.6-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file hi_lasso-1.0.6.tar.gz.

File metadata

  • Download URL: hi_lasso-1.0.6.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4

File hashes

Hashes for hi_lasso-1.0.6.tar.gz
Algorithm Hash digest
SHA256 c035f9a96c680aaca256428c029dd47d7da3155e066dc4d925f68346185c5c76
MD5 146a15f0567f0782a04a93822cf8a10a
BLAKE2b-256 5de169ad8fbc72493e75f38429c435289554e5ffb0d9c364624754e6e1e03e3b

See more details on using hashes here.

File details

Details for the file hi_lasso-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: hi_lasso-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4

File hashes

Hashes for hi_lasso-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c4bfe6c0c486eec956def1e197c75f58840217c371943d5a01da26cbd66b9386
MD5 1c76a6ff4d89bfba13dc4849deb40842
BLAKE2b-256 8b88a8587bb08ac9112e36e6a2d1d322d97f44ff07f1989abdf3bd1e616412da

See more details on using hashes here.

Supported by

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