Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created January 27, 2020 13:38
Show Gist options
  • Save aravindpai/e0ec569b0daa2a279c5f2fd5447dfb74 to your computer and use it in GitHub Desktop.
Save aravindpai/e0ec569b0daa2a279c5f2fd5447dfb74 to your computer and use it in GitHub Desktop.
#define hyperparameters
size_of_vocab = len(TEXT.vocab)
embedding_dim = 100
num_hidden_nodes = 32
num_output_nodes = 1
num_layers = 2
bidirection = True
dropout = 0.2
#instantiate the model
model = classifier(size_of_vocab, embedding_dim, num_hidden_nodes,num_output_nodes, num_layers,
bidirectional = True, dropout = dropout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment