Getting StartedΒΆ

cca-zoo is a collection of linear, kernel, and deep methods for canonical correlation analysis of multiview data. Where possible I have followed the scikit-learn/mvlearn APIs and models therefore have fit/transform/fit_transform methods as standard.

Look how easy it is to use:

from cca_zoo.models import CCA
from cca_zoo.data import generate_covariance_data
# %%
n_samples=100
(train_view_1,train_view_2),(true_weights_1,true_weights_2)=generate_covariance_data(n=n_samples,view_features=[10,10],latent_dims=1,correlation=1)

linear_cca = CCA(latent_dims=latent_dims, max_iter=max_iter)

linear_cca.fit((train_view_1, train_view_2))