Skip to main content

Optimal transport-based tools for data integration.

Reason this release was yanked:

Installer bug

Project description

#+TITLE: Transmorph (anciently WOTi)

This python package aims to provide an easy interface for integrating datasets using optimal transport (OT)- and Gromov-Wasserstein (GW)-based methods. We plan to extend the package beyond data integration, with additional OT-related unsupervised and semi-supervised methods. Warning: This package is still in an early stage. Feel free to open an issue in case of unexpected behvior.

  • Installation

#+begin_src shell git clone https://github.com/Risitop/WOTi pip install ./woti #+end_src

  • Examples

See three example notebooks in =examples/= directory.

  • Usage

This package offers four main integration techniques, two based on OT and two based on GW. Both OT and GW comes in two variants, balanced (similar to [[https://github.com/rsinghlab/SCOT][SCOT]] technique) and unbalanced, using a quadratic program in order to estimate data points weights. These weights are chosen so that the weighted Gaussian mixture distribution is close to be uniform over the dataset.

Assuming two numpy arrays X and Y representing source and target datasets, WOTi can be used in the following way. First, create a Woti object. The scale parameter adjusts kernel bandwidth, and needs some tuning according to cloud sparsity.

#+begin_src python import woti

X, Y = ... # datasets, np.ndarray integration = woti.Woti(method='ot') #+end_src

Then, simply apply the integration method to project X onto Y.

#+begin_src python X_integrated = integration.fit_transform(X, Y) #+end_src

  • Reference

https://www.biorxiv.org/content/10.1101/2021.05.12.443561v1

  • Documentation

Work in progress.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transmorph-0.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

transmorph-0.0.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page