Skip to main content

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.

Metadata

Release files for sparsecca 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sparsecca 0.3.1
File Size Uploaded
sparsecca-0.3.1.tar.gz 25.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sparsecca 0.3.1
File Interpreter ABI Platform
sparsecca-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 38.2 kB

Release files / sparsecca-0.3.1.tar.gz

Download URL sparsecca-0.3.1.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
be1526baebac5ce6efbc7190fd62a1cec13288c493f5d427024f66ca6afaec13
BLAKE2b-256 checksum
How to use checksums
d5ed4fca800b12a5cad4f4735dbe718b045a6a1c2976392ffeb8b926c799350b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / sparsecca-0.3.1-py3-none-any.whl

Download URL sparsecca-0.3.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
223cce1a1ce181ec6e84a0e6a2f4ca406c2b023144955678abf104fae7927c5d
BLAKE2b-256 checksum
How to use checksums
1ebc85f244036553ca1e9850a851244150cbb2c20bdd0080fa766343ad544992
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page