Hi, All,
I have tried increased the lstm_units from 64 to 500, and also tried to add multiple layers of lstm, still can not reach 80%. Please help with any suggestions.
Thanks
Hi, All,
I have tried increased the lstm_units from 64 to 500, and also tried to add multiple layers of lstm, still can not reach 80%. Please help with any suggestions.
Thanks
There are a bunch of posts on ways to tune a NN to achieve the required level of performance. Please start with this post and explore options.
I have tried so far----
lstm_units βAccuracy
90 β 0.71
100β0.7293
128 β 0.7371/0.7401
140-- 0.7129/0.7235
150 β 0.7425
160-- 0.7267
175β0.7222
180β0.70
200β0.7262/0.7223
256β0.7188
300β0.69
400β0.67
500β0.50
512β0.6667
600β0.6571
800β0.6273
1024β0.56
Then with 128 lstm_units for first layer, add one more layer of BRNN with 32 lstm_units, accuracy drop to 0.14
If set 1st layer as Conv1D, the accuracy will drop < 0.1.
For 3 days, I struck here β¦
Clearly, you havenβt read the links in the post I gave you:
The number of units in a dense layer / the number of nodes in a dense layer are usually powers of 2 (a heurestic that can be observed in many models).
Follow the unit count for lstm and other layers as well.
To me, setting the 1st layer as Conv1D doesnβt make sense since this is a text related assignment and thereβs no point in the Conv layer interpreting integer encodings of words.
Thanks so much for the quick response!
I have tried the following:
One layer BRNN with different lstm_units
lstm_units --Accuracy
32 β 0.6121
64β0.6784
128β0.7401
256β0.7188
512β0.667
1024 --0.56
One layer Brnn + Lstm
64 + 32 --0.2687
64+64β0.4414
128+32β0.1289
128+64β0.1215
128+128β0.0723
256+32β0.0611
256+64β0.0961
256+128β0.0330
One layer BRNN + Brnn
128+32-0.0805
128+64β0.5332
128+128β0.0490
256+32β0.0342
256+64β0.0528
256+128β0.0312
Still no good so farβ¦
Please click my name and message your notebook as an attachment.
Here are some hints:
I was able to achieve ~84.9 % accuracy just by changing the number of units and the embedding layer dimension.
Please do 2 more things:
Thanks so much, Balaji!
After 5 days for this assignment, it finally passed the 80%.