Hi-LASSO_spark
Hi-LASSO_Spark(High-Demensinal LASSO Spark) is to improve the LASSO solutions for extremely high-dimensional data using pyspark. PySpark is the Python API written in python to support Apache Spark. Apache Spark is a distributed framework that can handle Big Data analysis. Spark is basically a computational engine, that works with huge sets of data by processing them in parallel and batch systems.
Installation
Hi-LASSO_Spark support Python 3.6+, Additionally, you will need numpy, scipy, and glmnet.
Hi-LASSO_spark is available through PyPI and can easily be installed with a
pip install::
pip install hi_lasso_spark
Documentation
Read the documentation on readthedocs
Quick Start
# Data load
import pandas as pd
X = pd.read_csv('simulation_data_x.csv')
y = pd.read_csv('simulation_data_y.csv')
# General Usage
from hi_lasso_spark.Hi_LASSO_spark import HiLASSO_Spark
# Create a HiLasso model
model = HiLASSO_Spark(X, y, alpha=0.05, q1='auto', q2='auto', L=30, cv=5, node='auto', logistic=False)
# Fit the model
model.fit()
# Show the coefficients
model.coef_
# Show the p-values
model.p_values_
# Show the selected variable
model.selected_var_
Metadata
Release files for hi-lasso-spark 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hi_lasso_spark-1.0.0.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hi_lasso_spark-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / hi_lasso_spark-1.0.0.tar.gz
| Download URL | hi_lasso_spark-1.0.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
549b3c8f659142f5e0cf358af7903ab083ab35b78996f1359a89183362ef8290
|
|
BLAKE2b-256 checksum How to use checksums |
2c70392e24af9b5772f92a9b472977caf17ac3e4e84cdc24ff86c77da8db4282
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Release files / hi_lasso_spark-1.0.0-py3-none-any.whl
| Download URL | hi_lasso_spark-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f2f1072ddf8d1abf323d726563ca774e326750d81dfa3b8d7800c6c578005ca
|
|
BLAKE2b-256 checksum How to use checksums |
24636c7ea8c028d00e99c2842af6b6027a769b13ec5c5f7525b0ff6c93e488ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|