Keraflow
Deep Learning for Python.
|
Vocabulary (row) vectors looking up layer. More...
Public Member Functions | |
def | __init__ |
Vocabulary (row) vectors looking up layer.
(nb_samples, sequence_length)
(nb_samples, sequence_length, output_dim)
(vocabulary_size, output_dim)
def keraflow.layers.embeddings.Embedding.__init__ | ( | self, | |
vocabulary_size, | |||
output_dim, | |||
init = 'uniform' , |
|||
dropout = 0 , |
|||
kwargs | |||
) |
vocabulary_size | int. Size of the vocabulary. |
output_dim | int. Length of each vocabulary vector. |
init | str/function. Function to initialize trainable parameters. See Initializations. |
dropout | float between 0 and 1. Fraction to drop out how many row vectors (the dropout will drop the whole row vector if it is to be dropped instead of dropping several units of the row vector.). |
kwargs | see Layer.__init__. |