Skip to main content

Time-dependent Canonical Correlation Analysis

Canonical Correlation Analysis is a technique in multivariate data analysis for finding correlation and pairs of vectors that maximizes the correlation between a set of paired variables. Many important problems involve recoding time-dependent observations. In order to understand the coupling dynamics between the two sources, spot trends, detect anomalies, in this paper, we introduce the time-dependent canonical correlation analysis (TDCCA), a method of inferring time-dependent canonical vectors of paired variables.

Getting Started

We provide both simulation examples used in our paper. The main computation algorithm is not added into the class method for the convenience of algorithm development for multi-view data. The package saves all the analysis to the given folder and saves the preprocessed data into the hdf5 file. The parallel computing with multi-cores is also allowed and tested in Linux system. This package also provides other algorithms to optimize the function, including cvxpy naive optimization, cvxpy naive admm optimization and two other admm algorithms. For details, see the admm_computation.py file. However, these functions have not been tested thoroughly.

These instructions will get you a copy of the project up running on your local machine for development and testing purposes.

This package is also published in pypi. For a quick installation, try

pip install tdcca 

Prerequisites

What things you need to install the software and how to install them

See setup.py for details of packages requirements. 

Installing from GitHub

Download the packages by using git clone https://github.com/xuefeicao/tdcca.git

python setup.py install

If you experience problems related to installing the dependency Matplotlib on OSX, please see https://matplotlib.org/faq/osx_framework.html

Intro to our package

After installing our package locally, try to import tdcca in your python environment and learn about package's function. Note: our package name in pypi is tdcca. It is recommended that users scale the data before running our package.

from tdcca import *
help(multi_sim)

Examples

The examples subfolder includes simulations provided in the paper. 

Running the tests

The test has been conducted in both Linux and Mac Os.

Built With

  • Python 2.7

Compatibility

  • Python 2.7

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Release files for tdcca 0.0.0

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

Source distribution (sdist)

Source distribution for tdcca 0.0.0
File Size Uploaded
tdcca-0.0.0.tar.gz 19.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tdcca 0.0.0
File Interpreter ABI Platform
tdcca-0.0.0-py2-none-any.whl Python 2 none any Details

Total release size:39.8 kB

Release files / tdcca-0.0.0.tar.gz

Download URL tdcca-0.0.0.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
72f76aefe4ec64f700dfecf80b891ab0817676fce16c33acd590d3b7a007a015
BLAKE2b-256 checksum
How to use checksums
12bf26e5df0cdf72dc38911c77b31f454aa3a47dd3e02d01553e8dea081f5fdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15

Release files / tdcca-0.0.0-py2-none-any.whl

Download URL tdcca-0.0.0-py2-none-any.whl
Size 20.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
14f253d94aba41eb0d2a4e778cc969fbcdc1c2d8f4461e3dad0f93fd5584ba5c
BLAKE2b-256 checksum
How to use checksums
6a14f39cab576bf000bfdd480aef0726a76a394481a6bed3b92eeb0cb1dbd586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15

Release history Release notifications | RSS feed

This release

0.0.0 This release

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