Skip to content
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

[MRG] Add SPA method #276

Merged
merged 39 commits into from
Nov 22, 2024
Merged

[MRG] Add SPA method #276

merged 39 commits into from
Nov 22, 2024

Conversation

tgnassou
Copy link
Collaborator

Copy link

codecov bot commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 166 lines in your changes missing coverage. Please review.

Project coverage is 77.12%. Comparing base (c5115dd) to head (aafffdc).

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #276       +/-   ##
===========================================
- Coverage   97.10%   77.12%   -19.98%     
===========================================
  Files          61       52        -9     
  Lines        6382     5924      -458     
===========================================
- Hits         6197     4569     -1628     
- Misses        185     1355     +1170     
---- 🚨 Try these New Features:

Comment on lines 90 to 92
loss_adv = self.domain_criterion_(
domain_pred_s, domain_label
) + self.domain_criterion_(domain_pred_t, domain_label_target)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in eq (1) of the paper, they use both the cross entropy and the modified cross entropy loss (log(1-prob))

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should also use label smoothing as the code of the paper: https://github.com/CrownX/SPA/blob/main/code/loss.py#L65-L84

@antoinecollas antoinecollas changed the title [WIP] Add SPA method [TO_REVIEW] Add SPA method Nov 22, 2024
@YanisLalou
Copy link
Collaborator

Nice results with SPA, lets merge this now!

@YanisLalou YanisLalou changed the title [TO_REVIEW] Add SPA method [MRG] Add SPA method Nov 22, 2024
@YanisLalou YanisLalou merged commit 77860d8 into scikit-adaptation:main Nov 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants