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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hi_lasso-1.0.4.tar.gz.
File metadata
- Download URL: hi_lasso-1.0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78953ea7de4278dfd8338a9037d8cee97d702faef063d44f2c6d3ffdce63fd20
|
|
| MD5 |
d6b36835d4ac2d6ea5c22ed990a76005
|
|
| BLAKE2b-256 |
0cc2550172edde3647f3a4caa34bf1dfeef9d830294d554307775249af866ab3
|
File details
Details for the file hi_lasso-1.0.4-py3-none-any.whl.
File metadata
- Download URL: hi_lasso-1.0.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa7286b4a247ce1bfc4cdedd3beffa7deb6dc3e73e90369c097d2f5ab08ddf76
|
|
| MD5 |
84da6cfdf619a0dc3ddc6d83fdaad083
|
|
| BLAKE2b-256 |
500e867418a71797ccff2f20285649e9b5110f252f613f453f32a85457987bac
|