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

added comments on rnn code #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

raguiar2
Copy link
Owner

No description provided.

@raguiar2 raguiar2 requested a review from haroldw May 30, 2019 23:29
@raguiar2
Copy link
Owner Author

Let me know what you think about the changes/comments

Copy link
Collaborator

@haroldw haroldw left a 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?
Copy link
Collaborator

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

criterion = nn.BCEWithLogitsLoss()

@raguiar2
Copy link
Owner Author

@haroldw did you push your latest code? I pulled but didnt see changes

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

Successfully merging this pull request may close these issues.

2 participants