How to build an embedding layer in Tensorflow RNN?
问题 I'm building an RNN LSTM network to classify texts based on the writers' age (binary classification - young / adult). Seems like the network does not learn and suddenly starts overfitting: Red: train Blue: validation One possibility could be that the data representation is not good enough. I just sorted the unique words by their frequency and gave them indices. E.g.: unknown -> 0 the -> 1 a -> 2 . -> 3 to -> 4 So I'm trying to replace that with word embedding. I saw a couple of examples but I