WIP: Feature: Wasserstein Barycenter Transport#296
Open
eddardd wants to merge 10 commits intoscikit-adaptation:mainfrom
Open
WIP: Feature: Wasserstein Barycenter Transport#296eddardd wants to merge 10 commits intoscikit-adaptation:mainfrom
eddardd wants to merge 10 commits intoscikit-adaptation:mainfrom
Conversation
…nBarycenterTransport
Collaborator
|
Hi @eddardd , I'm happy to see your PR! Let me know if you need help or anything. I can do a review whenever you want;) |
Collaborator
|
For the CI, your new example I think you have some linter problem, did you use pre commit ? And don't forget to add test for your new methods ! |
Collaborator
|
Hello @eddardd The Linear Mapping DA is already implemented in: |
Collaborator
|
also the multi sourcer case with gaussian barycenter is already mplemented here: Line 552 in 14f20fe |
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.
Related to Issue #291
This PR adds the algorithm
Wasserstein Barycenter Transport[29] to the SKADA benchmark. I also took the liberty of implementing a linearized version using affine OT mappings as proposed by [7]. Besides these 2 algorithms, I added 2 examples,plot_joint_wasserstein_barycenter.py, which focuses exclusively on the computation of joint Wasserstein barycenters as in [38]plot_multi_source_da, which compares the linearlized and empirical versions of WBT in the context of multi-source domain adaptation.I also added references to two papers [38, 39], which are related to the computation of barycenters of Gaussian measures and feature-label joint empirical measures
Need for help
Before merging, I need to fix a few issues, notably concerning the documentation. I faced the following errors while running
make htmlonskada/docs,These errors were reproduced on nearly every instance where
LogisticRegressionis called withsample_domain.References
[7] Flamary, R., Lounici, K., & Ferrari, A. (2019). Concentration bounds for linear monge mapping estimation and optimal transport domain adaptation. arXiv preprint arXiv:1905.10155.
[29] Montesuma, Eduardo Fernandes, and Fred Maurice Ngole Mboula. "Wasserstein barycenter for multi-source domain adaptation." In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 16785-16793. 2021.
[38] Álvarez-Esteban, Pedro C., et al. A fixed-point approach to barycenters in Wasserstein space. Journal of Mathematical Analysis and Applications 441.2 (2016): 744-762
[39] Montesuma, Eduardo, Fred Maurice Ngole Mboula, and Antoine Souloumiac. Multi-source domain adaptation through dataset dictionary learning in wasserstein space. ECAI 2023. IOS Press, 2023. 1739-1746.