Solved by yash1994 in post #2 
              
              
                Hi, 
Is there any reason why you are dividing train_correct / train_total by 100 in your accuracy calculation if want your accuracy in percentage then you should multiply your train_correct / train_total by 100. Otherwise, accuracy is as simple as train_correct / train_total.