C3W4 Assignment Accuracy not reaching 80%

Hi all,

according to the suggestions in the notebook, I have tried adding a bidirectional LSTM, changed the number of units in it, however the accuracy just isn’t reaching 80% or more

Does anyone have any inputs on this?
Thanks

Hi mugdhagovilkar,

My sense is that in order to get higher accuracy you have to go beyond the structure of the model presented in the assignment. If this has your interest, you can have a look here or another source you may be able to find using bidirectional LSTMs in siamese networks to evaluate question duplicates.

With the following model you can get an accuracy of almost 85%

    model = Sequential()
    model.add(Embedding(total_words, 100, input_length=max_sequence_len-1))
    model.add(Bidirectional(LSTM(128)))
    model.add(Dense(total_words, activation='softmax'))

    model.compile(loss="categorical_crossentropy",
                  optimizer="adam",
                  metrics=['accuracy'])