Do I have to set same batch size for training, validation and testing?

I was performing segmentation task and have set my batchsize to 16 for all train, validation and inferencing. In my observation, I got better result in inferencing when setting batch size to 1. How should I decide the correct size for these three or they will have to be of same size?

Topic semantic-segmentation deep-learning

Category Data Science


It depends on what is your problem, what is your target and how are good your data. There isn't a correct number, but here you can find some helps.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.