singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] dcslin commented on pull request #733: add imdb sentiment model
Date Sun, 14 Jun 2020 12:29:21 GMT

dcslin commented on pull request #733:
URL: https://github.com/apache/singa/pull/733#issuecomment-643760154


   thank you @chrishkchris ,
   
   i could get this with param:
   ```
   bs = 32
   seq_limit = 50
   embed_size = 300
   hid = 128
   max_epoch=20
   m.set_opt(opt.SGD(0.01, 0.9))
   m.lstm.W.gaussian(0,0.2)
   ```
   result:
   ```
   epoch 0 loss [0.6986327]; acc 0.499
   epoch 1 loss [0.6938767]; acc 0.507
   epoch 2 loss [0.6930023]; acc 0.512
   epoch 3 loss [0.69218916]; acc 0.520
   epoch 4 loss [0.6913854]; acc 0.527
   epoch 5 loss [0.69030344]; acc 0.532
   epoch 6 loss [0.68892217]; acc 0.536
   epoch 7 loss [0.6871515]; acc 0.544
   epoch 8 loss [0.6844753]; acc 0.552
   epoch 9 loss [0.68085307]; acc 0.563
   epoch 10 loss [0.6761205]; acc 0.573
   epoch 11 loss [0.67002034]; acc 0.585
   epoch 12 loss [0.6628929]; acc 0.598
   epoch 13 loss [0.6532587]; acc 0.609
   epoch 14 loss [0.6417091]; acc 0.628
   epoch 15 loss [0.6291587]; acc 0.642
   epoch 16 loss [0.6140896]; acc 0.657
   epoch 17 loss [0.60099155]; acc 0.670
   epoch 18 loss [0.5853541]; acc 0.685
   epoch 19 loss [0.5661139]; acc 0.703
   ```
   
   but I really could not make testing >0.5 with various config


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message