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

questions of code details #6

Open
dengwanxia1991 opened this issue Sep 17, 2020 · 2 comments
Open

questions of code details #6

dengwanxia1991 opened this issue Sep 17, 2020 · 2 comments

Comments

@dengwanxia1991
Copy link

Thanks for sharing the code. I have a question. In the TarDisClusterLoss, why is the true label of the target used in the 141 line?

@huitangtang
Copy link
Collaborator

Hello, glad to hear from you. For your problem, note that the target domain label was pseudo-labeled by K-means clustering in line 145 in main.py. Please check the corresponding function in trainer.py. We do this mainly for initialization at the first epoch and we set all target labels to -1 in line 115 to make sure no use of ground truth target labels.

@dengwanxia1991
Copy link
Author

Hello, glad to hear from you. For your problem, note that the target domain label was pseudo-labeled by K-means clustering in line 145 in main.py. Please check the corresponding function in trainer.py. We do this mainly for initialization at the first epoch and we set all target labels to -1 in line 115 to make sure no use of ground truth target labels.

Thanks for the reply and solving my question.

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