Skip to content

Instantly share code, notes, and snippets.

Created January 27, 2020 13:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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