DEV Community

Discussion on: Analysing the Tone of Tweets with Keras

Collapse
 
merus2 profile image
merus2

Excellent, thank you.
I have been trying to understand how to bring my own embedding into a model for a while now.
This line of code made my day :-)!!
model.add(Embedding(vocab_size,100, weights=[emdedding_matrix], input_length = max_len, trainable = False).
The "trainable = False" parameter was the cherry on the cake