Skip to content

grittibetti/ORCCA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ORCCA

Optimal Randomized Canonical Correlation Analysis

This project is for the python version of ORCCA algorithm.

It depends on Numpy for matrix calculation and works with any CCA calculation package. Here we recommend

cca zoo https://github.com/jameschapman19/cca_zoo

$ pip install cca-zoo

for CCA calculation as it provides several other CCA algorithms that can be used in algorithm comparison. Please feel free to delete the cca_zoo dependency in the manuscript by deleting line2 and ORCCA_cor function then use another CCA package of your choice.

Some working exmaples for using ORCCA:

  1. Generate ORCCA mapping for a given pair of dataset X and Y with 5 reselected random features

sample = ORCCA(X,Y,width1=0.1)

sample.ORCCA_mapping(m=5)

  1. Calculate the canonical correlations for a given pair of dataset X and Y with 5 reselected random features

sample = ORCCA(X,Y,width1=0.1)

sample.ORCCA_cor(m=5)

About

Optimal Randomized Canonical Correlation Analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages