Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project/train/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class LSTMClassifier(nn.Module):

def __init__(self, embedding_dim, hidden_dim, vocab_size):
"""
Initialize the model by settingg up the various layers.
Initialize the model by setting up the various layers.
"""
super(LSTMClassifier, self).__init__()

Expand All @@ -29,4 +29,4 @@ def forward(self, x):
lstm_out, _ = self.lstm(embeds)
out = self.dense(lstm_out)
out = out[lengths - 1, range(len(lengths))]
return self.sig(out.squeeze())
return self.sig(out.squeeze())