You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the implementation, the final outputs of Bi-RNN are calculated as the reduce mean among all time stamps. Compared with output_rnn_last=output_rnn[:,-1,:], what is the difference between these two strategies on the impact of the final classification results?
The text was updated successfully, but these errors were encountered:
hi,
you post a good question. the difference is whether you use mean average of all timestamp or use last timestamp to make a prediction; the other way is use reduce_max to make a prediction.
so you can choose the way that the best performance among these three methods.
text_classification/a03_TextRNN/p8_TextRNN_model.py
Line 67 in 68e2fcf
In the implementation, the final outputs of Bi-RNN are calculated as the reduce mean among all time stamps. Compared with
output_rnn_last=output_rnn[:,-1,:]
, what is the difference between these two strategies on the impact of the final classification results?The text was updated successfully, but these errors were encountered: