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

Dependencies

In addition to basic scientific packages such as numpy and scipy, iterative penalized least squares needs either glmnet_python or pyglmnet to be installed.

This package can be installed normally with

git clone https://github.com/theislab/sparsecca  
cd sparsecca  
pip install .

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.0.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

sparsecca-0.3.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file sparsecca-0.3.0.tar.gz.

File metadata

  • Download URL: sparsecca-0.3.0.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.0

File hashes

Hashes for sparsecca-0.3.0.tar.gz
Algorithm Hash digest
SHA256 05b27132d7164b124f704db84b98c558444397737e6bf77c0befd5203c8f8606
MD5 99199f47e8e853dbf94fee50ed2df07b
BLAKE2b-256 e82635ffdeaee422e27e1c36b5546934a4db1c94b47357d15a0a128bfb0fafe6

See more details on using hashes here.

File details

Details for the file sparsecca-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: sparsecca-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.0

File hashes

Hashes for sparsecca-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e732fc781972a14201593f7b894d81fd2b2022b021c8071b7f00c15aa6001e55
MD5 af2e4d877a2131505d076a9b5a5d4de3
BLAKE2b-256 86c522c3e2ec25461ad8668a420ca79ff54aa4b1355603e49c9cfb0811c153b2

See more details on using hashes here.

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