1 | initial version |
The problem was with high learning rate. When the learning rate was changed from the default value of 0.01 to 0.0001 the accuracy increased from 40% to 83.6 %
The changed line was
optimizer.alpha = static_cast<tiny_dnn::float_t>(0.0001);
Thanks a lot @LBerger for the support
Amal