Skip to main content

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

Pypi web page

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dual_spls-0.0.7.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

dual_spls-0.0.7-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

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

Hashes for dual_spls-0.0.7.tar.gz
Algorithm Hash digest
SHA256 7bc708597ed5d089904eeed4e74301c51c88532f848d2c3e95e315cbbf57c16b
MD5 4a2de05e029c5d2e957f2551542eecb1
BLAKE2b-256 4d6688f498ba6bc914c97cfd0b876a5c016515ca7745384fed760ab2a5c831f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for dual_spls-0.0.7.tar.gz:

Publisher: python-publish.yml on malerbe/Dual-sPLS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for dual_spls-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f85050b6580c41ab78f59e2fa6a037c0ebf8ce1a23f318185efeee40d91d26e5
MD5 354d8cc90290d52850e91b5b1ba90aa7
BLAKE2b-256 b7ea3f60255004c1db60b036f54997318fd291558280fbcce6e3df2412ef470b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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