Implémentation Python de Dual-sPLS basée sur Alsouki et al. (2023)
Project description
Dual-sPLS: Full theory and reimplementation from R to Python
The goal of this repository is to reimplement the paper Dual-sPLS: a family of Dual Sparse Partial Least Squares regressions for feature selection and prediction with tunable sparsity... from R to Python. It can be used both as a learning tool to understand the theory behind the algorithm and as a standalone installable library.
Usage
To start using the repository with the ability to modify it locally, you can clone it:
git clone https://github.com/malerbe/Dual-sPLS.git
and then install it using pip:
cd ./Dual-sPLS
pip install -e .
To install and use the library without cloning it locally, it is also available on Pypi:
pip install dual-spls
It is suggested to use the notebook notebooks/predict_simulated.ipynb as a "documentation" to understand how to use different features implemented in the library. Reading the docstrings and the commentaries in the code will allow a better understanding of what the arguments correspond to.
The library also allows the user to generate synthetic data as presented in the paper. To see how to use the generation function, see: notebooks/simulate.ipynb
Learning Path
If your goal is to fully grasp the mechanics behind the algorithms, it is recommended to follow the explanation notebooks in this specific order:
-
Fundamentals:
docs/PLS.ipynb -
Introducing Sparsity:
docs/sPLS.ipynb -
The Dual Approach:
docs/Dual_sPLS.ipynb
It is then possible to fully understand the first production implementation src/dual_spls/lasso.py easily as it only uses code already explained and implemented the last docs/Dual_sPLS.ipynb notebook.
Sources and original repository
Project details
Release history Release notifications | RSS feed
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 dual_spls-0.0.7.tar.gz.
File metadata
- Download URL: dual_spls-0.0.7.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bc708597ed5d089904eeed4e74301c51c88532f848d2c3e95e315cbbf57c16b
|
|
| MD5 |
4a2de05e029c5d2e957f2551542eecb1
|
|
| BLAKE2b-256 |
4d6688f498ba6bc914c97cfd0b876a5c016515ca7745384fed760ab2a5c831f4
|
Provenance
The following attestation bundles were made for dual_spls-0.0.7.tar.gz:
Publisher:
python-publish.yml on malerbe/Dual-sPLS
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dual_spls-0.0.7.tar.gz -
Subject digest:
7bc708597ed5d089904eeed4e74301c51c88532f848d2c3e95e315cbbf57c16b - Sigstore transparency entry: 901714739
- Sigstore integration time:
-
Permalink:
malerbe/Dual-sPLS@15578ddc556587bdcc0a2df03b031417c06e77df -
Branch / Tag:
refs/tags/v0.0.7 - Owner: https://github.com/malerbe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@15578ddc556587bdcc0a2df03b031417c06e77df -
Trigger Event:
release
-
Statement type:
File details
Details for the file dual_spls-0.0.7-py3-none-any.whl.
File metadata
- Download URL: dual_spls-0.0.7-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f85050b6580c41ab78f59e2fa6a037c0ebf8ce1a23f318185efeee40d91d26e5
|
|
| MD5 |
354d8cc90290d52850e91b5b1ba90aa7
|
|
| BLAKE2b-256 |
b7ea3f60255004c1db60b036f54997318fd291558280fbcce6e3df2412ef470b
|
Provenance
The following attestation bundles were made for dual_spls-0.0.7-py3-none-any.whl:
Publisher:
python-publish.yml on malerbe/Dual-sPLS
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dual_spls-0.0.7-py3-none-any.whl -
Subject digest:
f85050b6580c41ab78f59e2fa6a037c0ebf8ce1a23f318185efeee40d91d26e5 - Sigstore transparency entry: 901714863
- Sigstore integration time:
-
Permalink:
malerbe/Dual-sPLS@15578ddc556587bdcc0a2df03b031417c06e77df -
Branch / Tag:
refs/tags/v0.0.7 - Owner: https://github.com/malerbe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@15578ddc556587bdcc0a2df03b031417c06e77df -
Trigger Event:
release
-
Statement type: