scikit-adaptation / skada

Domain adaptation toolbox compatible with scikit-learn and pytorch
https://scikit-adaptation.github.io/
BSD 3-Clause "New" or "Revised" License
52 stars 16 forks source link

[WIP] Center data when using transform of coral #211

Closed antoinecollas closed 1 month ago

antoinecollas commented 1 month ago

In https://arxiv.org/abs/1612.01939, the authors assume source and target data have a zero mean, i.e. $\mu_S=\mu_T=0$. This PR adds an assume_centered argument to CORAL to center data during fitting and transforming data.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 92.30769% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 96.98%. Comparing base (4b2b78c) to head (c6e472e). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #211 +/- ## ========================================== - Coverage 97.00% 96.98% -0.02% ========================================== Files 54 54 Lines 5312 5313 +1 ========================================== Hits 5153 5153 - Misses 159 160 +1 ```