Data Science Asked by gypaetebarbu on April 15, 2021
I have two types of images, meaning two different sets of possible labels. How can I use two different loss functions based on which image I am currently training on with a batch size of 1?
Thanks !
This is not possible, for 2 reasons:
Answered by Leevo on April 15, 2021
One option is multi-task learning. In this case, multi-task learning would allow a single model to learn more than one independent label for the same image. There is a separate loss function for each task (i.e., independent label). Those separate loss functions would be aggregated for a single loss function to train the overall model.
Training on a batch size of one will result in overfitting. The network will optimize for each image individually. Increasing batch will regularize, increasing generalization, across images.
Answered by Brian Spiering on April 15, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP