https://github.com/agathesenellart/deepgcca-pytorch

An implementation of Deep Generalized Canonical Correlation Analysis (DGCCA or Deep GCCA) with pytorch.

https://github.com/agathesenellart/deepgcca-pytorch

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.7%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

An implementation of Deep Generalized Canonical Correlation Analysis (DGCCA or Deep GCCA) with pytorch.

Basic Info
  • Host: GitHub
  • Owner: AgatheSenellart
  • License: mit
  • Default Branch: master
  • Homepage:
  • Size: 2.62 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Fork of arminarj/DeepGCCA-pytorch
Created over 3 years ago · Last pushed almost 6 years ago

https://github.com/AgatheSenellart/DeepGCCA-pytorch/blob/master/

# DGCCA-pytorch:

A Pytorch Implementation of Deep Generalized Canonical Correlation Analysis as described in:

Adrian Benton, Huda Khayrallah, Biman Gujral, Dee Ann Reisinger, Sheng Zhang, and Raman Arora. Deep Generalized Canonical Correlation Analysis. The 4th Workshop on Representation Learning for NLP. 2019
[(Paper-link)](https://www.aclweb.org/anthology/W19-4301/)



# Deep Generalized Canonical Correlation Analysis:


*Generalized Canonical Correlation Analysis (GCCA)* is a method which corresponds to solving an optimization problom objective to find the best linear shared space called ***G*** for the *J* view of a data

**DeepGCCA** is a non-linear version of GCCA which uses neural networks as the feature extractor functions instead of linear transformers. ***DGCCA*** is some how exention of ***DeepCCA*** for more than two views though it has a different objective function.

![](./img/DGCCA.jpg)
![](./img/GCCA-DGCCA-Benton.jpg)
 - figures source [Deep Generalized Canonical Correlation Analysis - Arxiv 1702.02519](https://arxiv.org/abs/1702.02519)

## Pseudocode algorithm:

Pseudocode algorithm based on the paper,
![](./img/psuedocode.jpg)

# Example:

Synthatic Data: [(synth data generator)](/synth_data.py)
![](./img/Synth-data.jpg)

DGCCA Latent space for views:
![](./img/Lantent-space-views.jpg)

 - figures source [Deep Generalized Canonical Correlation Analysis - Arxiv 1702.02519](https://arxiv.org/abs/1702.02519)

# Prerequest:

- Python 3.6>=
- Pytorch 1.4 >= (should also work with >=1.0)
- Numpy
- Scipy
- Seanborn

# Other Implementations:

 - [Theano Implementation](https://bitbucket.org/adrianbenton/dgcca-py3/src/master/) By Adiran Benton.
 
 
 ## Notes:
 
 ### check list:
 
 - cuda test
 - Varient Batch sizes test
 
 ### to do: 
 
 - Nan gradient/update rules (Famous issue of Deep CCA - based models, like [DeepCCA Nan outputs](https://github.com/Michaelvll/DeepCCA))
 - More numerical stabilization for varient Architectures
 
 Warmest thanks to Mr. Adrian Benton for his kind helps.

Owner

  • Login: AgatheSenellart
  • Kind: user

GitHub Events

Total
Last Year