Description Usage Arguments Value
Word Embedding + Simple Multilayer Perceptron
1 2 3 | keras_simple_mlp(input_dim, embed_dim, seq_len, pooling = "flatten",
dense_dim = 128, dense_fun = "relu", dropout = 0.5,
output_fun = "softmax", output_dim)
|
input_dim |
Number of unique vocabluary/tokens |
embed_dim |
Number of word vectors |
seq_len |
Length of the input sequences |
pooling |
one of c("flatten", "global_average", "average") |
output_fun |
Output activation function |
output_dim |
Number of neurons of the output layer |
keras model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.