简体   繁体   中英

why the validation accuracy (or training accuracy) is not exactly matched with the number of dataset?

I'm currently using Keras to training ResNet model with dog and cat dataset. For example, if I have 4000 training sets, then I think the training accuracy should be 1/4000 or 0 or the multiples of 1/4000. but the accuracy shown in the prompt is not multiples of 1/4000 and 0. how does this happen?

enter image description here

I don't know for sure, but I think the problem is related to the fact your lass is nan and the accuracy is 1. I will recommend you to check your hyperparameters like the "lass function" or the "batch size".

In any case, good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM