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
hi_lasso.fit(X, y, sample_weight=None)

# Show the coefficients
hi_lasso.coef_

# Show the p-values
hi_lasso.p_values_

# Show the intercept
hi_lasso.intercept_

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.5.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hi_lasso-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 1b7ac65ead349931b52daa224becc99872a5d01bf290753b3c854f957e15d535
MD5 a62bd7e3972f0976bbea4f1ca8d563b5
BLAKE2b-256 dbba9c39a75ace9856ef6340a75704a895d29b931768546b49b10bf29a508f80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hi_lasso-1.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5fc81c9fe72659297d3c68ba4d72ffd295bc7668d8a47de7d8763fbfbbde32ed
MD5 669172409a24d45ddc149b592598065f
BLAKE2b-256 d703fac83aee9e8934dc04a21beb76379f0303a6c18434fa12cc7f08dfe1ab59

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