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.3.tar.gz (17.4 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.3-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file dual_spls-0.0.3.tar.gz.

File metadata

  • Download URL: dual_spls-0.0.3.tar.gz
  • Upload date:
  • Size: 17.4 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.3.tar.gz
Algorithm Hash digest
SHA256 447d8a73462acbc1bbac201b7f527f593cc1f41de9f5bb0a8c022ba699a84fb3
MD5 f083ecbfd8efd86fe49fea69d6290a6d
BLAKE2b-256 e099047124cb8704afd16465e8278641002d78bb1757935b80cbe7b2b566e925

See more details on using hashes here.

Provenance

The following attestation bundles were made for dual_spls-0.0.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: dual_spls-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 904da12ed8893f987c8404bd68110e89a678cc33d8fa31a3c08f9cfde7113005
MD5 21c7f2e23062f85a1077f65ef3b3cb8e
BLAKE2b-256 fde7a2f3a23bdab8a2bd34d4b4832e35cbe83d720bacdac009c597db6567ea8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dual_spls-0.0.3-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