Hi Tùng!!



 tungdop2:

when an image return a Dog and a Cat at the same time, what model learn from this?


In a multi-label, multi-class classification task you expect samples
to have more than one label be active at the same time.
Following your example, let’s say that you have three classes:
Dog, Cat, and Horse.  And let’s say that your samples are images
that can contain any (including none) of those three animals at the
same time.  If you have an image where a dog appears on the left
and a cat appears on the right, your ground-truth multi-label label
would be “Yes-Dog, Yes-Cat, No-Horse” (e.g., [1, 1, 0]), and
you would want to train your classifier to predict both a Dog and
a Cat at the same time (and no Horse) for that image.
Best.
K. Frank