Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the linear version of Bures Wasserstein
I add some functions related to the linear Bures Wasserstein, when the space of Gaussian is seen as a Riemanian manifold.
Principally
linear_bures_wasserstein_mappingthat provides a linear operator that map two gaussians distributionslinear_bures_distancethat provides the linear Bures distance between covariateslinear_bures_wasserstein_distancethat provide the linear Bures Wasserstein distance between Gaussianslinear_bures_wasserstein_barycenterthat provides the barycenter between list of Gaussians distributions. Note that to the contrary of the standard Gaussians barycenter, the linear one has a closed form.I also did a first draft of an example notebook called
plot_linear_Bures_distance_and_barycenters.pyand few unitary tests.Motivation and context
Linear OT has a growing interest in the community, in particular for its ability to accelerate some calculations. It is particularly interesting in the gaussian setup as a closed form is available and as the distortions is never too big.
How has this been tested (if it applies)
I did some theoretical tests:
I also did some implementations tests:
test_gaussian.pyWhat coming next
Before going further, I would like to know if the maintainers see any interest.
If so, I would like to:
gmm.pymodule, since linear BW is particularly interesting when computing matrices of distancesPR checklist