I need to classify a picture that includes two different images inside. Classes are identical for both images. For example, a picture can include a dog and a cat or two dogs or two cats (In reality, I have much more classes, but all classes are identical for both images and there are always exactly two images inside a picture). Order of the images doesn't matter.
I would prefer to avoid multilabel classification. Thus, I thought to use a one-hot matrix instead of one-hot vector as a label. In this matrix rows are a one-hot vector for the first images, and columns are for the second. Thus, there is only one '1' in the matrix, all others are zeros.
My question is is it possible to use this kind of matrix for classification problem and if it is, does somebody know how to implement it in scikit-learn.
Thanks a lot :)