Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

sparsecca-0.3.1-py3-none-any.whl (12.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page