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

Confusion about the diversity metric and other loss terms #3

Open
TobiasLee opened this issue Aug 27, 2019 · 0 comments
Open

Confusion about the diversity metric and other loss terms #3

TobiasLee opened this issue Aug 27, 2019 · 0 comments

Comments

@TobiasLee
Copy link

Hi, thanks for the nice paper and neat code, well done.
After read the paper and check the code, I was confused about several lines in model_task.py, from 306 to 312.

            result['pi_kl'] = pi_kl
            result['diversity'] = th.mean(p)
            result['nll'] = self.nll(dec_outputs, labels)
            result['b_pr'] = b_pr
            result['mi'] = mi

According to the config in sl_cat.py, it seems that the loss of diversity, pi_kl and mi is not used. From my understanding, the diversity is checking whether the learned log_qy is a orthogonal matrix, rather than that diversity described in the paper:

Diversity is mea- sured by the number of unique responses the model used in all scenarios from the test data

Am I right? Could you please tell more about these metrics? Thx a lot.

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

1 participant