I have been playing around with the deep learning demo script, DeepLearn.c. I started with deepnet and then moved to keras. First tried CPU then GPU training, now back to CPU. However consistently the predict_proba() function in keras is very slow. Training is quick and testing takes forever. I timed the predict_proba calls in R with tictoc. I am getting 30-33ms per prediction. A couple per bar and the test time is very long. Does this seem appropriate and/or normal? If not, any ideas on what might be going on? The ml files are small 10-20 kb.

By the way I have tried directly in the R console and get the same result. The R bridge does not seem to be causing any issues.