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

why in adapt.py line 91 label_tgt = make_variable(torch.ones(feat_tgt.size(0)).long())? I think label_tgt = make_variable(torch.zeros(feat_tgt.size(0)).long()) #28

Open
zzzpc opened this issue Aug 27, 2021 · 2 comments

Comments

@zzzpc
Copy link

zzzpc commented Aug 27, 2021

No description provided.

@zzzpc
Copy link
Author

zzzpc commented Aug 27, 2021

cause in line 63 label_tgt = make_variable(torch.zeros(feat_tgt.size(0)).long())
why in line 91 label_tgt changes to torch.ones(feat_tgt.size(0)).long() ?

@GuoJingtao-1997
Copy link

In my view, the target encoder aims to map the target features into the source domain so that we can use the pre-trained source classifier to classify them. Therefore, we would like to make the target label after discriminating close to the source label that is one.

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

No branches or pull requests

2 participants