Skip to content

RonenTalmonLab/HyperbolicProcrustesAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperbolic Procrustes Analysis Using Riemannian Geometry

The code in this repository creates the figures presented in this article: https://proceedings.neurips.cc/paper/2021/file/2ed80f6311c1825feb854d78fa969d34-Paper.pdf

Please notice that in order to apply the code to the data sets, they need to be downloaded first from the following specified links. The code was developed and tested in Python 3.8.

Demo - Simulations

The script 'Main.py' generates the discrepancies of baseline, HPA, and RT for the simulated examples, reported in Figure 2.

Batch correction for bioinformatics dataset and domain adaptation for digit datasets

Data

Hyperbolic representation

Run all the batches/domains with the code at the link https://github.com/facebookresearch/poincare-embeddings

Set the hyperparameters with manifold lorentz, learning rate 0.001, train threads 2, and batch size 20.

Demo - HPA

from manifold_func import *

# data is the obtained hyperbolic representation in the Lorentz model
# the data type is a list that each list item represents the data from one batch/domain 
HPA_data = HPA_align_tan(data)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages