Description Usage Arguments Value
Word embedding + (bidirectional) long short-term memory
1 2 3 | keras_simple_lstm(input_dim, embed_dim = 128, seq_len = 50,
lstm_dim = 64, lstm_drop = 0.2, dropout = 0.2, bidirectional = F,
output_dim = 2, output_fun = "softmax")
|
input_dim |
Number of unique vocabluary/tokens |
embed_dim |
Number of word vectors |
seq_len |
Length of the input sequences |
lstm_dim |
Number of recurrent neurons (default 64) |
lstm_drop |
Recurrent dropout ratio |
bidirectional |
default is F |
output_dim |
Number of neurons of the output layer |
output_fun |
Output activation function |
keras model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.