A full implementation of sparse CCA.
Project description
sparsecca
Python implementations for Sparse CCA algorithms. Includes:
- Sparse (multiple) CCA based on Penalized Matrix Decomposition (PMD) from Witten et al, 2009.
- Sparse CCA based on Iterative Penalized Least Squares from Mai et al, 2019.
One main difference between these two is that while the first is very simple it assumes datasets to be white.
Installation
sparsecca is available on PyPI
pip install sparsecca
Iterative penalized least squares support
In addition to basic scientific packages such as numpy and scipy, iterative penalized least squares needs either glmnet_python or pyglmnet to be installed.
Usage
See examples, https://teekuningas.github.io/sparsecca
Acknowledgements
Great thanks to the original authors, see Witten et al, 2009 and Mai et al, 2019.
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
sparsecca-0.3.1.tar.gz
(25.8 kB
view details)
Built Distribution
sparsecca-0.3.1-py3-none-any.whl
(12.4 kB
view details)
File details
Details for the file sparsecca-0.3.1.tar.gz
.
File metadata
- Download URL: sparsecca-0.3.1.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1526baebac5ce6efbc7190fd62a1cec13288c493f5d427024f66ca6afaec13 |
|
MD5 | 23a79a2ebd39fa555dc8ad9a0c9bc4db |
|
BLAKE2b-256 | d5ed4fca800b12a5cad4f4735dbe718b045a6a1c2976392ffeb8b926c799350b |
File details
Details for the file sparsecca-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: sparsecca-0.3.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 223cce1a1ce181ec6e84a0e6a2f4ca406c2b023144955678abf104fae7927c5d |
|
MD5 | a02b4d6f037b40fd404c6c9c53771254 |
|
BLAKE2b-256 | 1ebc85f244036553ca1e9850a851244150cbb2c20bdd0080fa766343ad544992 |