-
Notifications
You must be signed in to change notification settings - Fork 2
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
added comments on rnn code #1
base: master
Are you sure you want to change the base?
Conversation
Let me know what you think about the changes/comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small comments.
@@ -84,6 +85,7 @@ | |||
model.embedding.weight.data[UNK_IDX] = torch.zeros(EMBEDDING_DIM) | |||
model.embedding.weight.data[PAD_IDX] = torch.zeros(EMBEDDING_DIM) | |||
optimizer = optim.Adam(model.parameters()) | |||
# Should we use L1Loss or SmoothL1Loss? How do we feel about outliers? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not check in my latest code. Since we decided to frame this as a classification task (negative, neutral, positive), the loss should be CE loss. I didn't realize that my latest code didn't make it in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
criterion = nn.BCEWithLogitsLoss()
@haroldw did you push your latest code? I pulled but didnt see changes |
No description provided.