singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] chrishkchris commented on issue #651: [WIP]Add new example APIs
Date Mon, 06 Apr 2020 15:28:25 GMT
chrishkchris commented on issue #651: [WIP]Add new example APIs
URL: https://github.com/apache/singa/pull/651#issuecomment-609864659
 
 
   now it support mlp also:
   
   ```
   root@71ac539cda77:~/dcsysh/singa/examples/autograd# python3 train.py mlp mnist
   Starting Epoch 0:
   Training loss = 485.473358, training accuracy = 0.851771
   Evaluation accuracy = 0.911358, Elapsed Time = 0.615843s
   Starting Epoch 1:
   Training loss = 267.414551, training accuracy = 0.918657
   Evaluation accuracy = 0.928986, Elapsed Time = 0.623670s
   Starting Epoch 2:
   Training loss = 219.956863, training accuracy = 0.932998
   Evaluation accuracy = 0.937400, Elapsed Time = 0.618422s
   Starting Epoch 3:
   Training loss = 188.373474, training accuracy = 0.942519
   Evaluation accuracy = 0.946715, Elapsed Time = 0.617576s
   Starting Epoch 4:
   Training loss = 164.958145, training accuracy = 0.949223
   Evaluation accuracy = 0.951723, Elapsed Time = 0.618342s
   Starting Epoch 5:
   Training loss = 146.759750, training accuracy = 0.954442
   Evaluation accuracy = 0.956330, Elapsed Time = 0.619707s
   Starting Epoch 6:
   Training loss = 132.402222, training accuracy = 0.959178
   Evaluation accuracy = 0.958534, Elapsed Time = 0.620100s
   Starting Epoch 7:
   Training loss = 120.471268, training accuracy = 0.963114
   Evaluation accuracy = 0.961639, Elapsed Time = 0.620941s
   Starting Epoch 8:
   Training loss = 110.338516, training accuracy = 0.966832
   Evaluation accuracy = 0.963642, Elapsed Time = 0.619157s
   Starting Epoch 9:
   Training loss = 101.753929, training accuracy = 0.968450
   Evaluation accuracy = 0.966947, Elapsed Time = 0.619542s
   root@71ac539cda77:~/dcsysh/singa/examples/autograd# python3 train.py mlp cifar10
   Starting Epoch 0:
   Training loss = 1560.984497, training accuracy = 0.323504
   Evaluation accuracy = 0.354868, Elapsed Time = 0.689808s
   Starting Epoch 1:
   Training loss = 1337.684814, training accuracy = 0.396327
   Evaluation accuracy = 0.398037, Elapsed Time = 0.693844s
   Starting Epoch 2:
   Training loss = 1263.678955, training accuracy = 0.430498
   Evaluation accuracy = 0.412760, Elapsed Time = 0.688408s
   Starting Epoch 3:
   Training loss = 1214.546997, training accuracy = 0.453585
   Evaluation accuracy = 0.427885, Elapsed Time = 0.686060s
   Starting Epoch 4:
   Training loss = 1174.774658, training accuracy = 0.469310
   Evaluation accuracy = 0.441106, Elapsed Time = 0.688051s
   Starting Epoch 5:
   Training loss = 1142.419312, training accuracy = 0.483395
   Evaluation accuracy = 0.437200, Elapsed Time = 0.688847s
   Starting Epoch 6:
   Training loss = 1112.198486, training accuracy = 0.497759
   Evaluation accuracy = 0.430889, Elapsed Time = 0.685957s
   Starting Epoch 7:
   Training loss = 1082.584961, training accuracy = 0.510563
   Evaluation accuracy = 0.447516, Elapsed Time = 0.685680s
   Starting Epoch 8:
   Training loss = 1060.778320, training accuracy = 0.521627
   Evaluation accuracy = 0.453125, Elapsed Time = 0.686706s
   Starting Epoch 9:
   Training loss = 1039.045410, training accuracy = 0.529289
   Evaluation accuracy = 0.449920, Elapsed Time = 0.687589s
   
   ```

----------------------------------------------------------------
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


With regards,
Apache Git Services

Mime
View raw message