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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file transmorph-0.0.1.tar.gz
.
File metadata
- Download URL: transmorph-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fd9a0df34a6a5d212e95234d37a649276cd64a74341a9292fd9d71d67caf45d |
|
MD5 | bec4996ecce737cd727581b511987479 |
|
BLAKE2b-256 | 9e2f0d2c42c81524be74e6fd78e4d225281fde6406e0e18807e2ddf61309eabf |
File details
Details for the file transmorph-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: transmorph-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c3245cd26fda0c754c3d179ad3d98133dc03d368ca5460e520538ca821e006f |
|
MD5 | a74412a11d1b67e8035a3e8bf6ecb875 |
|
BLAKE2b-256 | 6ac525f2f8fb94055e3fff952d63364364aaf8acf5af27d057225b0894a18437 |