-
Notifications
You must be signed in to change notification settings - Fork 27
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
ELMO代码中的疑问,希望解答 #7
Comments
给聪哥大佬疯狂打call
…------------------ 原始邮件 ------------------
发件人: "KunWangR"<[email protected]>;
发送时间: 2020年1月14日(星期二) 下午4:43
收件人: "YC-wind/embedding_study"<[email protected]>;
抄送: "Subscribed"<[email protected]>;
主题: [YC-wind/embedding_study] ELMO代码中的疑问,希望解答 (#7)
感觉ELMO模型accuracy计算有点问题,详细情况见下图。
因为计算loss需要用到forward_output, 计算forward_pred需要用到forward_projection,因为argsoftmax需要从词表维度中选择最可能的词id,代码中是从elmo_hidden维度选择最可能的hidden id。
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@NLPOR 聪哥是谁? |
forward_output 是 shape = (batch_size, seq_len, elmo_hidden) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
感觉ELMO模型accuracy计算有点问题,详细情况见下图。
因为计算loss需要用到forward_output, 计算forward_pred需要用到forward_projection,因为argsoftmax需要从词表维度中选择最可能的词id,代码中是从elmo_hidden维度选择最可能的hidden id。
The text was updated successfully, but these errors were encountered: