-
Notifications
You must be signed in to change notification settings - Fork 23
WIP: Feature: Wasserstein Barycenter Transport #296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…nBarycenterTransport
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;) |
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 ! |
Hello @eddardd The Linear Mapping DA is already implemented in: |
also the multi sourcer case with gaussian barycenter is already mplemented here: Line 552 in 14f20fe
|
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 html
onskada/docs
,These errors were reproduced on nearly every instance where
LogisticRegression
is 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.