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

A bug of Rasch Model-Based Embeddings, Please check it! #8

Closed
ICDATwang opened this issue Nov 29, 2021 · 4 comments
Closed

A bug of Rasch Model-Based Embeddings, Please check it! #8

ICDATwang opened this issue Nov 29, 2021 · 4 comments

Comments

@ICDATwang
Copy link

In line 83 of akt.py, the shape of qa_data is [BS, seqlen, 2], but in line 42,
self.qa_embed_diff = nn.Embedding(2 * self.n_question + 1, embed_l), the embedding input dims is inconsistent, is this right?

Please check it! Thanks!

@arghosh
Copy link
Owner

arghosh commented Dec 3, 2021

Hi, I think, if self.separate_qa=True, qa_data shape is [BS, Seqlen] (line 72) with value from 0 to 2*n_question+1 (line 45) and self.qa_embed_diff = nn.Embedding(2 * self.n_question + 1, embed_l). When self.separate_qa=False, qa_data shape is [BS, Seqlen] (line 76) with value from 0 to 1 (line 48) and self.qa_embed = nn.Embedding(2, embed_l).

@ICDATwang
Copy link
Author

When self.separate_qa=False, qa_data shape is [BS, Seqlen] (line 76) with value from 0 to 1 (line 48) and self.qa_embed = nn.Embedding(2, embed_l). But, if self.n_pid > 0, (line 83) qa_embed_diff_data = self.qa_embed_diff(qa_data), and (line 42) self.qa_embed_diff = nn.Embedding(2 * self.n_question + 1, embed_l), the shape of qa_data is inconsistent with "2 * self.n_question + 1".
Please check it again! Thanks!

@ICDATwang
Copy link
Author

ICDATwang commented Dec 3, 2021 via email

@arghosh
Copy link
Owner

arghosh commented Dec 3, 2021

Yes, you are right. only 0 and 1 is used, rest of them are not updated. You can change line 42 depending on the condition. It would be the same.

@arghosh arghosh closed this as completed Dec 4, 2021
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