Scaling MMD-MA.
Project description
This is not an officially supported Google product.
In MMD-MA (Liu et al. 2019, Jointly Embedding Multiple
Single-Cell Omics Measurements), we project two sets of points, from two different spaces endowed
with a positive definite kernel, to a shared Euclidean space of dimension
low_dim
. The mappings from high to low dimensional space are
obtained using functions belonging to the respective RKHS. To obtain the
mappings, we minimise a loss function that is composed of three terms:
- an MMD term between the low dimensional representations of the two views, which encourages them to have the same distribution.
- two non-collapsing penalty terms (corresponding to the
pen_dual
orpen_primal
functions), one for each view. These terms ensure that the low dimensional representations are mutually orthogonal, preventing collapsing. - two distortion penalties (corresponding to the
dis_dual
ordis_primal
functions), one for each view. These terms encourage the low dimensional representation to obtain the same pairwise structure as the original views.
MMD-MA can be formulated using either the primal (when we use the linear kernel in the input spaces) or the dual problem. Each has advantages or disadvantages depending on the input data. In each view, when the number of features is larger than the number of samples p_featureX >> n_sampleX, then the dual formulation is beneficial in terms of runtime and memory, while if n_sampleX >> p_sampleX, the primal formulation is favorable.
Example
Work in progress. See main.py for usage.
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 lsmtest10-0.0.1.tar.gz
.
File metadata
- Download URL: lsmtest10-0.0.1.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78746c0e87a1dff2143ee883e7f1a96156e380b4a85e5cf833ed64142fefeeae |
|
MD5 | 0ed904689917a2115098c3ac69cc0148 |
|
BLAKE2b-256 | 7849b236a69a023aa03970c583d85ec9c55da6567684f3cfe28c74273cc47cb0 |
File details
Details for the file lsmtest10-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: lsmtest10-0.0.1-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04b59c9f433e81dc40e80eedc82efb1e5c483addf7a8319f93eaf6be6b218686 |
|
MD5 | 2b50198426bd69f3e2d5f601f05931e8 |
|
BLAKE2b-256 | 0e693d529124faff2c67fa49c6f24126a4129422b659f3f3e09a4c0c65111360 |