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

About the code of MMILB #9

Closed
zhenfenxiao opened this issue Dec 20, 2022 · 1 comment
Closed

About the code of MMILB #9

zhenfenxiao opened this issue Dec 20, 2022 · 1 comment

Comments

@zhenfenxiao
Copy link

zhenfenxiao commented Dec 20, 2022

Great work but I have a question in the MMILB class. In Line 173 of src/modules/encoders.py I found a encoder :
self.entropy_prj=nn.Sequential(.......)
In the forward method, it seems that when estimating the entropy of Y, the code does not use the input embeddings of Y directly. Instead, the code first passes the input embeddings to self.entropy_prj and uses its output to estimate the entropy of Y. I didn't find this encoder in the paper. So why this encoder is used?

@Clement25
Copy link
Collaborator

Clement25 commented Jan 19, 2023

Hi. It seems (sorry the work is done too long ago) that the projection is to reduce the dimensionality so that the calculation can smoothly continue, otherwise it sometimes produces NaN values.

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